{"uid":"cap_hrpdB5bdku98GV2r4AnKS","slug":"blockscout-chain-stats-lines-api-ed48e2a6","name":"Blockscout Chain Stats Lines API","description":"Explore crypto activities with Blockscout's multichain search. Find transactions, addresses, tokens, and dapps across top blockchain networks — your go-to explorer for cross-chain blockchain data","url":"https://api.blockscout.com/%7Bchain_id%7D/stats-service/api/v1/lines","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"pathParams":{"type":"object","properties":{"chain_id":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"sections":[{"id":"string","title":"string","charts":[{"id":"string","title":"string","units":"string","description":"string","resolutions":["string"]}]}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3cEx2SHAEcDoY4Pu1AfDj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns available statistics chart sections and their metadata (chart IDs, titles, units, descriptions, and resolutions) for a specific blockchain network","exampleAgentPrompt":"What statistics charts are available on Blockscout's stats service for the Ethereum mainnet chain — show me all sections, chart IDs, and what resolutions they support.","exampleUseCases":[{"title":"Discover analytics for a new chain","prompt":"I'm building a dashboard for Arbitrum — can you pull all the available stats chart sections and their metadata from Blockscout's stats service for Arbitrum so I know what metrics I can display?"},{"title":"Compare chart availability across chains","prompt":"Before I start coding, can you check what statistics chart lines Blockscout exposes for Polygon so I know which on-chain metrics and time resolutions are available?"},{"title":"Audit supported stat resolutions","prompt":"I need to know if Blockscout's stats service for Base supports daily and weekly resolutions for its charts — can you fetch the available stat lines and show me the resolution options for each chart?"}],"resultDescription":"Returns a JSON object with a 'sections' array, where each section has an id, title, and an array of charts. Each chart includes an id, title, units, description, and supported resolutions (e.g. day, week, month). This allows callers to discover what statistical time-series charts are available and queryable for a given blockchain.","failureModes":["Invalid or unsupported chain_id returns an error or empty response","Network or service unavailability returns a 5xx error","Payment not sent or insufficient causes a 402 Payment Required response","Malformed request (wrong HTTP method) returns a 4xx error","Chain not indexed by Blockscout returns no sections"],"whenToPreferThis":"Use this endpoint when you need to discover what statistical chart metadata is available for a specific blockchain on Blockscout before fetching actual chart data. It is a discovery/catalog endpoint — prefer it over querying individual chart data directly when you don't yet know which chart IDs or resolutions are supported for a chain.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:41:40.828Z","isFirstParty":false}