Skip to content
↑↓ to move · Enter to open · Esc to close
Data API docsReference for the Data API v2Status
Data API

GOAT sales

Beta
GET/v2/sites/goat/sales
Auth
x-api-key
Cost
1 cached · 2 live
Cache window
1 h

Example

curl --request GET \
  'https://api.retailed.io/v2/sites/goat/sales?id=1731794' \
  --header 'x-api-key: <token>'
Response · 200Example
{
  "productId": "string",
  "sales": [
    {
      "soldAt": "2026-01-01T00:00:00Z",
      "price": {
        "amountMinor": 0,
        "currency": "USD"
      },
      "size": "string",
      "variantId": "string",
      "delivery": "string"
    }
  ],
  "nextCursor": "string",
  "source": {
    "shop": "string",
    "fetchedAt": "2026-01-01T00:00:00Z",
    "ageS": 0,
    "cached": false,
    "stale": false,
    "credits": 0
  }
}

Shape of the answer, with placeholder values.

Query parameters

NameTypeDescription
idrequiredstringRequired: the GOAT product id, a number (externalId on goat.product or goat.search).
cursorstring (date-time)Older sales: the nextCursor of the previous page.
countrystringMarket of the sales: US or HK. US by default. One of US, HK. Default US.
freshstringcache (default) serves cached data when fresh; live always fetches. One of cache, live. Default cache.
max_ageintegerFreshness bound in seconds: data no older than this is served from cache, older data is fetched now. 0 always fetches. Wins over fresh.

Response

200 answers a Sales object.

Response
FieldTypeDescription
productIdstringThe marketplace's product id.
salesSale[]Newest first.
sales[].soldAtstring (date-time)When the sale happened (UTC).
sales[].priceMoneyWhat the buyer paid, before fees and shipping.
sales[].price.amountMinorintegerAmount in minor units of the currency (cents).
sales[].price.currencystringISO 4217 code.
sales[].sizestring | nullThe size sold, as the marketplace labels it; null when only variantId is sent.
sales[].variantId?stringThe size's own id on the marketplace (matches sizes[].variantId on product).
sales[].delivery?stringDelivery option of the order, e.g. standard or express, when the marketplace says.
nextCursorstring | nullPass as cursor for the next, older page; null on the last page.
sourceSource–
source.shopstringShop id, e.g. "stockx".
source.fetchedAtstring (date-time)When the data was fetched from the shop.
source.ageSintegerAge of the data in seconds when it was served.
source.cachedbooleanTrue when served from the cache.
source.stalebooleanTrue when served past its freshness window (circuit open).
source.creditsintegerCredits charged for this call.

Errors

StatusWhen
401Missing or invalid API key
402Out of credits. Never debits credits.
403This key may not call this endpoint
404Unknown endpoint or product not found.
422Invalid parameters, or the page is not a product.
429Too many requests
502We couldn't fetch this page right now; may include last good data marked stale.
503Circuit open for this site; may include last good data marked stale.

All error types →

More GOAT endpoints