TCGplayer API endpoint
Lists TCGplayer's product lines (games and product families such as Pokemon, Magic: The Gathering, Yu-Gi-Oh!, One Piece and Lorcana): id, name and the url_name that tcgplayer-search and tcgplayer-sets take as product_line.
/tcgplayer/product-linesLists TCGplayer's product lines, read live.
This endpoint takes no parameters.
url_name is the value to pass as product_line to tcgplayer-search and tcgplayer-sets.direct marks lines that TCGplayer Direct fulfills.id.Example response (long values and lists shortened):
{
"code": 200,
"msg": "OK",
"data": {
"product_lines": [
{
"id": 1,
"name": "Magic: The Gathering",
"url_name": "magic",
"direct": true
},
{
"id": 2,
"name": "YuGiOh",
"url_name": "yugioh",
"direct": true
},
{
"id": 3,
"name": "Pokemon",
"url_name": "pokemon",
"direct": true
},
{
"id": 6,
"name": "D & D Miniatures",
"url_name": "d-and-d-miniatures",
"direct": false
}
]
}
}
| Field | Filled in, of 71 checked | Values in the sample |
|---|---|---|
| id | 71 | |
| name | 71 | “Magic: The Gathering” and 70 other values |
| url_name | 71 | “magic” and 70 other values |
| direct | 71 | true in 3 of 71 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/tcgplayer/product-lines" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"product_lines": [
{
"id": 1,
"name": "Magic: The Gathering",
"url_name": "magic",
"direct": true
},
{
"id": 2,
"name": "YuGiOh",
"url_name": "yugioh",
"direct": true
},
{
"id": 3,
"name": "Pokemon",
"url_name": "pokemon",
"direct": true
},
{
"id": 6,
"name": "D & D Miniatures",
"url_name": "d-and-d-miniatures",
"direct": false
}
]
}
}Request schema
No body schema
Response schema
#/definitions/tcgplayer.productLinesResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | tcgplayer.ProductLinesResponse | No | ||||
| data.product_lines | array | No | ||||
| data.product_lines[].direct | boolean | No | ||||
| data.product_lines[].id | integer | No | ||||
| data.product_lines[].name | string | No | ||||
| data.product_lines[].url_name | string | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/tcgplayer/product-lines" \
-H "x-api-key: $CRAWLORA_API_KEY"