IGDB API
Internet Game Database — detailed game data via Twitch's developer platform.
What it does
IGDB (Internet Game Database, owned by Twitch/Amazon) is a deep video-game metadata API: games, franchises, collections, companies, game engines, platforms, genres, themes, keywords, release dates by region, artworks, covers, screenshots, videos and time-to-beat data.
Base URL
Authentication
Auth runs through Twitch. Create a Twitch developer application to get a Client ID and Client Secret, exchange them for an OAuth client_credentials token, then send Client-ID: YOUR_ID and Authorization: Bearer YOUR_TOKEN on every request.
Code examples
TOKEN=$(curl -s -X POST "https://id.twitch.tv/oauth2/token?client_id=$CID&client_secret=$CSECRET&grant_type=client_credentials" | jq -r .access_token) curl -s -X POST "https://api.igdb.com/v4/games" \ -H "Client-ID: $CID" -H "Authorization: Bearer $TOKEN" \ -d 'fields name,rating,first_release_date; where rating > 90; limit 5;'
import requests
H = {"Client-ID": CID, "Authorization": f"Bearer {TOKEN}"}
body = 'fields name,genres.name,total_rating; search "zelda"; limit 5;'
r = requests.post("https://api.igdb.com/v4/games", headers=H, data=body, timeout=10)
for g in r.json():
print(g["name"], g.get("total_rating"))Rate limits & quotas
4 requests/second and up to 8 concurrent open requests per client. Over that returns HTTP 429. Queries use the Apicalypse body language (fields, where, sort, limit, search) — not query parameters — and every request is a POST.
Key response fields
| name / summary / storyline | Game text |
| first_release_date | Unix timestamp (seconds) |
| rating / aggregated_rating / total_rating | User, critic and combined scores |
| cover.image_id | Build image URLs: images.igdb.com/igdb/image/upload/t_cover_big/{image_id}.jpg |
| genres.name / platforms.name / involved_companies.company.name | Expanded via dotted field paths |
Common errors
| 401 | Token expired (they last ~60 days — cache and refresh) or wrong Client-ID. |
| 400 | Apicalypse syntax error — every clause ends with ;. |
| 429 | Over 4 req/s — throttle. |
When to use it (and alternatives)
The choice when you need rich, structured game metadata — franchises, engines, regional releases, company relationships. The Apicalypse learning curve is the tax. For a simpler REST experience, RAWG covers most consumer use cases.
FAQ
Why do I authenticate through Twitch?
IGDB is a Twitch property and shares its identity system. One Twitch app gives you the Client ID/Secret; the OAuth token you generate works for IGDB.
How do I build a cover image URL?
Take cover.image_id and insert it into https://images.igdb.com/igdb/image/upload/t_{size}/{image_id}.jpg — sizes include cover_small, cover_big, 720p, 1080p.
Can I use GET instead of POST?
No — IGDB v4 endpoints are POST-only and expect the Apicalypse query in the request body, even for simple reads.
New to APIs?
Short guides for working with this API — and any other.