{"data":{"billing":{"currency":"USD","mode":"fixed","priceMicroUsd":"0","rounding":null,"unit":"call","unitQuantity":null},"capabilityId":"c4bf0d60-feb0-47b4-b569-1483d3674072","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":"Read the Blockscout Optimism protocol game count 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 $ for explorer counters, and list context, ready for production pipelines and AI agent automation using a single OpenAny API key.","descriptionTranslations":{"ar":"اقرأ عدد ألعاب بروتوكول Optimism المبلغ عنه لسلسلة محددة عبر OpenAny REST كقيمة رقمية واحدة، لعدادات ملخص المستكشف ولوحات المتابعة إلى جانب قائمة السجلات المقابلة. استخدم البيانات في واجهات المستكشف أو أدوات فحص السلسلة، مع الاحتفاظ بمعرفات السلسلة والموارد عند دمج النتائج، وراجع قوالب الطلبات والمدخلات المدعومة وتسعير التنفيذ المحدد في صفحة التفاصيل.","ja":"OpenAny REST で指定チェーンのOptimism ゲーム件数を単一の数値として取得し、対応するレコード一覧と組み合わせて集計カウンターや監視画面に利用できます。 返されたデータをエクスプローラー画面やチェーン調査ツールで利用できます。結果を結合する際はチェーンとリソースの識別子を保持し、詳細ページのリクエスト例、対応入力、選択した実装の料金を確認してください。","zh":"通过 OpenAny REST 读取指定链的Optimism 协议博弈总数，返回单一数值，可配合对应记录列表构建浏览器汇总计数器与监测面板。 可将返回数据用于浏览器界面或链上调查工具，合并结果时保留链与资源标识符；详情页提供请求模板、支持的输入及所选实现的价格。"},"effectContentHtml":"","executionMode":"sync","id":"5b8d67cf-2b06-418f-b959-c5aaa1de03cc","includedContentHtml":"","inputs":[{"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 — Number of games in the list.","nameTranslations":{"ar":"Blockscout — عدد الألعاب في القائمة.","ja":"Blockscout — リスト内のゲーム数。","zh":"Blockscout — 列表中的游戏数。"},"overviewHtml":"\u003ch2\u003eBlockscout Optimism Games Count API\u003c/h2\u003e\n\u003cp\u003eCall optimism/games/count with chain_id. The JSON response is a number at the root, representing the reported optimism games count. This route has no query filters or pagination inputs; retrieve individual entries from the corresponding list endpoint.\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: chain_id\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003eblockscout · Blockscout — Number of games in the list.\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\u003eExplorer counters\u003c/strong\u003e: Show the reported optimism games count for one chain.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eList context\u003c/strong\u003e: Display the count alongside the matching record list without treating it as the number of items on one page.\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\u003e$\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eRoot JSON number containing the reported optimism games count\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/optimism/games/count\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/5b8d67cf-2b06-418f-b959-c5aaa1de03cc\"\u003ePublished Blockscout Optimism Games Count 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\u003eDoes this count only resolved games?\u003c/h3\u003e\n\u003cp\u003eThe selected count route has no status filter. Do not interpret the total as a resolved-game count.\u003c/p\u003e\n\u003ch3\u003eIs the response an object with a count property?\u003c/h3\u003e\n\u003cp\u003eNo. Read the root JSON number directly, rather than looking for count or items.\u003c/p\u003e\n\u003ch3\u003eCan I filter this count by time or address?\u003c/h3\u003e\n\u003cp\u003eThis implementation accepts chain_id only. It exposes no time, address or pagination query inputs.\u003c/p\u003e\n\u003ch3\u003eDoes a zero value mean the request failed?\u003c/h3\u003e\n\u003cp\u003eA successful numeric zero is a count value. Handle HTTP or business errors separately, and check chain support when interpreting an unexpected zero.\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-list-withdrawals-297de212\"\u003eBlockscout — List withdrawals.\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/blockscout/blockscout-lists-all-beacon-deposits\"\u003eBlockscout — Lists all beacon deposits\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/blockscout/blockscout-number-of-batches-in-the-list\"\u003eBlockscout — Number of batches in the list.\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/blockscout/blockscout-number-of-games-in-the-list?offering=5b8d67cf-2b06-418f-b959-c5aaa1de03cc","providerId":"blockscout","publicPath":"/v1/agent-apis/blockscout/{chain_id}/api/v2/optimism/games/count","requestContentType":"none","revision":4,"samples":[{"http_status":200,"name":"Schema template · Schema template (not executed)","request":{"body":null,"headers":{},"path":{"chain_id":"\u003cchain_id\u003e"},"query":{}},"response_body":0}],"seoDescription":"Read the Blockscout Optimism protocol game count via REST or MCP powered by Blockscout. Pay per call, no subscription. Ideal for explorer counters.","updatedAt":"2026-12-03T02:49:22.370Z","usageInstructionsHtml":""}}