API Key Request

This is where you can request API access. Please be sure to mention what your use case is and if possible a link to the project.
Please provide a basic overview of your proposed use of the API.
Any request lacking this information will be denied pending an appropriate response.
Forum rules
Please provide a basic overview of your proposed use of the API.
Any request lacking this information will be denied pending an appropriate response.
Post Reply
ramoneariel
Posts: 3
Joined: Tue Apr 13, 2021 6:04 pm

API Key Request

Post by ramoneariel »

Hi, i develop a cross platform frontend for various emulators (ps2 now, and more later), its made in electron js. I need a key to try.

User avatar
edirol
Posts: 349
Joined: Thu Jun 28, 2018 1:08 am

Re: API Key Request

Post by edirol »

Hello.

You've been granted an API key which you can access through this page.
Please check the Announcements forum on a regular basis to ensure compliance with any changes or updates.
Documentation is available here.

Good luck!
From Russia with love

ramoneariel
Posts: 3
Joined: Tue Apr 13, 2021 6:04 pm

Re: API Key Request

Post by ramoneariel »

Code: Select all

curl -X GET "https://api.thegamesdb.net/v1.1/Games/ByGameName?apikey=${MY_API_KEY}&name=The%20Matrix%3A%20Path%20of%20Neo&fields=players%2C%20publishers%2C%20genres%2C%20overview%2C%20last_updated%2C%20rating%2C%20platform%2C%20coop%2C%20youtube%2C%20os%2C%20processor%2C%20ram%2C%20hdd%2C%20video%2C%20sound%2C%20alternates&filter%5Bplatform%5D=11&include=boxart%2C%20platform" -H "accept: application/json"

Whith this call i get this

Code: Select all

{
  "code": 200,
  "status": "Success",
  "data": {
    "count": 1,
    "games": [
      {
        "id": 4572,
        "game_title": "The Matrix: Path of Neo",
        "release_date": "2005-11-11",
        "platform": 11,
        "players": 1,
        "developers": [
          7663
        ]
      }
    ]
  },
  "include": {
    "boxart": {
      "base_url": {
        "original": "https://cdn.thegamesdb.net/images/original/",
        "small": "https://cdn.thegamesdb.net/images/small/",
        "thumb": "https://cdn.thegamesdb.net/images/thumb/",
        "cropped_center_thumb": "https://cdn.thegamesdb.net/images/cropped_center_thumb/",
        "medium": "https://cdn.thegamesdb.net/images/medium/",
        "large": "https://cdn.thegamesdb.net/images/large/"
      },
      "data": {
        "4572": [
          {
            "id": 274908,
            "type": "boxart",
            "side": "front",
            "filename": "boxart/front/4572-1.jpg",
            "resolution": null
          },
          {
            "id": 274909,
            "type": "boxart",
            "side": "back",
            "filename": "boxart/back/4572-1.jpg",
            "resolution": null
          }
        ]
      }
    }
  },
  "pages": {
    "previous": null,
    "current": "https://api.thegamesdb.net/v1.1/Games/ByGameName?apikey=${MY_API_KEY}&name=The+Matrix%3A+Path+of+Neo&fields=players%2C+publishers%2C+genres%2C+overview%2C+last_updated%2C+rating%2C+platform%2C+coop%2C+youtube%2C+os%2C+processor%2C+ram%2C+hdd%2C+video%2C+sound%2C+alternates&filter%5Bplatform%5D=11&include=boxart%2C+platform&page=1",
    "next": null
  },
  "remaining_monthly_allowance": 2478,
  "extra_allowance": 0,
  "allowance_refresh_timer": 1920093
}
Why don't I get all the additional data like overview, youtube, generes, rating?

User avatar
edirol
Posts: 349
Joined: Thu Jun 28, 2018 1:08 am

Re: API Key Request

Post by edirol »

Hello.

Valid fields separator is "," (%2C). You are using ", " (%2C%20). Correct request should be like

Code: Select all

curl -X GET "https://api.thegamesdb.net/v1/Games/ByGameName?apikey=key&name=The%20Matrix%3A%20Path%20of%20Neo&fields=players%2Cpublishers%2Cgenres%2Coverview%2Clast_updated%2Crating%2Cplatform%2Ccoop%2Cyoutube%2Cos%2Cprocessor%2Cram%2Chdd%2Cvideo%2Csound%2Calternates" -H "accept: application/json"
From Russia with love

ramoneariel
Posts: 3
Joined: Tue Apr 13, 2021 6:04 pm

Re: API Key Request

Post by ramoneariel »

thank you

Post Reply