traded.gg logotraded.gg
Skip to documentation content

REST API

Pagination & Batching

Follow cursors through large result sets and group known IDs into batch requests.

Follow a Cursor

  1. Start with your filters and a limit. Omit cursor on the first request.
  2. Read the rows and send the returned next_cursor as the next request's cursor. Preserve the route, filters, sort, and page size. Let your HTTP client encode the token as a query parameter.
  3. Stop when the next cursor is null or absent. Send a cursor back exactly as returned, even if it looks like a number.

See Page Size Limits for the cursor field and order of each paged route. Card sales in CSV format return the cursor in the X-Next-Cursor header. Stop when the header is empty or absent.

When a route offers both offset and cursor, prefer the cursor and omit the offset. For feedback receipts, increment the offset by the number of returned reports and stop on a short page or before an offset above 1,000.

Read Multiple Pages

These examples read Pokémon catalog cards until the cursor runs out. Set TRADED_API_KEY before running them.

Pagination example · JavaScript
const url = new URL("https://api.traded.gg/v1/catalog/cards");
url.search = new URLSearchParams({ game: "pokemon", limit: "25" });
const key = process.env.TRADED_API_KEY;
if (!key) throw new Error("Set TRADED_API_KEY");

while (true) {
  const response = await fetch(url, {
    headers: { Authorization: `Bearer ${key}` },
  });
  if (!response.ok) throw new Error(`HTTP ${response.status}`);
  const { data } = await response.json();
  for (const card of data.results) console.log(card);

  const cursor = data.paging.next_cursor;
  if (!cursor) break;
  url.searchParams.set("cursor", cursor);
}

Page Size Limits

The public OpenAPI spec gives the bounds. For Coverage, limit is 1 through 500 and applies to set rows. Omit it to get all set rows on an unfiltered request, or a 100-row page with a filter or cursor.

Search & Catalog
  • GET /v1/search

    Default 20 · Maximum 50

    Default sort relevance

    Cursor in Response data.paging.next_cursor. Stop when it is null or absent.

  • GET /v1/catalog/cards

    Default 50 · Maximum 200

    Default sort set

    Cursor in Response data.paging.next_cursor. Stop when it is null or absent.

  • POST /v1/catalog/cards:batch

    Default 1000 · Maximum 1000

    Set ID, then card ID

    Cursor in Response data.paging.next_cursor for set or search mode. Stop when it is null or absent.

  • GET /v1/catalog/sets

    Default 100 · Maximum 200

    Default sort release_date

    Cursor in Response data.paging.next_cursor. Stop when it is null or absent.

  • GET /v1/catalog/products

    Default 50 · Maximum 100

    Product name, then product ID

    Cursor in Response data.paging.next_cursor. Stop when it is null or absent.

Cards
  • GET /v1/cards

    Default 50 · Maximum 200

    Default sort volume

    Cursor in Response data.paging.next_cursor. Stop when it is null or absent.

Prices
Sales
  • GET /v1/sales

    Default 50 · Maximum 200

    Default sort newest

    Cursor in Response data.paging.next_cursor. Stop when it is null or absent.

  • GET /v1/cards/{card_id}/sales

    Default 50 · Maximum 200

    Newest sale first

    Cursor in Response data.paging.next_cursor. Stop when it is null or absent.

Listings & Deals
  • GET /v1/listings

    Default 50 · Maximum 200

    Default sort newest

    Cursor in Response data.paging.next_cursor. Stop when it is null or absent.

  • GET /v1/cards/{card_id}/listings

    Default 50 · Maximum 200

    Newest listing first

    Cursor in Response data.paging.next_cursor. Stop when it is null or absent.

  • GET /v1/auctions

    Default 50 · Maximum 200

    Default sort ending_soonest

    Cursor in Response paging.next_cursor. Stop when it is null or absent.

  • GET /v1/market/deals

    Default 50 · Maximum 200

    Default sort discount

    Cursor in Response data.paging.next_cursor. Stop when it is null or absent.

Population
Sets
  • GET /v1/sets

    Default 50 · Maximum 200

    Default sort release_date

    Cursor in Response data.paging.next_cursor. Stop when it is null or absent.

Market
  • GET /v1/market/movers

    Default 25 · Maximum 100

    Ranked by the requested movers direction or trending score

    Cursor in Response data.paging.next_cursor. Stop when it is null or absent.

Certificates & Trades
  • GET /v1/certs/{cert}

    Default 100 · Maximum 500

    Certificate sales in lookup order

    Cursor in Response data.pagination.next_cursor. Stop when it is null or absent.

Ownership
  • GET /v1/assets/{asset_id}/owners

    Default 100 · Maximum 500

    Newest ownership change first

    Cursor in Response data.next_cursor. Stop when it is null or absent.

  • GET /v1/ownership/hold-times

    Default 100 · Maximum 500

    Keep the endpoint’s returned order

    Cursor in Response data.next_cursor. Stop when it is null or absent.

  • GET /v1/ownership/inventory

    Default 100 · Maximum 500

    Newest day first

    Cursor in Response data.next_cursor. Stop when it is null or absent.

  • GET /v1/ownership/leaderboard

    Default 100 · Maximum 500

    Ranked by the requested wallet activity metric

    Cursor in Response data.next_cursor. Stop when it is null or absent.

  • GET /v1/ownership/top-holders

    Default 100 · Maximum 500

    Wallet rank in the reported snapshot

    Cursor in Response data.next_cursor. Stop when it is null or absent.

  • GET /v1/wallets/{address}/holdings

    Default 100 · Maximum 500

    Keep the endpoint’s returned order

    Cursor in Response data.next_cursor. Stop when it is null or absent.

  • GET /v1/wallets/{address}/timeline

    Default 100 · Maximum 500

    Newest day first

    Cursor in Response data.next_cursor. Stop when it is null or absent.

  • GET /v1/wallets/{address}/transfers

    Default 100 · Maximum 500

    Keep the endpoint’s returned order

    Cursor in Response data.next_cursor. Stop when it is null or absent.

Service Status
  • GET /v1/coverage

    Default 100 with a filter or cursor, otherwise all set rows · Maximum 500

    Market, game, era, then set ID

    Cursor in Response data.market_coverage.paging.next_cursor. Stop when it is null or absent.

Feedback
  • GET /v1/me/feedback

    Default 10 · Maximum 20

    Most recent feedback first

    Use offset. Stop on a short page or before an offset above 1,000.

Batch Known IDs

Use pagination to traverse results for a filter. Use a batch when you already know the IDs to fetch. GET /v1/prices, POST /v1/cards:batch, and POST /v1/resolve accept up to 100 IDs. POST /v1/catalog/cards:batch accepts up to 1,000 explicit card IDs. Check per-ID results and not_found where provided. Sealed price and set population batches each accept up to 50 IDs.

Some batches page their results. In set or search mode, catalog card batches accept cursor and limit in the JSON body, with up to 1,000 rows per page. A price-history batch accepts up to 100 IDs and 16 grades. Each series returns up to 200 points per page. If any series returns a paging.next_cursor, send it as the body cursor to advance all series together. Stop once every series cursor is null or absent.

Find request fields and examples in the API Reference.