Skip to content
TrackPin developers

API reference

Search

GET/v1/search

Find products by title, ASIN or amazon.com link.

1 request per callTry it

Parameters

  • qrequired
    string
    Example
    air fryer

    At least 3 characters of title, or an ASIN, or an amazon.com product link.

  • limit
    integer, range 1–50
    Default
    20

    Max 50.

Response

A JSON object. Money is integer cents (USD). Fields marked nullable can be null.

  • querystring

    Echoes q.

  • resolvedobjectnullable

    {asin} when q was an ASIN or a product link.

  • countinteger

    Number of results.

  • results[].asinstring

    ASIN.

  • results[].titlestringnullable

    Title.

  • results[].imagestringnullable

    Image URL.

  • results[].ratingnumbernullable

    Star rating.

  • results[].review_countintegernullable

    Number of ratings.

  • results[].in_stockbooleannullable

    Availability at the last check.

  • results[].priceobjectnullable

    {current_cents, reference_cents, discount_pct, observed_at}; null when we have no price history. observed_at is when the price was last seen (ms since epoch).

  • results[].verdictobjectnullable

    {label}; null when we have no price history.

Notes

  • Title search ranks titles with all of your words, best first (titles with only some of them follow when few have all); when ranking is unavailable it falls back to titles containing your text, unranked. -word leaves out titles with that word. Pasting a link or ASIN is always exact.
  • amazon.com product links and ASINs resolve to that product directly (resolved is set). Links to other Amazon stores or to non-product pages return 400 with a specific error.
  • Calls count toward your key's per-minute ceiling (Free 60, Pro 300, Business 1,200 calls a minute), and searches have their own: 20 a minute (10 on Free). A call over either gets 429 rate limit exceeded and isn't charged.
  • Each call with a valid key counts as one request against your daily quota, even if the request then fails. A call turned away by a per-minute ceiling (429 rate limit exceeded) doesn't count.

Errors

  • 400query too short

    q needs at least 3 characters, or an ASIN or link.

  • 400only amazon.com links are supported

    q is a link to another Amazon store.

  • 400not a product link

    q is a link that doesn't point to a product page.

  • 401missing api key

    No key sent.

  • 401invalid api key

    Unknown or revoked key.

  • 405method not allowed

    The data endpoints are GET only. The Allow header lists the methods an endpoint answers: GET, HEAD and OPTIONS (POST and OPTIONS for /v1/keys/rotate).

  • 429rate limit exceeded

    More than your plan's per-minute ceiling; wait Retry-After seconds. Not charged. The body adds limit, window_s and retry_after_s.

  • 429daily quota exceeded

    Over today's quota. The body adds limit and used.

  • 500internal error

    Something failed on our side, not in your request.

  • 503temporarily unavailable

    Our database can't be reached right now. Retry after the number of seconds in the Retry-After header.

  • 504search timed out

    The title search took too long. Use fewer or more specific words.

Error bodies are {"error": string}. A daily-quota 429 adds limit and used; a per-minute 429 adds limit, window_s and retry_after_s, with a Retry-After header. See Errors and Quotas.

Try it

Send a real request from this page with your key. It goes from your browser straight to TrackPin.

Stays in this tab's session storage until you close the tab. Never added to a URL.

Parameters

At least 3 characters of title, or an ASIN, or an amazon.com product link.

Max 50.

Request

GET /api/v1/search?q=air+fryer&limit=5

x-api-key: pk_…

This uses one request from your daily quota.

Response

Send a request to see the status, headers and body here.

Early access.

Free keys are emailed straight away; Pro and Business are bought by card through Stripe. Request an API key