IKEA
IKEA 国別価格比較 API
IKEA の1つの商品番号を、2〜10のマーケットで1回で取得します。マーケットごとに通貨、そこで販売されているか(found)、現地の商品名・種類・デザイン、そのマーケットの通貨での価格と値下げ前の価格、価格タグ(新しい低価格、IKEA Family 価格など)、商品URLを返します。価格は換算しません。同じ商品を別の商品番号で販売しているマーケットでは found が false になります。応答したマーケットごとに1クレジットで、失敗したマーケットは errors に入り、課金されません。
POST/api/v1/ikea/compare
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonitem_nostring | integerrequiredIKEA の商品番号:8桁、ドット区切りも可(203.518.84)。
Example: 20351884
countriesstring[]requiredikea.com の50マーケットから、重複のない2〜10のコード:us, ca, gb, ie, de, at, ch, fr, be, nl, dk, se, no, fi, ee, lv, lt, pl, cz, sk, hu, hr, si, rs, ro, pt, es, it, il, ae, sa, kw, qa, bh, om, jo, eg, ma, in, my, sg, ph, th, jp, kr, au, nz, mx, cl, co。各マーケットは最初の言語で返ります(jp は日本語)。
Example: ["jp", "kr", "in"]
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
# 日本の商品番号 20351884(KALLAX カラックス)を日本、韓国、インドで:3クレジット。
r = client.ikea.compare(item_no="20351884", countries=["jp", "kr", "in"])["data"]
for m in r["markets"]:
if m["found"]:
print(m["country"], m["price"], m["currency"], "値下げ前", m["previous_price"], m["price_tag"])
else:
print(m["country"], "この番号では販売されていません")
print(r["errors"])Response
"item_no": "80275887",
"count": 6,
"found_count": 6,
"errors": [],
"note": "Prices are in each market's own currency and are not converted. Some markets (us, ca, jp, au, kr, in, my, sg, ph ...) sell the same product under a different article number, so found is false there."
},
"response_time": 3874
}