API Documentation

Everything you need to integrate Pokemon TCG pricing data into your application

Getting Started

The Pokemon TCG Market Intelligence API provides programmatic access to real-time pricing data for over 75,000 Pokemon cards. Get started in minutes with our simple REST API.

Base URL
https://api.cardguide.gg/v1

Authentication

All API requests require authentication using an API key. Include your API key in the Authorization header:

curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://api.cardguide.gg/v1/cards

Note: Keep your API keys secure and never commit them to public repositories. You can generate and manage your API keys from your dashboard.

Endpoints

GET/cards

Retrieve a list of Pokemon cards with current pricing data.

Query Parameters

nameFilter by card name (e.g., "Charizard")
setFilter by set name (e.g., "Base Set")
limitNumber of results to return (default: 20, max: 100)
offsetNumber of results to skip for pagination
Example Request
fetch('https://api.cardguide.gg/v1/cards?name=Charizard&limit=10', {
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY'
  }
})
.then(res => res.json())
.then(data => console.log(data));
Example Response
{
  "data": [
    {
      "id": 1,
      "name": "Charizard",
      "set": "Base Set",
      "card_number": "4",
      "variant": "Holo",
      "current_price": 324.99,
      "price_change_1d": 5.00,
      "price_change_1d_pct": 1.57,
      "price_change_7d": -12.50,
      "price_change_7d_pct": -3.70,
      "tcgplayer_id": "12345",
      "image_url": "https://..."
    }
  ],
  "pagination": {
    "total": 156,
    "limit": 10,
    "offset": 0
  }
}
GET/cards/:id

Get detailed information about a specific card including full price history.

Example Request
fetch('https://api.cardguide.gg/v1/cards/1', {
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY'
  }
})
GET/price-movers

Get cards with the biggest price changes over different time periods.

Query Parameters

periodTime period: "1d", "7d", or "30d" (default: "1d")
directionMovement direction: "up" or "down" (default: "up")
limitNumber of results (default: 20, max: 100)

Collections API

Track and value your Pokemon card collections programmatically. Perfect for portfolio management and AI-powered recommendations via MCP.

GET/collections-api

List all your collections with card counts.

Example Request
fetch('https://csygyaqftcsiphxsqjpj.supabase.co/functions/v1/collections-api', {
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY'
  }
})
.then(res => res.json())
.then(data => console.log(data));
Example Response
{
  "collections": [
    {
      "id": 1,
      "name": "My Collection",
      "description": "Your main card collection",
      "is_default": true,
      "total_cards": 145,
      "unique_cards": 89,
      "created_at": "2026-01-06T12:00:00Z"
    }
  ]
}
GET/collections-api/:id

Get detailed information about a specific collection including all cards.

Example Request
fetch('https://csygyaqftcsiphxsqjpj.supabase.co/functions/v1/collections-api/1', {
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY'
  }
})
GET/collections-api/:id/value

Calculate the current market value of a collection with profit/loss tracking.

Example Request
fetch('https://csygyaqftcsiphxsqjpj.supabase.co/functions/v1/collections-api/1/value', {
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY'
  }
})
.then(res => res.json())
.then(data => console.log(data));
Example Response
{
  "collection_id": 1,
  "collection_name": "My Collection",
  "total_cards": 145,
  "unique_cards": 89,
  "total_value": 4523.50,
  "total_cost": 3200.00,
  "profit_loss": 1323.50,
  "profit_loss_pct": 41.36,
  "items": [
    {
      "card_name": "Charizard [Holo] #4",
      "base_name": "Charizard",
      "set_name": "Base Set",
      "quantity": 1,
      "current_price": 324.99,
      "purchase_price": 250.00,
      "current_value": 324.99,
      "purchase_cost": 250.00,
      "profit_loss": 74.99
    }
  ]
}

AI Integration: This endpoint is perfect for MCP queries like "What's my collection worth?" or "Which cards in my collection have increased the most in value?"

Rate Limits

Rate limits vary by plan:

PlanRequests/MonthRate Limit
Free1,00010 req/min
Pro100,000100 req/min
EnterpriseUnlimitedCustom

Error Handling

The API uses standard HTTP status codes and returns error details in JSON format:

401Unauthorized - Invalid or missing API key
429Too Many Requests - Rate limit exceeded
500Internal Server Error - Something went wrong
Error Response Format
{
  "error": {
    "code": "invalid_api_key",
    "message": "The API key provided is invalid or has been revoked",
    "status": 401
  }
}

MCP / AI Integration

Connect your Pokemon TCG collections to Claude for AI-powered portfolio analysis, price insights, and natural language queries about your cards.

What is MCP?

The Model Context Protocol (MCP) allows AI assistants like Claude to securely access external data and tools. By connecting your CardGuide account, you can ask Claude questions like:

  • "What's my collection worth today?"
  • "Which cards in my collection have gone up the most?"
  • "Find me all Charizard cards under $50"
  • "What are the biggest price movers this week?"
  • "Add this card to my collection"

Setup Instructions

1

Get your API Key

Go to your Dashboard and generate an API key if you haven't already.

2

Configure Claude Desktop

Add the following to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "pokemon-tcg": {
      "command": "npx",
      "args": ["@cardguide/mcp-server"],
      "env": {
        "CARDGUIDE_API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }
}
3

Restart Claude Desktop

Fully quit and restart Claude Desktop. You should see the CardGuide tools available in your conversation.

Available MCP Tools

search_cards

Search for Pokemon cards by name, set, or other criteria

get_card_details

Get detailed information and current price for a specific card

get_price_movers

Find cards with the biggest price increases or decreases

get_collections

List all your card collections

get_collection_value

Calculate the current market value of a collection with profit/loss tracking

add_card_to_collection

Add a card to one of your collections

Pro tip: Your API key gives Claude secure access to your personal collections. Never share your API key publicly, and you can revoke it anytime from your dashboard.

Ready to get started?

Create an account and get your API key in seconds

Get Your API Key