Market data API

Public, read-only JSON feeds of HiMarket's aggregated card prices — lowest ask, highest bid, sales averages and daily history for Magic: The Gathering and Riftbound in Hong Kong.

What it is

HiMarket publishes its aggregated market prices as two public JSON endpoints, for price trackers, researchers and anyone who wants to see what cards trade for in Hong Kong. No account or API key is needed. Everything here is an aggregate of prices on the marketplace — there is no buyer, seller, account or order information.

This is the interface our Terms refer to when they say automated access is allowed only via interfaces we expressly provide. Please read Terms of use below before integrating. Scraping card pages or other routes is not permitted.

Market snapshot

GET https://www.himarket.hk/api/public/v1/market?game=riftbound

One row per printing × language × finish × condition combination that currently has a live ask or a standing bid. game is required: riftbound or mtg.

FieldMeaning
printingIdHiMarket printing id: set code + collector number (ogn-039), prefixed rb- for Riftbound (rb-ogn-039).
cardNameCanonical English card name.
set, collectorNumberThe same identity, split.
languageLanguage code: en, zht (Traditional Chinese), zhs (Simplified Chinese), ja, ko, fr, de, es, pt, it, ru, …
finishnonfoil, foil or etched.
conditionNM (Near Mint), SP (Slightly Played) or MP (Moderately Played).
lowestAskHkdLowest live asking price in HK$ for this combination, or null if nothing is for sale.
highestBidHkdHighest standing buy offer in HK$, or null if nobody is bidding.
updatedAtWhen this printing's aggregate was last recomputed (ISO 8601).
urlThe HiMarket card page for this printing — use it for your link-back.
preordertrue while the set is an active preorder set (asks are for pre-release stock).

The envelope carries version, game, currency (HKD), snapshotAt (when the snapshot behind the rows was last refreshed) and generatedAt. Responses are cached for 15 minutes.

Market price (Riftbound)

For Riftbound, the market snapshot also carries marketPrices: average prices of completed sales on HiMarket, one entry per printing × language × finish that sold at least once in the last 30 days. A card version appears here even when nothing is listed or bid on it right now, so it may have no matching entry in rows.

FieldMeaning
printingId, cardName, set, collectorNumber, language, finish, urlSame meaning as in rows.
avg1Hkd, avg7Hkd, avg30HkdAverage sale price in HK$ over the last 24 hours, 7 days and 30 days. null when nothing sold in that window.
sales1, sales7, sales30Number of copies sold in the same window.
lastSaleDateHong Kong date of the most recent sale (YYYY-MM-DD).

marketPrices also carries basis (nmEquivalent) and calculatedAt, the time the windows end at. The figures are recalculated at most once an hour.

How it is calculated

  • Every sold copy counts once, at the price it sold for divided by its condition factor (Near-Mint equivalent). These are the same sales, on the same basis, as trades in the price history, so you can reproduce any figure.
  • Windows are rolling and end at calculatedAt. The average is a plain mean, rounded to two decimals.
  • Conditions are combined into one Near-Mint-equivalent figure; language and finish are kept apart.
  • There is no minimum number of sales. Use the count to judge how much weight a price carries: an average of one sale is that sale.
  • With no sales in a window the average is null and the count is 0. Nothing is carried forward or estimated.
  • Market prices are published for Riftbound only.

Price history

GET https://www.himarket.hk/api/public/v1/history?printingId=rb-ogn-039

Daily history for one printing. Optional finish=nonfoil|foil|etched narrows to one finish (default: every finish the printing exists in) and days sets the lookback window (default 365, maximum 5 years). Unknown printings return 404.

SeriesPoints
reference{ date, usd, hkd } — the English-market reference price (TCGplayer via Scryfall for MTG; TCGplayer for Riftbound). HK$ at the USD peg.
market{ date, lowestAskHkd, highestBidHkd } — HiMarket's own lowest ask and highest bid, Near-Mint equivalent.
trades{ date, priceHkd, nmEquivalentHkd, condition, language, finish } — anonymised completed sales on HiMarket. Price and date only; never who bought or sold.

Every series is delta-encoded: a point exists only where the value changed. Step between points; do not interpolate, and do not read a gap as missing data. basis is nmEquivalent — market and trade prices are divided by the condition factor so played copies compare with mint ones. Responses are cached for 30 minutes.

Identifiers

  • printingId is stable and the key to join both endpoints. Card pages resolve the same id in their URL slug.
  • Language codes follow Scryfall's scheme (zht = Traditional Chinese, zhs = Simplified Chinese).
  • Riftbound reference prices are English-market; HiMarket's Chinese-language Riftbound listings typically trade well below them.

Terms of use

Using this data is free, on these conditions

  • Cadence: fetch the market snapshot at most every 15 minutes per game, and history at most once a day per printing. Both endpoints are cached, so faster polling gains nothing. Do not crawl card pages or any other route.
  • Attribution: label the data as HiMarket (Hong Kong) wherever it is shown, and link back to the card page using the url field. You may append your own utm_source parameter.
  • Display and aggregation only: you may show, chart and aggregate the data in your product. Do not redistribute the raw feed or offer it as a dataset.
  • Represent it accurately: Hong Kong is a small market and many prices come from a single seller. Present it as HiMarket data, not as "the Hong Kong market price".
  • Not included: listing counts and quantities are not published, and sales counts are published only as part of the Riftbound market price. Image URLs are not part of this interface.
  • Revocable: we may change limits or withdraw access with notice by email.

Within a version, changes are additive only: new fields may appear, existing ones keep their meaning. A breaking change ships as a new version path (/api/public/v2/…) and the old one stays up for a transition period.

Questions, integration notes, or a request for something not covered here: hello@himarket.hk. If you run an agent rather than a scheduled job, the Agent MCP may suit you better.