Pokémon TCG API
api.pokemontcg.io · Media
Every Pokémon Trading Card Game card ever printed — card data, set info, high-res images, prices, and legality. Free, no key needed (higher limits with free key).
Authentication
No authentication requiredFree to use with no key needed.
Sample Requests
GET
Search cards
Find all Charizard Pokémon cards.
https://api.pokemontcg.io/v2/cards?q=name:Charizard&pageSize=3
Hover any highlighted part to learn what it does
curl -X GET "https://api.pokemontcg.io/v2/cards?q=name%3ACharizard&pageSize=3"
import requests
params = {
"q": "name:Charizard",
"pageSize": "3"
}
response = requests.get(
"https://api.pokemontcg.io/v2/cards",
params=params,
)
print(response.json())const url = new URL('https://api.pokemontcg.io/v2/cards');
url.searchParams.set('q', 'name:Charizard');
url.searchParams.set('pageSize', '3');
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.pokemontcg.io/v2/cards")
q := baseURL.Query()
q.Set("q", "name:Charizard")
q.Set("pageSize", "3")
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.pokemontcg.io/v2/cards")
uri.query = URI.encode_www_form({
"q" => "name:Charizard",
"pageSize" => "3"
})
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.pokemontcg.io/v2/cards?" . http_build_query([
"q" => "name:Charizard",
"pageSize" => "3"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET
Get sets
Get the 5 most recently released Pokémon card sets.
https://api.pokemontcg.io/v2/sets?orderBy=-releaseDate&pageSize=5
Hover any highlighted part to learn what it does
curl -X GET "https://api.pokemontcg.io/v2/sets?orderBy=-releaseDate&pageSize=5"
import requests
params = {
"orderBy": "-releaseDate",
"pageSize": "5"
}
response = requests.get(
"https://api.pokemontcg.io/v2/sets",
params=params,
)
print(response.json())const url = new URL('https://api.pokemontcg.io/v2/sets');
url.searchParams.set('orderBy', '-releaseDate');
url.searchParams.set('pageSize', '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.pokemontcg.io/v2/sets")
q := baseURL.Query()
q.Set("orderBy", "-releaseDate")
q.Set("pageSize", "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.pokemontcg.io/v2/sets")
uri.query = URI.encode_www_form({
"orderBy" => "-releaseDate",
"pageSize" => "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.pokemontcg.io/v2/sets?" . http_build_query([
"orderBy" => "-releaseDate",
"pageSize" => "5"
]);
$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
- No API key needed (1,000 req/day)
- Search: GET /v2/cards?q=name:Pikachu&pageSize=5
- By set: GET /v2/cards?q=set.id:base1&pageSize=5
- Images in images.small and images.large fields
- Register at pokemontcg.io for free key (20,000/day)
What can you build with Pokémon TCG API?
Pokémon TCG API is a Media API. Developers commonly use media APIs for:
- storing and delivering images, video, and audio
- building digital asset management and media libraries
- transcoding and optimising media for the web
- adding video streaming and playback to your app
- automating content tagging and metadata extraction
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Pokémon TCG API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide