Get Card by ID
Retrieve detailed information about a specific card by its unique identifier.
Endpoints
GET
/api/v1/cards/{id}Example Request
cURL
curl https://optcg-api.ryanmichaelhirst.us/api/v1/cards/card_1234Path Parameters
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Unique identifier of the card |
Example Response
JSON
{
"id": "card_1234",
"code": "OP01-001",
"rarity": "SEC",
"type": "Character",
"name": "Monkey D. Luffy",
"cost": 4,
"attribute": "Straw Hat",
"power": 5000,
"counter": 1000,
"color": "red",
"class": "Leader",
"effect": "When this card attacks, you may draw 1 card.",
"set": "Romance Dawn",
"image": "https://example.com/card_image.jpg"
}Card Properties
Response Schema
| Property | Type | Description |
|---|---|---|
| id | string | Unique identifier from database, e.g. card_1234 |
| code | string | Serial number on card, e.g. OP01-001 |
| rarity | string | Card rarity, e.g. C | L | P | R | SEC | SP CARD | SR | TR | UC |
| type | string | Card type, e.g. CHARACTER | EVENT | LEADER | STAGE |
| name | string | Card name, e.g. Monkey D. Luffy |
| cost | number | Card cost, e.g. 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| attribute | string | Card attribute, e.g. Ranged | Slash | Special | Strike | Wisdom |
| power | number | Attack power, e.g. 1000 | 2000 | 3000 | 4000 | 5000 | 6000 | 7000 | 8000 | 9000 | 10000 | 11000 | 12000 |
| counter | number | Counter value, e.g. 1000 | 2000 |
| color | string | Card color, e.g. Red | Blue | Green | Purple | Yellow | Black |
| class | string | Card class, e.g. Alabasta | Alabasta/Straw Hat Crew | ... |
| effect | string | Card effect description |
| set | string | Set name, e.g. Tournament Pack Vol.6 | Tournament Pack Vol.3 | ... |
| image | string | Card image URL |