Chapter 09

/types [GET] API(v1)

nukokoi
nukokoi
2022.10.09に更新
このチャプターの目次

/types

全タイプを取得

サンプルコード

  • ruby

ruby
require 'mtg_sdk'

types = MTG::Type.all
  • python

python
from mtgsdk import Type

types = Type.all()
  • bash

bash
curl "https://api.magicthegathering.io/v1/types"

レスポンス

レスポンス
{  
  "types":[  
    "Artifact",
    "Conspiracy",
    "Creature",
    "Enchantment",
    "Instant",
    "Land",
    "Phenomenon",
    "Plane",
    "Planeswalker",
    "Scheme",
    "Sorcery",
    "Tribal",
    "Vanguard"
  ]
}