{"data":{"billing":{"currency":"USD","mode":"fixed","priceMicroUsd":"0","rounding":null,"unit":"call","unitQuantity":null},"capabilityId":"b114438b-e059-4d71-9849-7988ca637720","catalogType":"api","categories":["crypto-defi"],"dataPlatform":"blockscout","dataPlatformLogoUrl":"https://www.blockscout.com/favicon/apple-touch-icon-180x180.png","dataPlatformTranslations":{"ar":"Blockscout","ja":"Blockscout","zh":"Blockscout"},"dataProduct":"explorer-rest","description":"Get a Blockscout block by number via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Blockscout, pass parameters such as Set, and retrieve structured data including block hash, block height, block timestamp, reported transaction count, and reported internal-transaction count for block details, and explorer navigation, ready for production pipelines and AI agent automation.","descriptionTranslations":{"ar":"استرجع كتلة بارتفاع غير سالب عبر OpenAny REST على سلسلة محددة، مع هوية الكتلة والوقت وأعداد المعاملات وسياق الغاز لصفحات التفاصيل والتنقل في المستكشف وأدوات الفحص. استخدم البيانات في واجهات المستكشف أو أدوات فحص السلسلة، مع الاحتفاظ بمعرفات السلسلة والموارد عند دمج النتائج، وراجع قوالب الطلبات والمدخلات المدعومة وتسعير التنفيذ المحدد في صفحة التفاصيل.","ja":"OpenAny REST で非負のブロック番号から指定チェーンのブロックを取得し、識別情報、時刻、取引数、ガス情報を詳細画面や調査に利用できます。 返されたデータをエクスプローラー画面やチェーン調査ツールで利用できます。結果を結合する際はチェーンとリソースの識別子を保持し、詳細ページのリクエスト例、対応入力、選択した実装の料金を確認してください。","zh":"通过 OpenAny REST 使用非负区块高度查询指定链的区块，读取区块身份、时间、交易数及 Gas 信息，用于区块详情、浏览器导航与网络调查工具。 可将返回数据用于浏览器界面或链上调查工具，合并结果时保留链与资源标识符；详情页提供请求模板、支持的输入及所选实现的价格。"},"effectContentHtml":"","executionMode":"sync","id":"fb8e3cd0-c8f9-4a0f-ace0-bb73112bc619","includedContentHtml":"","inputs":[{"description":"Block hash or number in the path Import profile accepts the integer branch only; other union branches are not exposed.","location":"path","minimum":"0","name":"block_hash_or_number_param","nullable":false,"required":true,"type":"integer"},{"description":"The ID of the blockchain","location":"path","name":"chain_id","nullable":false,"required":true,"type":"string"}],"logoUrl":"https://www.blockscout.com/favicon/apple-touch-icon-180x180.png","method":"GET","name":"Blockscout — Retrieves detailed information for a specific block identified by its number or hash.","nameTranslations":{"ar":"Blockscout — يسترجع معلومات تفصيلية عن كتلة محددة يتم تحديدها برقمها أو تجزئتها.","ja":"Blockscout — 番号またはハッシュで識別される特定のブロックの詳細情報を取得します。","zh":"Blockscout — 检索由编号或哈希标识的特定区块的详细信息。"},"overviewHtml":"\u003ch2\u003eBlockscout Block by Number API\u003c/h2\u003e\n\u003cp\u003eProvide chain_id and an integer block_hash_or_number_param of at least 0. This implementation accepts the numeric-height branch only. The response is a single block object containing identity, counts and execution context.\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\u003epath: block_hash_or_number_param, chain_id\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003eblockscout · Blockscout — Retrieves detailed information for a specific block identified by its number or hash.\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\u003eBlock details\u003c/strong\u003e: Show block identity, counts and gas context together.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eExplorer navigation\u003c/strong\u003e: Resolve a chain-specific numeric block height.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eDocumented Response Fields\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\u003ehash\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eBlock hash\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eheight\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eBlock height\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etimestamp\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eBlock timestamp\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etransactions_count\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReported transaction count\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003einternal_transactions_count\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReported internal-transaction count\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eminer.hash\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReported block producer address\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003egas_used\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReported gas used\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\u003eSet the path variables shown in the URL to your target values; URL-encode each path segment before calling.\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  \u0026#34;https://api.openany.si/v1/agent-apis/blockscout/${CHAIN_ID_URI:?Set CHAIN_ID_URI}/api/v2/blocks/${BLOCK_HASH_OR_NUMBER_PARAM_URI:?Set BLOCK_HASH_OR_NUMBER_PARAM_URI}\u0026#34; \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  -H \u0026#39;Content-Type: application/json\u0026#39;\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response example is a schema template, not a captured response. Set the named path variables for your target chain and resource before using the request template; read actual returned values and optional fields from the result.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/fb8e3cd0-c8f9-4a0f-ace0-bb73112bc619\"\u003ePublished Blockscout Block by Number 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\u003eCan I pass a hexadecimal block hash?\u003c/h3\u003e\n\u003cp\u003eNo. Despite the parameter name, this implementation accepts a nonnegative integer block height only.\u003c/p\u003e\n\u003ch3\u003eIs height 0 allowed?\u003c/h3\u003e\n\u003cp\u003eYes. The declared minimum is 0. Use the height on the chain selected by chain_id.\u003c/p\u003e\n\u003ch3\u003eAre full transactions included with transactions_count?\u003c/h3\u003e\n\u003cp\u003eA count is not a transaction list. Use the matching block-transactions route to retrieve individual transactions.\u003c/p\u003e\n\u003ch3\u003eDoes the same height identify a block across chains?\u003c/h3\u003e\n\u003cp\u003eNo. Keep chain_id with the height and returned hash when storing or linking the result.\u003c/p\u003e\n\u003ch3\u003eWhich API key should I use?\u003c/h3\u003e\n\u003cp\u003eUse your OpenAny API key as Bearer authentication on the documented OpenAny route.\u003c/p\u003e\n\u003ch3\u003eWhere can I check the current request price?\u003c/h3\u003e\n\u003cp\u003eCheck the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/blockscout/blockscout-retrieve-detailed-information-about-a-specific-address-or-contract\"\u003eBlockscout — Retrieve detailed information about a specific address or contract\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/blockscout/blockscout-retrieve-detailed-information-about-a-specific-token\"\u003eBlockscout — Retrieve detailed information about a specific token\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/blockscout/blockscout-retrieve-hot-smart-contracts\"\u003eBlockscout — Retrieve hot smart-contracts\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/blockscout/blockscout-retrieves-detailed-information-for-a-specific-block-identified-by-its-number-or-hash?offering=fb8e3cd0-c8f9-4a0f-ace0-bb73112bc619","providerId":"blockscout","publicPath":"/v1/agent-apis/blockscout/{chain_id}/api/v2/blocks/{block_hash_or_number_param}","requestContentType":"none","revision":4,"samples":[{"http_status":200,"name":"Schema template · Schema template (not executed)","request":{"body":null,"headers":{},"path":{"block_hash_or_number_param":0,"chain_id":"\u003cchain_id\u003e"},"query":{}},"response_body":{"base_fee_per_gas":"\u003cbase_fee_per_gas\u003e","burnt_fees":"\u003cburnt_fees\u003e","burnt_fees_percentage":0,"difficulty":"\u003cdifficulty\u003e","gas_limit":"\u003cgas_limit\u003e","gas_target_percentage":0,"gas_used":"\u003cgas_used\u003e","gas_used_percentage":0,"hash":"\u003chash\u003e","height":0,"internal_transactions_count":0,"is_pending_update":false,"miner":{"ens_domain_name":"\u003cens_domain_name\u003e","hash":"\u003chash\u003e","implementations":[{"address_hash":"\u003caddress_hash\u003e","name":"\u003cname\u003e"}],"is_contract":false,"is_scam":false,"is_verified":false,"metadata":{"tags":[{"meta":{},"name":"\u003cname\u003e","ordinal":0,"slug":"\u003cslug\u003e","tagType":"\u003ctagType\u003e"}]},"name":"\u003cname\u003e","proxy_type":"eip1167","reputation":"ok"},"nonce":"\u003cnonce\u003e","parent_hash":"\u003cparent_hash\u003e","priority_fee":"\u003cpriority_fee\u003e","rewards":[{"reward":"\u003creward\u003e","type":"\u003ctype\u003e"}],"size":0,"timestamp":"\u003ctimestamp\u003e","total_difficulty":"\u003ctotal_difficulty\u003e","transaction_fees":"\u003ctransaction_fees\u003e","transactions_count":0,"type":"block","uncles_hashes":[{"hash":"\u003chash\u003e"}],"withdrawals_count":0}}],"seoDescription":"Get a Blockscout block by number via REST or MCP powered by Blockscout. Pay per call, no subscription. Get block hash and block height in JSON.","updatedAt":"2026-12-03T02:49:23.565Z","usageInstructionsHtml":""}}