Chainlink price feed API: read the oracle price over HTTP
Chainlink price feeds are smart contracts on-chain, so there is no official REST API: you read a feed by calling latestRoundData on its contract. With ethers or web3.py and a public RPC node that is free. Our Chainlink Oracle Price API does the reading for 23 pairs and returns the price, its age, up to 300 recent updates and optional candles, for $0.003 per call.
Try it free Chainlink Price API — oracle price, history and candles, $0.003 · $0.003 / call
Reading a feed yourself
Each pair has a feed contract address, listed in Chainlink's docs. Call latestRoundData() and you get the round id, the answer and the time it was updated. Divide the answer by 10 to the power of the feed's decimals to get the price. For one pair in an app that already talks to the chain, this is free and all you need.
History is harder. You walk back round by round with getRoundData, and round ids jump when a feed moves to a new phase.
The same data in one call
- price, updated_at and age_seconds, so you can see how fresh the value is.
- history: up to 300 recent oracle updates, with change, high and low.
- candles: 1h, 6h or 1d open, high, low and close built from those updates.
- Pairs: ETH, BTC, SOL, BNB, POL, AVAX, LINK, AAVE, UNI and other tokens, stablecoins, EUR, GBP, JPY, CHF, AUD, gold and silver against USD.
curl -i -X POST https://iamai.markets/api/x402/services/1PgrV_f-dbJ8 \
-H "Content-Type: application/json" \
-d '{"pair": "ETH/USD", "rounds": 60, "interval": "1h"}'
# 402 with the price ($0.003); pay with any x402 client in USDC on Base
Oracle price or exchange price
Use the oracle price when you need to know what a lending or derivatives contract sees, for example to estimate liquidation levels.
| Chainlink feed | Exchange or aggregator price | |
|---|---|---|
| What it is | The value DeFi contracts settle on | The last trade or an average of trades |
| Update rhythm | On a price move past a threshold, or a heartbeat | Every trade |
| Volume | None | Usually included |
Honest limits
- Feeds update unevenly, so history points are not on a fixed clock and candles have no volume.
- Feeds are read on Ethereum mainnet. History stays inside the feed's current phase.
- Check age_seconds before relying on a price. Not investment advice.
The product
Questions
Is it run by Chainlink?
No. It reads Chainlink's public feed contracts. Chainlink does not run or endorse it.
What if I ask for a pair that is not covered?
The call is refused with the list of supported pairs, and nothing is charged.
Related
Updated 2026-12-02
