FlipziDocs
Guides

Quickstart

A free key needs no card: verify an email at flipzi.io/account. The whole sequence below costs 2 units of the free plan's 500 a month. A Postman collection with the same requests is at flipzi.io/api/flipzi-data-api.postman_collection.json.

# 0. No key needed: is the service up?
curl -s https://data.flipzi.io/v1/meta/health

export FLIPZI_KEY='fz_live_...'

# 1. Check the key and your allowance (costs nothing, never refused).
curl -s https://data.flipzi.io/v1/meta/usage -H "X-API-Key: $FLIPZI_KEY"

# 2. Find the card by name. The first result's "id" is its card id (1 unit).
ID=$(curl -s 'https://data.flipzi.io/v1/cards/search?q=umbreon&game=pokemon&page_size=1' \
  -H "X-API-Key: $FLIPZI_KEY" | grep -o '"id":"[^"]*"' | head -1 | cut -d'"' -f4)

# 3. Get its current price (1 unit).
curl -s "https://data.flipzi.io/v1/cards/$ID/price" -H "X-API-Key: $FLIPZI_KEY"

The same with an official SDK, npm install flipzi or pip install flipzi (SDK docs):

import { Flipzi } from 'flipzi';
const flipzi = new Flipzi({ apiKey: 'fz_live_...' });
const { data } = await flipzi.search({ q: 'umbreon', game: 'pokemon', page_size: 1 });
console.log((await flipzi.price(data[0].id)).data.prices);
from flipzi import Flipzi
flipzi = Flipzi(api_key="fz_live_...")
card = flipzi.search("umbreon", game="pokemon", page_size=1)["data"][0]
print(flipzi.price(card["id"])["data"]["prices"])

Without a key, any call but /v1/meta/health answers 401 API_KEY_REQUIRED with a signup_url. The free plan is 500 units a month at 5 requests a minute: catalogue, search and current prices. Sold comps, graded prices and history need a paid plan; a call to one answers 403 PLAN_FEATURE_LOCKED naming the plan that includes it, and is not billed. Every example response in this reference is a real response, captured on the date shown.

One gotcha for Python users: the default User-Agent of the standard library's urllib (Python-urllib/3.x) is refused at our edge with an HTML 403, not a JSON error. Send any User-Agent of your own, or use the flipzi SDK, requests, httpx or curl.