Find an API

Search public APIs with auth details & Postman guides

← All APIs

RAWG Video Games Database API

api.rawg.io · Media

Media API Key Free Tier Gaming Video Games Entertainment

Largest video game database — 500,000+ games across all platforms. Search by genre, platform, release year, Metacritic rating, and more. Free tier: 20,000 requests/month.

Authentication

API Key Free API key at rawg.io/apidocs. Pass as ?key= query parameter.

Sample Requests

GET Search games

Search games by title.

https://api.rawg.io/api/games?key=YOUR_KEY&search=Cyberpunk&page_size=5

Hover any highlighted part to learn what it does

curl -X GET "https://api.rawg.io/api/games?key=YOUR_KEY&search=Cyberpunk&page_size=5"
import requests
params = {
    "key": "YOUR_KEY",
    "search": "Cyberpunk",
    "page_size": "5"
}
response = requests.get(
    "https://api.rawg.io/api/games",
    params=params,
)
print(response.json())
const url = new URL('https://api.rawg.io/api/games');
url.searchParams.set('key', 'YOUR_KEY');
url.searchParams.set('search', 'Cyberpunk');
url.searchParams.set('page_size', '5');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.rawg.io/api/games")
	q := baseURL.Query()
	q.Set("key", "YOUR_KEY")
	q.Set("search", "Cyberpunk")
	q.Set("page_size", "5")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.rawg.io/api/games")
uri.query = URI.encode_www_form({
  "key" => "YOUR_KEY",
  "search" => "Cyberpunk",
  "page_size" => "5"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.rawg.io/api/games?" . http_build_query([
    "key" => "YOUR_KEY",
    "search" => "Cyberpunk",
    "page_size" => "5"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET Get game details

Get full details for GTA V.

https://api.rawg.io/api/games/grand-theft-auto-v?key=YOUR_KEY

Hover any highlighted part to learn what it does

curl -X GET "https://api.rawg.io/api/games/grand-theft-auto-v?key=YOUR_KEY"
import requests
params = {
    "key": "YOUR_KEY"
}
response = requests.get(
    "https://api.rawg.io/api/games/grand-theft-auto-v",
    params=params,
)
print(response.json())
const url = new URL('https://api.rawg.io/api/games/grand-theft-auto-v');
url.searchParams.set('key', 'YOUR_KEY');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.rawg.io/api/games/grand-theft-auto-v")
	q := baseURL.Query()
	q.Set("key", "YOUR_KEY")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.rawg.io/api/games/grand-theft-auto-v")
uri.query = URI.encode_www_form({
  "key" => "YOUR_KEY"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.rawg.io/api/games/grand-theft-auto-v?" . http_build_query([
    "key" => "YOUR_KEY"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));

Postman Setup Guide

Get Postman ↗
  1. Get a free API key at rawg.io/apidocs
  2. Pass key=YOUR_KEY as query param
  3. Try GET /games?key=YOUR_KEY&search=zelda&page_size=5
  4. Filter by genre: ?genres=action,rpg
  5. Top rated: ?ordering=-metacritic&page_size=10

Open documentation ↗