FlipziDocs
Guides

Python

pip install flipzi

Python 3.9 or newer. Depends only on httpx. Ships py.typed; responses are TypedDicts from flipzi.models.

from flipzi import Flipzi, Marketplace, Condition, grade

with Flipzi() as flipzi:                       # key from FLIPZI_API_KEY
    card = flipzi.search("charizard ex", game="pokemon")["data"][0]
    flipzi.price(card["id"], grade=grade("PSA", 10), currency="usd")   # grade "PSA_10"
    flipzi.sold(card["id"], condition=Condition.NEAR_MINT)
    flipzi.marketplaces(card["id"], marketplace=Marketplace.EBAY_DE)

Async is the same API on AsyncFlipzi:

import asyncio
from flipzi import AsyncFlipzi

async def main():
    async with AsyncFlipzi() as flipzi:
        res = await flipzi.price("0908653a-ce24-4d7e-811e-78c2935bd822")
        print(res["data"]["prices"][0]["price_formatted"])

asyncio.run(main())

Methods

Method names match the TypeScript client in snake_case: price, history, sold, marketplaces, sales, printings, analytics, cardmarket, cardmarket_history, population, card, lookup, search, games, sets, set_cards, set_analytics, updates, movers, search_sealed, iter_sealed, sealed_product (0.5.0), sealed_comparisons, sealed_comparison, sealed_cardmarket, bulk_prices, bulk_analytics, bulk_cardmarket, health, usage, and request for any other route. Parameters are keyword arguments with the API's names.

Generators

for s in flipzi.iter_sets("pokemon"):
    print(s["set_id"], s["name"])

for change in flipzi.iter_updates("2026-10-29T08:00:00Z", max_items=500):
    print(change["card_id"], change["price_cents"])

iter_sets, iter_set_cards, iter_search, iter_sales and iter_updates fetch page after page (async for on AsyncFlipzi). Each page is one billed request.

Bulk

res = flipzi.bulk_prices(ids, grade="RAW")   # any number of ids
res["data"], res["not_found"]

Ids are de-duplicated and sent in chunks of your plan's bulk cap, then merged into one response.

Options

OptionDefault
api_key$FLIPZI_API_KEYSent as X-API-Key.
base_urlhttps://data.flipzi.io
max_retries2Retries after a 429, a 5xx or a network error.
max_retry_after60Longest Retry-After, in seconds, the client waits through.
timeout30.0Seconds, per attempt.
on_responseCalled with a ResponseMeta after every response.
http_clientYour own httpx.Client / httpx.AsyncClient.
tag_clientTrueSends X-Flipzi-Client: sdk-python/<version>.

README and changelog on PyPI.

On this page