{"api":{"id":"api_372cc3fd18a41d8b10a52a90","slug":"token-prices-by-address","name":"Token Prices by Contract Address","description":"USD prices of crypto tokens by contract address on any chain, or by CoinGecko id, from DefiLlama: the latest price, the price at a past moment or a price history, with the symbol, decimals, when each price was recorded and the source's confidence score.","kind":"ready_made","visibility":"public","domain":"defillama.com","source_url":"https://coins.llama.fi/prices/current/coingecko:bitcoin,ethereum:0xdAC17F958D2ee523a2206206994597C13D831ec7","category":"finance","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":11,"created_at":"2026-12-06T03:57:27.714Z","updated_at":"2026-12-06T03:57:27.714Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"token_id","type":"string","description":"The token as asked, such as coingecko:bitcoin or ethereum:0xdAC17F958D2ee523a2206206994597C13D831ec7.","required":true,"coverage":1,"example":"coingecko:bitcoin"},{"name":"chain","type":"string","description":"Chain of a chain:address token, such as ethereum, bsc or solana; empty for CoinGecko ids.","required":false,"coverage":0.5,"example":"ethereum"},{"name":"address","type":"string","description":"Contract address of the token on that chain; empty for CoinGecko ids.","required":false,"coverage":0.5,"example":"0xdAC17F958D2ee523a2206206994597C13D831ec7"},{"name":"coingecko_id","type":"string","description":"CoinGecko id of a coingecko: token, such as bitcoin.","required":false,"coverage":0.5,"example":"bitcoin"},{"name":"symbol","type":"string","description":"Ticker symbol, such as BTC or USDT.","required":false,"coverage":1,"example":"BTC"},{"name":"price_usd","type":"number","description":"Price of one whole token in US dollars.","required":true,"coverage":1,"example":42969.405486},{"name":"decimals","type":"integer","description":"Decimal places of the token contract, such as 6 for USDT; for chain:address tokens.","required":false,"coverage":0.5,"example":6},{"name":"price_at","type":"datetime","description":"When the source recorded this price (UTC), close to the moment asked.","required":true,"coverage":1,"example":"2026-12-05T19:46:19.000Z"},{"name":"timestamp","type":"integer","description":"The same moment as Unix time in seconds.","required":false,"coverage":1,"example":1796499979},{"name":"confidence","type":"number","description":"The source's confidence in the price, from 0 to 1.","required":false,"coverage":1,"example":0.999},{"name":"token_url","type":"url","description":"The token's page on CoinGecko or on its chain's block explorer.","required":false,"coverage":1,"example":"https://www.coingecko.com/en/coins/bitcoin"}],"inputs":[{"name":"coins","type":"array","description":"Coins and tokens as chain:address, such as ethereum:0xdAC17F958D2ee523a2206206994597C13D831ec7 or solana:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v, or as coingecko:<id>, such as coingecko:bitcoin. Up to 1,000.","example":["coingecko:bitcoin","ethereum:0xdAC17F958D2ee523a2206206994597C13D831ec7"],"required":true},{"name":"timestamp","type":"integer","description":"A past moment as Unix time in seconds, such as 1796500000. Leave empty for the latest prices.","example":1796500000},{"name":"points","type":"integer","description":"For a price history: how many prices per token, spaced by interval and ending at timestamp (or now), up to 500. Leave empty for one price per token.","example":30},{"name":"interval","type":"string","description":"Time between the prices of a history: one hour, four hours, twelve hours, one day or one week.","default":"1d","enum":["1h","4h","12h","1d","1w"]},{"name":"search_width_hours","type":"integer","description":"How many hours before or after each moment a price may come from, 1 to 168. Leave empty for the default: 6 hours for one price, a tenth of the interval for a history.","example":24}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"address":{"description":"Contract address of the token on that chain; empty for CoinGecko ids.","type":"string"},"chain":{"description":"Chain of a chain:address token, such as ethereum, bsc or solana; empty for CoinGecko ids.","type":"string"},"coingecko_id":{"description":"CoinGecko id of a coingecko: token, such as bitcoin.","type":"string"},"confidence":{"description":"The source's confidence in the price, from 0 to 1.","type":"number"},"decimals":{"description":"Decimal places of the token contract, such as 6 for USDT; for chain:address tokens.","type":"integer"},"price_at":{"description":"When the source recorded this price (UTC), close to the moment asked.","format":"date-time","type":"string"},"price_usd":{"description":"Price of one whole token in US dollars.","type":"number"},"symbol":{"description":"Ticker symbol, such as BTC or USDT.","type":"string"},"timestamp":{"description":"The same moment as Unix time in seconds.","type":"integer"},"token_id":{"description":"The token as asked, such as coingecko:bitcoin or ethereum:0xdAC17F958D2ee523a2206206994597C13D831ec7.","type":"string"},"token_url":{"description":"The token's page on CoinGecko or on its chain's block explorer.","format":"uri","type":"string"}},"required":["token_id","price_usd","price_at"],"title":"Token Prices by Contract Address","type":"object"},"samples":[{"token_id":"coingecko:bitcoin","chain":null,"address":null,"coingecko_id":"bitcoin","symbol":"BTC","price_usd":42969.405486,"decimals":null,"price_at":"2026-12-05T19:46:19.000Z","timestamp":1796499979,"confidence":0.999,"token_url":"https://www.coingecko.com/en/coins/bitcoin"},{"token_id":"ethereum:0xdAC17F958D2ee523a2206206994597C13D831ec7","chain":"ethereum","address":"0xdAC17F958D2ee523a2206206994597C13D831ec7","coingecko_id":null,"symbol":"USDT","price_usd":0.99881,"decimals":6,"price_at":"2026-12-05T19:46:19.000Z","timestamp":1796499979,"confidence":0.999,"token_url":"https://etherscan.io/token/0xdAC17F958D2ee523a2206206994597C13D831ec7"},{"token_id":"solana:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","chain":"solana","address":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","coingecko_id":null,"symbol":"usdc","price_usd":0.999908691,"decimals":6,"price_at":"2026-12-05T19:46:19.000Z","timestamp":1796499979,"confidence":0.999,"token_url":"https://solscan.io/token/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}],"validation":{"checked_at":"2026-12-06T03:57:27.599Z","field_coverage":{"address":0.67,"chain":0.67,"coingecko_id":0.33,"confidence":1,"decimals":0.67,"price_at":1,"price_usd":1,"symbol":1,"timestamp":1,"token_id":1,"token_url":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_372cc3fd18a41d8b10a52a90/run","openapi":"https://pullrow.dev/v1/apis/api_372cc3fd18a41d8b10a52a90/openapi.json","contract":"https://pullrow.dev/v1/apis/api_372cc3fd18a41d8b10a52a90/contract.json","page":"https://pullrow.dev/catalog/token-prices-by-address"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["Prices are DefiLlama's own USD reference prices, built from CoinGecko and on-chain market data. They are not trading quotes and can differ from the price on a given exchange.","Tokens the source does not know, or has no price for near the moment asked, are left out without an error. Compare the token field with your list to find them.","Each price is the nearest one the source recorded within 6 hours of the moment asked (a tenth of the interval for a history); price_at shows when. Raise search_width_hours for old or rarely traded tokens.","A history holds at most 500 prices per token, and one run takes at most 1,000 tokens. How far back prices go depends on the token: Bitcoin and Litecoin reach April 2013, most tokens much less.","confidence is empty for older prices, decimals comes only with chain:address tokens, and symbol is written as the source writes it (a few in lower case, such as usdc).","A bare 0x address is read as an Ethereum token and a bare name as a CoinGecko id (bitcoin, not BTC). Name the chain for any other chain, such as bsc:0x… or solana:….","token_url links to CoinGecko or the block explorer of Ethereum, BNB Chain, Polygon, Arbitrum, Optimism, Base, Avalanche or Solana; it is empty for other chains.","Data from DefiLlama's free open API: credit DefiLlama (defillama.com) when you publish it."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"token_id","label":"Token ID","description":"The token as asked, such as coingecko:bitcoin or ethereum:0xdAC17F958D2ee523a2206206994597C13D831ec7.","group":"Technical","shown":false,"written":false},{"name":"chain","label":"Chain","description":"Chain of a chain:address token, such as ethereum, bsc or solana; empty for CoinGecko ids.","group":"Basics","shown":true,"written":false},{"name":"address","label":"Address","description":"Contract address of the token on that chain; empty for CoinGecko ids.","group":"Location","shown":true,"written":false},{"name":"coingecko_id","label":"Coingecko ID","description":"CoinGecko id of a coingecko: token, such as bitcoin.","group":"Technical","shown":false,"written":false},{"name":"symbol","label":"Symbol","description":"Ticker symbol, such as BTC or USDT.","group":"Basics","shown":true,"written":false},{"name":"price_usd","label":"Price (USD)","description":"Price of one whole token in US dollars.","group":"Pay","shown":true,"written":false},{"name":"decimals","label":"Decimals","description":"Decimal places of the token contract, such as 6 for USDT; for chain:address tokens.","group":"Basics","shown":true,"written":false},{"name":"price_at","label":"Price at","description":"When the source recorded this price (UTC), close to the moment asked.","group":"Pay","shown":true,"written":false},{"name":"timestamp","label":"Timestamp","description":"The same moment as Unix time in seconds.","group":"Basics","shown":true,"written":false},{"name":"confidence","label":"Confidence","description":"The source's confidence in the price, from 0 to 1.","group":"Basics","shown":true,"written":false},{"name":"token_url","label":"Token link","description":"The token's page on CoinGecko or on its chain's block explorer.","group":"Links","shown":true,"written":false}],"inputs":[{"name":"coins","label":"Coins","help":"Coins and tokens as chain:address, such as ethereum:0xdAC17F958D2ee523a2206206994597C13D831ec7 or solana:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v, or as coingecko:<id>, such as coingecko:bitcoin. Up to 1,000.","example":"coingecko:bitcoin, ethereum:0xdAC17F958D2ee523a2206206994597C13D831ec7","written":false},{"name":"timestamp","label":"Timestamp","help":"A past moment as Unix time in seconds, such as 1796500000. Leave empty for the latest prices.","example":"1796500000","written":false},{"name":"points","label":"Points","help":"For a price history: how many prices per token, spaced by interval and ending at timestamp (or now), up to 500. Leave empty for one price per token.","example":"30","written":false},{"name":"interval","label":"Interval","help":"Time between the prices of a history: one hour, four hours, twelve hours, one day or one week.","example":"","written":false},{"name":"search_width_hours","label":"Search width hours","help":"How many hours before or after each moment a price may come from, 1 to 168. Leave empty for the default: 6 hours for one price, a tenth of the interval for a history.","example":"24","written":false}]}},"incidents":[]}