# I failed to use api-reference.pyth.network

**URL:** <https://dev-forum.pyth.network/t/i-failed-to-use-api-reference-pyth-network/446>\
**Category:** Price Feeds\
**Created:** [October 17, 2025, 2:43am UTC](https://dev-forum.pyth.network/t/i-failed-to-use-api-reference-pyth-network/446 "2025-10-17T02:43:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![unipine](https://avatars.discourse-cdn.com/v4/letter/u/2bfe46/32.png) [@unipine](https://dev-forum.pyth.network/u/unipine)\
**Post date:** [October 17, 2025, 2:43am UTC](https://dev-forum.pyth.network/t/i-failed-to-use-api-reference-pyth-network/446/1 "2025-10-17T02:43:05Z")

</div>

**Hi mates,**

I tried to use this api ([https://api-reference.pyth.network/price-feeds/evm/getPriceNoOlderThan](https://api-reference.pyth.network/price-feeds/evm/getPriceNoOlderThan)) on the docs directly but failed with following error.

**`ContractFunctionExecutionError: The contract function "getPriceNoOlderThan" reverted. Error: PriceFeedNotFound() Contract Call: address: 0x4305FB66699C3B2702D4d05CF36551390A4c69C6 function: getPriceNoOlderThan(bytes32 id, uint256 age) args: (0x7e990daa483e54a9a2b25ed3312285c867a049b5b3c84d27fe8c2ad9e0d24c57, 60) Docs:`** [readContract · Viem](https://viem.sh/docs/contract/readContract) **`Version: viem@2.34.0`**

Not sure what the cause is. I tried several times with different networks and priceIds, but same result.

How can I make successful calls?

Thanks.

---

<div class="post-metadata">

**Author:** ![Aditya520](https://yyz2.discourse-cdn.com/flex034/user_avatar/dev-forum.pyth.network/aditya520/32/12_2.png) [@Aditya520](https://dev-forum.pyth.network/u/Aditya520)\
**Post date:** [October 17, 2025, 5:53am UTC](https://dev-forum.pyth.network/t/i-failed-to-use-api-reference-pyth-network/446/2 "2025-10-17T05:53:11Z")

</div>

Hi @unipine , welcome to pyth dev-forum.

The [`PriceFeedNotFound()`](https://docs.pyth.network/price-feeds/troubleshoot/evm#getprice-reverts-with-pricefeednotfound-or-0x14aebe68-error) error emits when feed[has never been updated or the feed Id you are entering is wrong](https://arc.net/l/quote/osoikhwm). I would recommend you to[update the price feed first.](https://api-reference.pyth.network/price-feeds/evm/updatePriceFeeds)

---

<div class="post-metadata">

**Author:** ![unipine](https://avatars.discourse-cdn.com/v4/letter/u/2bfe46/32.png) [@unipine](https://dev-forum.pyth.network/u/unipine)\
**Post date:** [October 20, 2025, 6:01am UTC](https://dev-forum.pyth.network/t/i-failed-to-use-api-reference-pyth-network/446/3 "2025-10-20T06:01:40Z")

</div>

Hi @Aditya520, thanks for your reply.

I noticed that I need to pay gas fee when updating price feed.

Should I do this frequently?

Best

---

<div class="post-metadata">

**Author:** ![Aditya520](https://yyz2.discourse-cdn.com/flex034/user_avatar/dev-forum.pyth.network/aditya520/32/12_2.png) [@Aditya520](https://dev-forum.pyth.network/u/Aditya520)\
**Post date:** [October 21, 2025, 8:10am UTC](https://dev-forum.pyth.network/t/i-failed-to-use-api-reference-pyth-network/446/4 "2025-10-21T08:10:11Z")

</div>

Yes you need to pay the fees everytime you update the prices.

Since Pyth oracle follows a [pull design](https://docs.pyth.network/price-feeds/pull-updates). You need to do this[if you need latest real-time prices](https://docs.pyth.network/price-feeds/why-update-prices).
