Skip to content

HowLongToBeat API: Get game length

Finds a game by name, HowLongToBeat link or ID and returns its play times, release year, platforms, cover and player submissions. Platform-specific times replace the overall category times when the platform has its own.

howlongtobeat.com (opens in a new tab)Version 1ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by HowLongToBeat.

Inputs

Values from the run on Oct 23, 2026, shown under Output.

Game, requiredgame

Game name, HowLongToBeat game link or game ID, for example Elden Ring.

Elden Ring

Platform optionalplatform

Platform to use for play times when listed, for example PlayStation 5. Defaults to all platforms.

(default)

Output

From a run on Oct 23, 2026, shortened for this page.
{  "name": "Elden Ring",  "game_id": 68151,  "platforms": [    "Nintendo Switch 2",    "PC",    "PlayStation 4"  ],  "release_year": 2022,  "cover_image_url": "https://howlongtobeat.com/games/68151_Elden_Ring.jpg",  "main_story_hours": 60.1,  "howlongtobeat_url": "https://howlongtobeat.com/game/68151",  "main_story_minutes": 3608,  "player_submissions": 21678,  "completionist_hours": 136.2,  "all_play_styles_hours": 105.6,  "completionist_minutes": 8171.1,  "all_play_styles_minutes": 6335.3,  "main_story_plus_extras_hours": 101.4,  "main_story_plus_extras_minutes": 6081.9}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
howlongtobeat.com/get_game_length
Returns
name, release year, platforms, cover image, HowLongToBeat link, player submissions, play times in hours and minutes

Use it from your agent

Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method howlongtobeat.com/get_game_length with the inputs above.

Ask your agent

  • How long does it take to beat Elden Ring on PlayStation 5?
  • What's the average playthrough time for Hades on Switch?
  • Look up play times for The Witcher 3 on PC, including release year and platforms.
  • Find the main story and completionist hours for Hollow Knight on Xbox One at howlongtobeat.com.
  • How many hours do most players spend finishing Baldur's Gate 3 on PC?

See more

  • Finds a PC game on Steam by name, store link or app ID and returns its store details, country price, reviews, tags and live player count.

    store.steampowered.com/get_game
  • Looks up a PlayStation Store game by name or product link in a country. Prefers the standard full game; prices and offers vary by country. Game trials are not counted as PlayStation Plus inclusion.

    store.playstation.com/get_game
  • Finds an Xbox or PC game by name or by xbox.com store link. Returns its store details, prices and Game Pass availability for a country.

    xbox.com/get_game
  • Finds current official-store prices, the all-time low and live bundles for a PC game in the selected country.

    isthereanydeal.com/get_best_price
  • Looks up a Nintendo Switch or Switch 2 game by name or Nintendo link and returns its eShop price, sale, release date, publisher, rating, players, size and genres for the chosen country (US, Canada, UK, Mexico, Brazil, Argentina, Chile, Colombia or Peru).

    nintendo.com/get_game
  • Gets a Steam game's current players, 24-hour peak, all-time peak and monthly player-count history from SteamCharts. Takes a game name, SteamCharts or Steam store link, or Steam app ID.

    store.steampowered.com/get_player_count_history
  • Gets a Roblox experience by name or game link, with players online, visits, likes, creator, dates, maturity rating and icon. For names with several matches, returns the match with the most players.

    roblox.com/get_game
  • Finds a game, movie or TV show on Metacritic by name and returns critic and user scores with title details.

    metacritic.com/get_scores