# YGOPRODeck on Onekey > 2 endpoints for YGOPRODeck (2 stable, 0 beta), 1 to 5 credits each. Category: Gaming. One key, one JSON shape. Base URL: https://api.onekey.dev Auth: header `x-api-key: `. Call shape: `GET /v1/{platform}/{endpoint}?{params}`. Every response is `{success, data, metadata, error}`; check `success` first. Cost is in `metadata.credits_charged`. Free when served from cache (0.2 credit for a cached response over 100 KB). Failed and not-found calls are refunded. Status: stable = verified against the live source; beta = not yet verified, fields may be missing. Page: https://onekey.dev/platforms/ygoprodeck Reference (Markdown): https://onekey.dev/docs/api/ygoprodeck.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 2 mapped YGOPRODeck endpoints return each: - `content.text` (string): 2 - `entity.id` (string): 2 - `entity.name` (string): 2 - `entity.type` (string): 2 - `entity.url` (URL): 2 - `listing.price` (number): 2 - `media.thumbnailUrl` (URL): 2 - `media.url` (URL): 2 - plus 6 platform-specific fields under `ext.` ## Endpoints ### ygoprodeck.card Fetch a Yu-Gi-Oh! card by exact name. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/ygoprodeck/card?name=Dark%20Magician` with header `x-api-key: YOUR_API_KEY` - Parameters: - `name` (string, required): Exact card name - Fields returned: `entity.id`, `entity.name`, `content.text`, `entity.type`, `entity.url`, `media.url`, `media.thumbnailUrl`, `listing.price`, `ext.race`, `ext.attribute`, `ext.archetype`, `ext.atk`, `ext.def`, `ext.level` - Reference: https://onekey.dev/docs/api/ygoprodeck/card.md ### ygoprodeck.search Search Yu-Gi-Oh! cards by name fragment. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/ygoprodeck/search?q=Dark%20Magician` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): Name fragment - Fields returned: `entity.id`, `entity.name`, `content.text`, `entity.type`, `entity.url`, `media.url`, `media.thumbnailUrl`, `listing.price`, `ext.race`, `ext.attribute`, `ext.archetype`, `ext.atk`, `ext.def`, `ext.level` - Reference: https://onekey.dev/docs/api/ygoprodeck/search.md ## Sample request ```bash curl "https://api.onekey.dev/v1/ygoprodeck/card?name=Dark%20Magician" \ -H "x-api-key: YOUR_API_KEY" ```