{"data":{"billing":{"currency":"USD","mode":"fixed","priceMicroUsd":"0","rounding":null,"unit":"call","unitQuantity":null},"capabilityId":"8452a8c3-dcfa-4354-b28f-d9cfd772d456","catalogType":"api","categories":["data","finance","crypto-defi"],"dataPlatform":"DefiLlama","dataPlatformLogoUrl":"https://api-docs.defillama.com/icons/favicon-96x96.png","dataPlatformTranslations":{"ar":"DefiLlama","ja":"DefiLlama","zh":"DefiLlama"},"dataProduct":"prices","description":"Get DefiLlama Token Price Change data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, pass parameters such as lookForward, period, timestamp, and retrieve structured data including coins and \u003ccoin\u003e to build top movers tables, measure post-event performance, and trigger volatility alerts, ready for production pipelines and AI agent automation.","descriptionTranslations":{"ar":"احسب نسبة التغير السعري لعدة رموز خلال فترات زمنية مخصصة عبر OpenAny REST لتشغيل تنبيهات السوق وتقارير الأداء. مرر معرفات الرموز مفصولة بفواصل مع معاملات timestamp وperiod وlookForward اختياريا للحصول على نسب التغير.","ja":"OpenAny REST で複数トークンの任意期間における価格変動率を取得し、モメンタム分析やアラート、市況サマリーに活用できます。カンマ区切りのチェーン・アドレスに任意の timestamp・period・lookForward を指定すると各トークンの変動率を返します。","zh":"通过 OpenAny REST 计算多个代币在自定义回顾或前瞻时间窗口内的价格涨跌幅，用于驱动动量筛选、行情告警与市场简报。传入逗号分隔的链与合约地址标识及可选 timestamp、period 与 lookForward 参数，即可返回各代币的百分比涨跌数据。"},"effectContentHtml":"","executionMode":"sync","id":"a0015713-e194-47f9-adcb-f4bc4400c1f0","includedContentHtml":"","inputs":[{"description":"set of comma-separated tokens defined as {chain}:{address}","location":"path","name":"coins","nullable":false,"required":true,"type":"string"},{"description":"timestamp of data point requested, defaults to time now","location":"query","name":"timestamp","nullable":false,"required":false,"type":"number"},{"description":"whether you want the duration after your given timestamp or not, defaults to false (looking back)","location":"query","name":"lookForward","nullable":false,"required":false,"type":"boolean"},{"description":"duration between data points, defaults to 24 hours","location":"query","name":"period","nullable":false,"required":false,"type":"string"}],"logoUrl":"https://api-docs.defillama.com/icons/favicon-96x96.png","method":"GET","name":"DefiLlama — Get percentage change in price over time","nameTranslations":{"ar":"DefiLlama — الحصول على النسبة المئوية للتغير في السعر خلال فترة زمنية","ja":"DefiLlama — 一定期間の価格変化率を取得","zh":"DefiLlama — 获取一段时间内的价格百分比变化"},"overviewHtml":"\u003ch2\u003eDefiLlama Token Price Change API\u003c/h2\u003e\n\u003cp\u003eSupply comma-separated \u003ccode\u003e{chain}:{address}\u003c/code\u003e or \u003ccode\u003ecoingecko:{id}\u003c/code\u003e tokens in the \u003ccode\u003ecoins\u003c/code\u003e path parameter, plus optional \u003ccode\u003etimestamp\u003c/code\u003e, \u003ccode\u003eperiod\u003c/code\u003e (default 24h) and \u003ccode\u003elookForward\u003c/code\u003e (default false) query parameters. The response maps each coin key to its percentage change.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eRequired path: coins ({chain}:{address} list). Optional query: timestamp (UNIX seconds, default now), lookForward (boolean, default false), period (e.g. 24h, 3w, default 24h).\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003edefillama · DefiLlama — Get percentage change in price over time\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eBuild top movers tables\u003c/strong\u003e: Batch watchlist contract addresses with period=24h or 7d to rank gainers and losers.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eMeasure post-event performance\u003c/strong\u003e: Set timestamp to a governance vote or listing time with lookForward=true to measure subsequent returns.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eTrigger volatility alerts\u003c/strong\u003e: Poll percentage moves across collateral tokens to flag sharp drawdowns automatically.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eReturned Data\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ecoins\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eMap of requested token identifiers to percentage price change values\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ecoins.\u0026lt;coin\u0026gt;\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eNumeric percentage price change over the requested period (positive or negative)\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request GET --get \\\n  https://api.openany.si/v1/agent-apis/defillama/percentage/ethereum%3A0xdF574c24545E5FfEcb9a659c229253D4111d87e1%2Ccoingecko%3Aethereum%2Cbsc%3A0x762539b45a1dcce3d36d080f74d1aed37844b878%2Cethereum%3A0xdB25f211AB05b1c97D595516F45794528a807ad8 \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode lookForward=false \\\n  --data-urlencode period=3w \\\n  --data-urlencode timestamp=1664364537\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/a0015713-e194-47f9-adcb-f4bc4400c1f0\"\u003ePublished DefiLlama Token Price Change API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eWhat is the default time period if period is omitted?\u003c/h3\u003e\n\u003cp\u003eAccording to the contract, period defaults to 24 hours and timestamp defaults to the current time.\u003c/p\u003e\n\u003ch3\u003eWhat does lookForward=true do?\u003c/h3\u003e\n\u003cp\u003eWhen true, the API measures the percentage change forward from timestamp; when false (default), it looks backward. This chooses the comparison direction; it does not forecast future prices.\u003c/p\u003e\n\u003ch3\u003eWhat format should period use?\u003c/h3\u003e\n\u003cp\u003eUse compact duration strings such as 24h, 7d or 3w (as shown in the reference request).\u003c/p\u003e\n\u003ch3\u003eHow are the returned percentage values represented?\u003c/h3\u003e\n\u003cp\u003eEach value under coins.\u0026lt;coin\u0026gt; is a signed number representing percentage change (for example, -2.30 means -2.30%).\u003c/p\u003e\n\u003ch3\u003eCan I query multiple tokens in one request?\u003c/h3\u003e\n\u003cp\u003eYes. Separate multiple {chain}:{address} or coingecko:{id} keys with commas in the coins path segment.\u003c/p\u003e\n\u003ch3\u003eHow do I get the underlying USD prices instead of percentage change?\u003c/h3\u003e\n\u003cp\u003eUse the DefiLlama Current Token Prices API or Token Price Chart API.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/defillama/defillama-get-current-prices-of-tokens-by-contract-address\"\u003eDefiLlama Current Token Prices API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/defillama/defillama-get-token-prices-at-regular-time-intervals\"\u003eDefiLlama Token Price Chart API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/defillama/defillama-get-historical-prices-of-tokens-by-contract-address\"\u003eDefiLlama Historical Token Prices API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/defillama/defillama-get-percentage-change-in-price-over-time?offering=a0015713-e194-47f9-adcb-f4bc4400c1f0","providerId":"defillama","publicPath":"/v1/agent-apis/defillama/percentage/{coins}","requestContentType":"none","revision":5,"samples":[{"http_status":200,"name":"Official UI example (not runtime verified)","request":{"body":null,"headers":{},"path":{"coins":"ethereum:0xdF574c24545E5FfEcb9a659c229253D4111d87e1,coingecko:ethereum,bsc:0x762539b45a1dcce3d36d080f74d1aed37844b878,ethereum:0xdB25f211AB05b1c97D595516F45794528a807ad8"},"query":{"lookForward":false,"period":"3w","timestamp":1664364537}},"response_body":{"coins":{"ethereum:0xdF574c24545E5FfEcb9a659c229253D4111d87e1":-2.3009954568977147}}}],"seoDescription":"Get DefiLlama Token Price Change data via REST or MCP powered by DeFiLlama. Pay per call, no subscription. Designed to build top movers tables.","updatedAt":"2026-12-03T02:39:12.957Z","usageInstructionsHtml":""}}