Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

YGOPRODeck Cards API

Card search, filtering, and metadata retrieval.

YGOPRODeck Cards API is one of 5 APIs that YGOPRODeck publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Cards. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and code examples.

This API exposes 2 operations across 2 paths, and defines 8 schemas. It is described by OpenAPI 3.0.3, at version v7.

Requests are made against a single base URL, https://db.ygoprodeck.com/api/v7.

2 operations 2 paths 8 schemas 2 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
v7
Base URL
https://db.ygoprodeck.com/api/v7
Contact
Terms of Service
Resource Areas
1

Paths & Operations 2

Across 2 paths, the API surfaces 2 operations — 2 GET. Each is listed below with its method, path, parameters, and response codes.

Cards 2

Card search, filtering, and metadata retrieval.

GET
/cardinfo.php
YGOPRODeck Search Cards
searchCards 28 params → 200400
GET
/randomcard.php
YGOPRODeck Get Random Card
getRandomCard → 200

Schemas 8

The contract defines 8 schemas that model the data the API accepts and returns. The most detailed are Card (21 properties), CardMiscInfo (16 properties), SearchMeta (7 properties), CardPrintingEntry (5 properties). Each schema is shown below with its type and property counts.

CardImage
object
Image URLs for a single artwork variant of a card.
4 properties 4 required
ErrorResponse
object
Standard YGOPRODeck error envelope. Returned with HTTP 400 for invalid requests.
1 property 1 required
SearchMeta
object
Pagination metadata included when num and offset are used.
7 properties
CardPrice
object
Marketplace prices for a card (USD, stringified decimal).
5 properties
Card
object
A single Yu-Gi-Oh! card, including metadata, set printings, image URLs, and marketplace prices.
21 properties 5 required
CardMiscInfo
object
Extended per-card metadata returned only when misc=yes is passed to /cardinfo.php.
16 properties
CardPrintingEntry
object
A single set printing of a card.
5 properties 3 required
CardSearchResponse
object
Wrapper response for /cardinfo.php queries.
2 properties 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

yu-gi-oh-cards-api-openapi.yml Raw ↑

Other APIs YGOPRODeck publishes across the network.

YGOPRODeck Archetypes API
YGOPRODeck Card Sets API
YGOPRODeck Database API
YGOPRODeck Reference Data API