Chapter 07

/sets/:id [GET] API(v1)

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

/sets/:id

特定のセットをセットコードで返します。

サンプルコード

  • ruby

ruby
require 'mtg_sdk'

card = MTG::Set.find('ktk')
  • python

from mtgsdk import Set

card = Set.find('ktk')

python

  • bash

bash
curl "https://api.magicthegathering.io/v1/sets/ktk"

レスポンス

レスポンス
{  
  "set":{  
      "code":"KTK",
      "name":"Khans of Tarkir",
      "type":"expansion",
      "border":"black",
      "mkm_id":1495,
      "booster":[  
      [  
          "rare",
          "mythic rare"
      ],
      "uncommon",
      "uncommon",
      "uncommon",
      "common",
      "common",
      "common",
      "common",
      "common",
      "common",
      "common",
      "common",
      "common",
      "common",
      "land",
      "marketing"
      ],
      "mkm_name":"Khans of Tarkir",
      "releaseDate":"2014-09-26",
      "magicCardsInfoCode":"ktk",
      "block":"Khans of Tarkir"
  }
}