Skip to documentation
DOCUMENTATIONAPI referenceCatalogSearch products
CATALOG / V1

Search products

Search products

GET/v1/search
Bearer key requiredJSON response

Offset is capped at 10,000. Narrow broad searches; catalog coverage and pagination are not completeness guarantees.

Example requestv1
curl --request GET --max-time 35 \  --url 'https://pokepos-market-api.vercel.app/v1/search?q=Mew%20ex&category=pokemon&limit=10' \  --header "Authorization: Bearer $CARDCOUNTER_API_KEY"
Response illustrative JSON
{  "source": "tcgplayer-public-site",  "fetchedAt": "2026-10-04T12:30:00.000Z",  "cacheHit": false,  "query": "Example",  "category": "pokemon",  "set": null,  "total": 1,  "offset": 0,  "limit": 10,  "sort": "relevance",  "products": [    {      "productId": 704860,      "name": "Example Pokémon card",      "category": "Pokemon",      "setName": "Example set",      "setId": 100,      "setCode": "EXM",      "cardNumber": "066/128",      "rarity": "Rare",      "sealed": false,      "marketPrice": 5.45,      "lowestPrice": 3,      "listingCount": 1    }  ]}
Example values can change with the source.
REQUEST

Parameters

Pass path parameters in the URL and query parameters after ?.

qstringquery

Card or product text to match. A collector number can be included. Up to 120 characters. Example: Mew ex.

categorystringquery

Product line slug returned by the categories route, such as pokemon. Up to 80 characters. Pattern: ^[a-z0-9-]{1,80}$. Example: pokemon.

setstringquery

Lowercase set slug from the sets route, not a display name. Up to 80 characters. Pattern: ^[a-z0-9-]{1,80}$.

offsetintegerquery

Zero-based index of the first result to return. Range: 0–10000. Default: 0.

limitintegerquery

Maximum number of results to include in this response. Range: 1–50. Default: 24.

sortstringquery

Defaults to relevance with q, otherwise name. Values: relevance, name.

RESPONSE

Response object

Search products The root schema is SearchResult.

sourcestringrequired

Always tcgplayer-public-site.

fetchedAtstringrequired

Time this section was fetched, in ISO 8601 format.

cacheHitbooleanrequired

Whether a cached observation was served. Read fetchedAt and stale together.

staleboolean

Always true.

codestring

Machine-readable status or error code.

upstreamStatusinteger | null

HTTP status reported by an upstream source, when known.

querystringrequired

Original or normalized search text.

categorystring | nullrequired

Product line or category for this result.

setstring | nullrequired

Selected set filter, when provided.

totalinteger | nullrequired

Number of matching results or offers reported by the source.

offsetintegerrequired

Zero-based offset used for this page.

limitintegerrequired

Maximum results requested for this page.

sortstringrequired

One of name, relevance.

productsProductSummary[]required

Product summaries matching the query.

SCHEMAS

Related objects

Expand a type to inspect its fields.

ProductSummary12 fields
productIdintegerrequired

Numeric ID for the exact catalog product.

namestring | nullrequired

Display name from the source catalog.

categorystring | nullrequired

Product line or category for this result.

setNamestring | nullrequired

Value returned by the market data source.

setIdinteger | nullrequired

Value returned by the market data source.

setCodestring | nullrequired

Value returned by the market data source.

cardNumberstring | nullrequired

Collector number printed on the card.

raritystring | nullrequired

Rarity label reported by the catalog.

sealedbooleanrequired

Whether the product is sealed rather than a single card.

marketPricenumber | nullrequired

USD decimal dollars. Null means no usable observation, not zero.

lowestPricenumber | nullrequired

USD decimal dollars. Null means no usable observation, not zero.

listingCountinteger | nullrequired

Number of current listings, when reported.

HTTP

Status codes

200

Search products

400

Check route parameters or the JSON body.

401

Account-backed key is invalid, inactive, expired or revoked.

404

Unknown route.

405

Use the method published for this route.

429

Quota or admission limit; inspect error.code and Retry-After.

500

Request failed; preserve x-request-id for support.

502

The source returned an error. Source 404 may map to API 404.

503

Account access store is unavailable or misconfigured.

504

Source request exceeded its budget.

Errors use error.code and error.message. Keep x-request-id for tracing. Read the error code catalog and examples.

Response headers

x-request-id

Request ID for tracing and support.

x-plan

Plan for admitted account-backed requests.

x-ratelimit-limit

Account allowance per UTC minute.

x-ratelimit-remaining

Remaining requests in the UTC minute.

x-monthly-limit

Account allowance per UTC month.

x-monthly-remaining

Remaining requests in the UTC month.

Retry-After

Nonnegative seconds until retry is useful for quota, cooldown or admission failures.

Success, empty, partial, stale and error examples
200 · success
{
  "source": "tcgplayer-public-site",
  "fetchedAt": "2026-10-04T12:30:00.000Z",
  "cacheHit": false,
  "query": "Example",
  "category": "pokemon",
  "set": null,
  "total": 1,
  "offset": 0,
  "limit": 10,
  "sort": "relevance",
  "products": [
    {
      "productId": 704860,
      "name": "Example Pokémon card",
      "category": "Pokemon",
      "setName": "Example set",
      "setId": 100,
      "setCode": "EXM",
      "cardNumber": "066/128",
      "rarity": "Rare",
      "sealed": false,
      "marketPrice": 5.45,
      "lowestPrice": 3,
      "listingCount": 1
    }
  ]
}
200 · empty
{
  "source": "tcgplayer-public-site",
  "fetchedAt": "2026-10-04T12:30:00.000Z",
  "cacheHit": false,
  "query": "Example",
  "category": "pokemon",
  "set": null,
  "total": 0,
  "offset": 0,
  "limit": 10,
  "sort": "relevance",
  "products": []
}
400 · INVALID_INPUT
{
  "error": {
    "code": "INVALID_INPUT",
    "message": "Check route parameters or the JSON body."
  }
}
401 · INVALID_API_KEY
{
  "error": {
    "code": "INVALID_API_KEY",
    "message": "Account-backed key is invalid, inactive, expired or revoked."
  }
}
401 · UNAUTHORIZED
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "The optional local single-key credential is missing or invalid."
  }
}
404 · NOT_FOUND
{
  "error": {
    "code": "NOT_FOUND",
    "message": "Unknown route."
  }
}
404 · IMAGE_NOT_AVAILABLE
{
  "error": {
    "code": "IMAGE_NOT_AVAILABLE",
    "message": "No source image is available for this product."
  }
}
405 · METHOD_NOT_ALLOWED
{
  "error": {
    "code": "METHOD_NOT_ALLOWED",
    "message": "Use the method published for this route."
  }
}
429 · RATE_LIMITED
{
  "error": {
    "code": "RATE_LIMITED",
    "message": "Minute allowance exhausted; use Retry-After."
  }
}
429 · MONTHLY_QUOTA_EXCEEDED
{
  "error": {
    "code": "MONTHLY_QUOTA_EXCEEDED",
    "message": "Monthly allowance exhausted; retry after the next UTC month."
  }
}
429 · AUTH_RATE_LIMITED
{
  "error": {
    "code": "AUTH_RATE_LIMITED",
    "message": "Authentication admission limit reached."
  }
}
429 · DIAGNOSTIC_RATE_LIMITED
{
  "error": {
    "code": "DIAGNOSTIC_RATE_LIMITED",
    "message": "Usage diagnostic rate limit reached."
  }
}
500 · INTERNAL_ERROR
{
  "error": {
    "code": "INTERNAL_ERROR",
    "message": "Request failed; preserve x-request-id for support."
  }
}
502 · UPSTREAM_HTTP_status
{
  "error": {
    "code": "UPSTREAM_HTTP_503",
    "message": "The source returned an error. Source 404 may map to API 404."
  }
}
502 · UPSTREAM_INVALID_RESPONSE
{
  "error": {
    "code": "UPSTREAM_INVALID_RESPONSE",
    "message": "Source data failed response or identity validation."
  }
}
502 · UPSTREAM_RESPONSE_TOO_LARGE
{
  "error": {
    "code": "UPSTREAM_RESPONSE_TOO_LARGE",
    "message": "Source or aggregate API response exceeds the byte limit."
  }
}
502 · UPSTREAM_NETWORK_ERROR
{
  "error": {
    "code": "UPSTREAM_NETWORK_ERROR",
    "message": "Source transport failed."
  }
}
502 · UPSTREAM_CANCELED
{
  "error": {
    "code": "UPSTREAM_CANCELED",
    "message": "Source work was canceled."
  }
}
503 · ACCESS_STORE_UNAVAILABLE
{
  "error": {
    "code": "ACCESS_STORE_UNAVAILABLE",
    "message": "Account access store is unavailable or misconfigured."
  }
}
503 · USAGE_UNAVAILABLE
{
  "error": {
    "code": "USAGE_UNAVAILABLE",
    "message": "Usage diagnostics require account-backed mode."
  }
}
503 · SERVICE_BUSY
{
  "error": {
    "code": "SERVICE_BUSY",
    "message": "Service admission capacity exhausted; use Retry-After."
  }
}
503 · ACCESS_BUSY
{
  "error": {
    "code": "ACCESS_BUSY",
    "message": "Database authorization capacity exhausted; use Retry-After."
  }
}
503 · UPSTREAM_BUSY
{
  "error": {
    "code": "UPSTREAM_BUSY",
    "message": "Source queue is full; use Retry-After."
  }
}
503 · OCR_BUSY
{
  "error": {
    "code": "OCR_BUSY",
    "message": "Photo recognition queue is full; use Retry-After."
  }
}
503 · OCR_UNAVAILABLE
{
  "error": {
    "code": "OCR_UNAVAILABLE",
    "message": "Photo recognition is unavailable."
  }
}
504 · UPSTREAM_TIMEOUT
{
  "error": {
    "code": "UPSTREAM_TIMEOUT",
    "message": "Source request exceeded its budget."
  }
}
504 · OCR_TIMEOUT
{
  "error": {
    "code": "OCR_TIMEOUT",
    "message": "Photo recognition exceeded its processing budget."
  }
}
504 · REQUEST_DEADLINE_EXCEEDED
{
  "error": {
    "code": "REQUEST_DEADLINE_EXCEEDED",
    "message": "Total request deadline exceeded."
  }
}