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

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 feedExchange or aggregator price
What it isThe value DeFi contracts settle onThe last trade or an average of trades
Update rhythmOn a price move past a threshold, or a heartbeatEvery trade
VolumeNoneUsually included

Honest limits

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