{"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":"392e86fa-362f-441c-9fce-c970d2fc5896","catalogType":"api","categories":["data"],"dataPlatform":"howlongtobeat","dataPlatformLogoUrl":"https://api.sh/logos/howlongtobeat.png","dataPlatformTranslations":{},"dataProduct":"game-reference","description":"Search HowLongToBeat games by title, platform, genre and playtime range via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, q, and retrieve structured data including game identifier, main-story duration estimate, completionist duration estimate, and resolved search filters for game discovery, and catalogue browsing.","descriptionTranslations":{"ar":"ابحث عن ألعاب HowLongToBeat بالنص والمنصة والنوع ونطاق المدة، مع الفرز والصفحات لبناء واجهة اكتشاف تراعي وقت اللعب المتاح. استخدم هويات المصدر وبياناته لإثراء فهرس ترفيهي أو واجهة اكتشاف، مع الحفاظ على سياق المنطقة والتاريخ والتوفر ومراجعة أمثلة الطلبات وتسعير التنفيذ الحالي في صفحة التفاصيل.","ja":"テキスト・プラットフォーム・ジャンル・時間範囲で HowLongToBeat のゲームを検索し、並べ替えとページ別結果を利用できます。 返された出典の識別子とメタデータをエンタメカタログや検索画面に使い、地域・日付・利用可能性の文脈を保持できます。詳細ページにはリクエスト例と選択した実装の料金があります。","zh":"按文本、平台、类型和时长范围搜索 HowLongToBeat 游戏，支持排序与分页，用于构建围绕可用游玩时间的发现界面。 可利用返回的来源标识和元数据补充娱乐目录或发现界面，并保留地区、日期和可用性上下文；详情页提供请求示例和当前实现价格。"},"effectContentHtml":"","executionMode":"sync","id":"cfbf788c-e3fa-42db-a70c-403ec2f25757","includedContentHtml":"","inputs":[{"description":"Search text (empty: all games, sorted).","location":"query","name":"q","nullable":false,"required":false,"type":"string"},{"description":"Sort (default popular).","enum_values":["popular","name","main","mainp","comp","averagea","rating","backlog","usersp","playing","speedruns","reviews","release"],"location":"query","name":"sort","nullable":false,"required":false,"type":"string"},{"description":"`true`: reverse the sort.","enum_values":["true","false"],"location":"query","name":"reverse","nullable":false,"required":false,"type":"string"},{"description":"Comma separated platform names as on the site (e.g. PC, PlayStation 5, Nintendo Switch).","location":"query","name":"platform","nullable":false,"required":false,"type":"string"},{"description":"Include (default) or exclude the platforms.","enum_values":["include","exclude"],"location":"query","name":"platform_mode","nullable":false,"required":false,"type":"string"},{"description":"Comma separated: First-Person, Isometric, Side, Text, Third-Person, Top-Down, Virtual Reality.","location":"query","name":"perspective","nullable":false,"required":false,"type":"string"},{"description":"Include or exclude.","enum_values":["include","exclude"],"location":"query","name":"perspective_mode","nullable":false,"required":false,"type":"string"},{"description":"Comma separated: Incremental, Massively Multiplayer, Multidirectional, On-Rails, Point-and-Click, Real-Time, Scrolling, Turn-Based.","location":"query","name":"flow","nullable":false,"required":false,"type":"string"},{"description":"Include or exclude.","enum_values":["include","exclude"],"location":"query","name":"flow_mode","nullable":false,"required":false,"type":"string"},{"description":"Comma separated genres as on the site (e.g. Action, Role-Playing, Open World, Strategy/Tactical).","location":"query","name":"genre","nullable":false,"required":false,"type":"string"},{"description":"Include or exclude.","enum_values":["include","exclude"],"location":"query","name":"genre_mode","nullable":false,"required":false,"type":"string"},{"description":"Comma separated release years.","location":"query","name":"year","nullable":false,"required":false,"type":"string"},{"description":"Include or exclude.","enum_values":["include","exclude"],"location":"query","name":"year_mode","nullable":false,"required":false,"type":"string"},{"description":"Which time the hour range applies to (default main).","enum_values":["main","mainp","comp","averagea"],"location":"query","name":"range","nullable":false,"required":false,"type":"string"},{"description":"Shortest length in hours.","location":"query","name":"hours_min","nullable":false,"required":false,"type":"integer"},{"description":"Longest length in hours.","location":"query","name":"hours_max","nullable":false,"required":false,"type":"integer"},{"description":"Hide or isolate DLC, mods, hacks.","enum_values":["hide_dlc","only_dlc","only_mods","only_hacks"],"location":"query","name":"modifier","nullable":false,"required":false,"type":"string"},{"description":"`true`: only Game Pass titles.","enum_values":["true","false"],"location":"query","name":"game_pass","nullable":false,"required":false,"type":"string"},{"description":"Page number from 1 (20 per page).","location":"query","name":"page","nullable":false,"required":false,"type":"integer"},{"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 search API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eHowLongToBeat Search API\u003c/h2\u003e\n\u003cp\u003eCombine q with documented platform, genre, year and gameplay filters. range selects the playtime metric used by hours_min and hours_max; result rows retain separate main-story and completionist estimates.\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: q, sort, reverse, platform, platform_mode, perspective, perspective_mode, flow, flow_mode, genre, genre_mode, year, year_mode, range, hours_min, hours_max, modifier, game_pass, page. 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 search 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\u003eGame discovery\u003c/strong\u003e: Filter candidate games to a main-story time budget.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eCatalogue browsing\u003c/strong\u003e: Preserve resolved filters when rendering each result page.\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\u003eitems[].id\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eGame identifier\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].main_story_hours\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eMain-story duration estimate\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].completionist_hours\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eCompletionist duration estimate\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eapplied_filters\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eResolved search filters\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003enext_page\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eNext page number or null\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/search \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode output=json \\\n  --data-urlencode \u0026#39;q=elden ring\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 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/cfbf788c-e3fa-42db-a70c-403ec2f25757\"\u003ePublished HowLongToBeat Search 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 browse without a search term?\u003c/h3\u003e\n\u003cp\u003eYes. An empty q browses games using the selected sort.\u003c/p\u003e\n\u003ch3\u003eWhat do the hour limits apply to?\u003c/h3\u003e\n\u003cp\u003erange chooses the time metric, default main. hours_min and hours_max restrict that metric rather than every displayed play style.\u003c/p\u003e\n\u003ch3\u003eHow do include and exclude filters work?\u003c/h3\u003e\n\u003cp\u003eUse the corresponding platform_mode, genre_mode, year_mode or other documented mode with comma-separated site values.\u003c/p\u003e\n\u003ch3\u003eHow is the result list paginated?\u003c/h3\u003e\n\u003cp\u003epage starts at 1 with 20 results per page. Follow next_page until null; this contract exposes no limit input.\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-api\"\u003eHowLongToBeat game API\u003c/a\u003e\u003c/li\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\u003c/ul\u003e\n","pagePath":"/markets/apis/howlongtobeat/howlongtobeat-search-api?offering=cfbf788c-e3fa-42db-a70c-403ec2f25757","providerId":"apish","publicPath":"/v1/agent-apis/apish/howlongtobeat/v1/search","requestContentType":"none","revision":3,"samples":[{"http_status":200,"name":"Official example · Official documentation response · Supplier-tr","request":{"body":null,"headers":{},"path":{},"query":{"output":"json","q":"elden ring"}},"response_body":{"applied_filters":{"gameplay":{"flow":{"mode":"include","values":[]},"genre":{"mode":"include","values":[]},"perspective":{"mode":"include","values":[]}},"modifier":"","platform":{"mode":"include","values":[]},"range":"main","rangeTime":{"max":null,"min":null},"sort":"popular","year":{"mode":"include","values":[]}},"cached":false,"count":6,"credits_used":1,"items":[{"alias":"Elden Ring Tarnished Edition","all_styles_count":10715,"all_styles_hours":105.6,"backlogs":15463,"completed":21749,"completionist_count":3934,"completionist_hours":136.2,"coop":true,"coop_hours":60.04,"id":68151,"image":"https://howlongtobeat.com/games/68151_Elden_Ring.jpg","main_extra_count":5015,"main_extra_hours":101.38,"main_story_count":1766,"main_story_hours":60.13,"multiplayer":true,"multiplayer_hours":30.58,"name":"Elden Ring","platforms":["Nintendo Switch 2","PC","… 4 more"],"playing":392,"popularity_rank":1014,"release_year":2022,"retired":1455,"review_score":93,"reviews":7590,"single_player":true,"speedruns":21,"type":"game","url":"https://howlongtobeat.com/game/68151"},{"alias":null,"all_styles_count":577,"all_styles_hours":45.15,"backlogs":1043,"completed":1224,"completionist_count":208,"completionist_hours":68.58,"coop":true,"coop_hours":54.64,"id":160589,"image":"https://howlongtobeat.com/games/160589_Elden_Ring_Nightreign.jpg","main_extra_count":179,"main_extra_hours":40.96,"main_story_count":190,"main_story_hours":28.49,"multiplayer":false,"multiplayer_hours":null,"name":"Elden Ring: Nightreign","platforms":["PC","PlayStation 4","… 3 more"],"playing":80,"popularity_rank":223,"release_year":2025,"retired":119,"review_score":79,"reviews":561,"single_player":true,"speedruns":0,"type":"multi","url":"https://howlongtobeat.com/game/160589"},"… 4 more"],"next_page":null,"page":1,"pages":1,"query":"elden ring","total":6}}],"seoDescription":"Search HowLongToBeat games by title, platform, genre via REST or MCP powered by Apish. Pay per call, no subscription. Built for game discovery workflows.","updatedAt":"2026-12-03T02:45:29.890Z","usageInstructionsHtml":""}}