MTGのルールに詳しい朝霧さん
MTGのルールに詳しい朝霧さん · GPT アクション
Scryfall Magic: The Gathering API
API for accessing data related to Magic: The Gathering cards.
GET /cards/namedGetCardByNameGet details of a card by fuzzy name search
GET /cards/{id}/rulingsGetCardRulingsGet rulings for a specific card
元の API スキーマ
{
"openapi": "3.1.0",
"info": {
"title": "Scryfall Magic: The Gathering API",
"description": "API for accessing data related to Magic: The Gathering cards.",
"version": "v1.0.0"
},
"servers": [
{
"url": "https://api.scryfall.com"
}
],
"paths": {
"/cards/named": {
"get": {
"description": "Get details of a card by fuzzy name search",
"operationId": "GetCardByName",
"parameters": [
{
"name": "fuzzy",
"in": "query",
"description": "The fuzzy name of the card to retrieve",
"required": true,
"schema": {
"type": "string"
}
}
],
"deprecated": false,
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"oracle_text": {
"type": "string"
},
"id": {
"type": "string"
},
"mana_cost": {
"type": "string"
},
"cmc": {
"type": "number"
}
}
}
}
}
}
}
}
},
"/cards/{id}/rulings": {
"get": {
"description": "Get rulings for a specific card",
"operationId": "GetCardRulings",
"parameters": [
{
"name": "id",
"in": "path",
"description": "The ID of the card to retrieve rulings for",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object"
}
}
}
}
}
}
}
}
}
}
}
}