{"data":{"billing":{"currency":"USD","mode":"rules","parameters":[],"policy_version":2,"sale":{"addons":[],"base_price_micro_usd":"0","max_cost_micro_usd":"2000","quantities":[{"id":"upstream_credits","label":"Actual API.SH credits consumed","max_quantity":"1","measure":"value","pointer":"/credits_used","price_micro_usd":"2000","quantity_scale":0,"source":"response","unit":"credit","unit_quantity":"1"}],"rounding":"ceil","variants":[]}},"capabilityId":"bee39d52-e9b7-4aea-bafa-1babcb4e7962","catalogType":"api","categories":["data"],"dataPlatform":"howlongtobeat","dataPlatformLogoUrl":"https://api.sh/logos/howlongtobeat.png","dataPlatformTranslations":{},"dataProduct":"game-reference","description":"Get HowLongToBeat game durations by ID or URL via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as id, output, and retrieve structured data including main-story sample count, platform grouping, and related game identifier for time-budget browsing, and game catalogue, ready for production pipelines and AI agent automation.","descriptionTranslations":{"ar":"استرجع تفاصيل لعبة HowLongToBeat بالمعرّف أو الرابط، مع تقديرات المدة وأعداد العينات حسب أسلوب اللعب وتوزيعات المنصات لمقارنة الألعاب بميزانية وقت شخصية. استخدم هويات المصدر وبياناته لإثراء فهرس ترفيهي أو واجهة اكتشاف، مع الحفاظ على سياق المنطقة والتاريخ والتوفر ومراجعة أمثلة الطلبات وتسعير التنفيذ الحالي في صفحة التفاصيل.","ja":"ID または URL で HowLongToBeat ゲーム詳細を照会し、プレイスタイル別の所要時間・集計件数・プラットフォーム別情報を比較できます。 返された出典の識別子とメタデータをエンタメカタログや検索画面に使い、地域・日付・利用可能性の文脈を保持できます。詳細ページにはリクエスト例と選択した実装の料金があります。","zh":"通过 ID 或链接查询 HowLongToBeat 游戏详情，获取不同玩法的时长估计、样本数与平台分布，用于按时间预算比较游戏。 可利用返回的来源标识和元数据补充娱乐目录或发现界面，并保留地区、日期和可用性上下文；详情页提供请求示例和当前实现价格。"},"effectContentHtml":"","executionMode":"sync","id":"25fc7a9d-e3af-4551-9e7d-adf587fbd787","includedContentHtml":"","inputs":[{"description":"current_players: also the people playing it now and recent backlog adds (one extra page read).","location":"query","name":"include","nullable":false,"required":false,"type":"string"},{"description":"Game id (`68151`) or a howlongtobeat.com/game link.","location":"query","name":"id","nullable":false,"required":false,"type":"string"},{"description":"A howlongtobeat.com/game link instead of `id`.","location":"query","name":"url","nullable":false,"required":false,"type":"string"},{"description":"0 leaves out the bulky `raw` source blocks (often 10-30x smaller).","enum_values":["0","1"],"location":"query","name":"raw","nullable":false,"required":false,"type":"string"},{"description":"Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.","location":"query","name":"fields","nullable":false,"required":false,"type":"string"},{"description":"1 skips the 24-hour cache and fetches live.","enum_values":["1"],"location":"query","name":"fresh","nullable":false,"required":false,"type":"string"},{"description":"JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.","enum_values":["json"],"location":"query","name":"output","nullable":false,"required":false,"type":"string"},{"description":"Native CSV/NDJSON record selector; it has no effect on this JSON-only product.","location":"query","name":"records","nullable":false,"required":false,"type":"string"}],"logoUrl":"https://api.sh/logos/howlongtobeat.png","method":"GET","name":"HowLongToBeat game API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eHowLongToBeat Game API\u003c/h2\u003e\n\u003cp\u003eSelect a game using id or url and inspect times for main story, extras, completionist and other available styles. Means, medians, ranges and polled counts describe source submissions rather than a guaranteed finish time.\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\u003eChoose the lookup or search inputs described below. Optional: include, id, url. JSON output; fresh=1 bypasses cache and raw=0 omits raw source blocks.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003eapish · HowLongToBeat game API\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\u003eTime-budget browsing\u003c/strong\u003e: Compare main-story and completionist estimates separately.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eGame catalogue\u003c/strong\u003e: Attach source sample counts to displayed duration estimates.\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\u003etimes.main_story.average_hours\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eAverage main-story duration in hours\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etimes.main_story.median_hours\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eMedian main-story duration in hours\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etimes.main_story.polled\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eMain-story sample count\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eby_platform[].platform\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003ePlatform grouping\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003erelated_games[].id\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eRelated game identifier\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/apish/howlongtobeat/v1/game \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode id=68151 \\\n  --data-urlencode output=json\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/25fc7a9d-e3af-4551-9e7d-adf587fbd787\"\u003ePublished HowLongToBeat Game 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\u003eHow do I identify the game?\u003c/h3\u003e\n\u003cp\u003eUse a HowLongToBeat game id or supported game URL.\u003c/p\u003e\n\u003ch3\u003eIs main-story time the same as completionist time?\u003c/h3\u003e\n\u003cp\u003eNo. Each play style has its own estimates and sample count; compare matching styles.\u003c/p\u003e\n\u003ch3\u003eWill I finish in the reported average?\u003c/h3\u003e\n\u003cp\u003eThe values summarize submitted playtimes. Individual completion time can differ; review median, range and polled with the average.\u003c/p\u003e\n\u003ch3\u003eWhy might a platform statistic be absent?\u003c/h3\u003e\n\u003cp\u003eA platform or style can lack available submissions. Keep null distinct from a zero-hour completion.\u003c/p\u003e\n\u003ch3\u003eHow do I bypass cached results?\u003c/h3\u003e\n\u003cp\u003ePass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.\u003c/p\u003e\n\u003ch3\u003eCan I request CSV or NDJSON?\u003c/h3\u003e\n\u003cp\u003eThis OpenAny implementation serves JSON only. Omit output or set output=json.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/howlongtobeat/howlongtobeat-game-completions-api\"\u003eHowLongToBeat game completions API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/howlongtobeat/howlongtobeat-search-api\"\u003eHowLongToBeat search API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/howlongtobeat/howlongtobeat-game-api?offering=25fc7a9d-e3af-4551-9e7d-adf587fbd787","providerId":"apish","publicPath":"/v1/agent-apis/apish/howlongtobeat/v1/game","requestContentType":"none","revision":3,"samples":[{"http_status":200,"name":"Official example · Official documentation response · Supplier-tr","request":{"body":null,"headers":{},"path":{},"query":{"id":"68151","output":"json"}},"response_body":{"age_ratings":{"cero":null,"esrb":null,"pegi":null},"alias":"Elden Ring Tarnished Edition","by_platform":[{"completionist_hours":329.15,"fastest_hours":329.15,"main_extra_hours":null,"main_story_hours":null,"platform":"Emulated","polled":1,"slowest_hours":329.15,"total":1},{"completionist_hours":144,"fastest_hours":38,"main_extra_hours":51.86,"main_story_hours":39,"platform":"Nintendo Switch 2","polled":5,"slowest_hours":144,"total":5},"… 5 more"],"by_platform_group":[{"all_styles_hours":65.15,"completionist_hours":144,"main_extra_hours":51.86,"main_story_hours":39,"platforms":"Nintendo Switch 2","polled":5},{"all_styles_hours":110.56,"completionist_hours":140.53,"main_extra_hours":103.85,"main_story_hours":59.75,"platforms":"PC, PlayStation 5","polled":9292},"… 2 more"],"cached":false,"coop":true,"credits_used":1,"developers":["FromSoftware"],"genres":["Third-Person","Action","… 2 more"],"id":68151,"image":"https://howlongtobeat.com/games/68151_Elden_Ring.jpg","in_lists":[{"author":"tiamat911","followers":7,"id":14586,"name":"IGN Playlist Team - GQ's Top 100 Video Games of All Time"},{"author":"odylanido","followers":3,"id":27056,"name":"Souls/ Soulslike"},"… 2 more"],"itch_id":null,"multiplayer":true,"name":"Elden Ring","parent_id":null,"platforms":["Nintendo Switch 2","PC","… 4 more"],"players":{"backlogs":15459,"completed":21745,"playing":395,"replays":1366,"retired":1456,"total":50091},"publishers":["Bandai Namco Entertainment"],"related_games":[{"all_styles_hours":40.31,"backlogs":985,"completionist_hours":51.3,"id":139385,"main_extra_hours":39.3,"main_story_hours":25.66,"name":"Shadow of the Erdtree","polled":1311,"review_score":89,"type":"dlc","url":"https://howlongtobeat.com/game/139385"}],"release":{"eu":"2022-02-25","jp":"2022-02-25","na":"2022-02-25","world":"2022-02-25"},"review_count":7588,"review_distribution":{"10":1,"100":3949,"15":0,"20":9,"25":0,"30":14,"35":2,"40":18,"45":0,"5":5,"50":41,"55":10,"60":88,"65":25,"70":206,"75":75,"80":566,"85":300,"90":1605,"95":902},"review_score":93,"single_player":true,"stats_updated":"2026-11-05 09:25:05","steam_app_id":1245620,"summary":"The Golden Order has been broken. Rise, Tarnished, and be guided by grace to brandish the power of the Elden Ring and become an Elden Lord i…","times":{"all_styles":{"average_hours":111.19,"fastest_hours":59.27,"median_hours":100,"polled":10715,"slowest_hours":306.92},"completionist":{"average_hours":142.4,"fastest_hours":92.6,"median_hours":130,"polled":3934,"slowest_hours":322.23},"coop":{"average_hours":76.68,"fastest_hours":30.14,"median_hours":43.4,"polled":73,"slowest_hours":330.2},"main_extra":{"average_hours":104.64,"fastest_hours":65.19,"median_hours":98.13,"polled":5015,"slowest_hours":239.55},"main_story":{"average_hours":60.24,"fastest_hours":36.53,"median_hours":60,"polled":1766,"slowest_hours":87.06},"multiplayer":{"average_hours":48.67,"fastest_hours":15.56,"median_hours":12.5,"polled":30,"slowest_hours":160.17},"speedrun_100":{"average_hours":29.81,"fastest_hours":29.81,"median_hours":29.81,"polled":1,"slowest_hours":29.81},"speedrun_any":{"average_hours":3.98,"fastest_hours":0.92,"median_hours":3.65,"polled":20,"slowest_hours":10}},"type":"game","url":"https://howlongtobeat.com/game/68151"}}],"seoDescription":"Get HowLongToBeat game durations by ID or URL via REST or MCP powered by Apish. Pay per call, no subscription. Built for time-budget browsing workflows.","updatedAt":"2026-12-03T02:45:29.728Z","usageInstructionsHtml":""}}