Skip to content
Anton Samarchyan edited this page May 3, 2026 · 6 revisions

API games endpoint

Consider using the following fields:

  • artworks
  • similar_games
  • remakes
  • remasters
  • standalone_expansions
  • dlcs
  • game_modes
  • external_games
  • aggregated_rating
  • involved_companies
  • summary
  • genres
  • slug
  • videos
  • websites

Consider using 1080p image for cover.

Not working properly

# Full list is available here: https://api-docs.igdb.com/#game-enums
# Does not seem to work properly
STATUS_RELEASED = 0
STATUS_ALPHA = 2
STATUS_BETA = 3
STATUS_EARLY_ACCESS = 4

GAME_STATUSES = (STATUS_RELEASED, STATUS_ALPHA, STATUS_BETA, STATUS_EARLY_ACCESS)

Commands to create a DB user

CREATE USER 'games'@'10.%' IDENTIFIED BY 'password';
GRANT ALL ON `games`.* to 'games'@'10.%';
FLUSH PRIVILEGES;

Useful curl commands

Get access token

curl -X POST "https://id.twitch.tv/oauth2/token" \
  -d "client_id=[client_id]" \
  -d "client_secret=[client_secret]" \
  -d "grant_type=client_credentials"

Get platform list

curl 'https://api.igdb.com/v4/platforms' \
-d 'fields abbreviation,alternative_name,category,checksum,created_at,generation,name,platform_family,platform_logo,platform_type,slug,summary,updated_at,url,versions,websites; limit 500;' \
-H 'Client-ID: [client_id]' \
-H 'Authorization: Bearer [token]' \
-H 'Accept: application/json' 

Filter by platform name

cat file.json | jq '.[] | select(.name == "Oculus VR")'