Aller au contenu
↑↓ pour naviguer · Entrée pour ouvrir · Échap pour fermer
Doc de la Data APILa référence de la Data API v2Statut
Data API

StockX sales daily

Bêta
GET/v2/sites/stockx/sales_daily
Authentification
x-api-key
Coût
1 en cache · 2 en direct
Durée du cache
1 h

Exemple

curl --request GET \
  'https://api.retailed.io/v2/sites/stockx/sales_daily?id=019cdec1-bfba-7a89-96c5-5dc57934a096' \
  --header 'x-api-key: <token>'
Réponse · 200Exemple
{
  "productId": "string",
  "days": [
    {
      "date": "string",
      "orders": 0,
      "average": {
        "amountMinor": 0,
        "currency": "USD"
      }
    }
  ],
  "nextCursor": "string",
  "source": {
    "shop": "string",
    "fetchedAt": "2026-01-01T00:00:00Z",
    "ageS": 0,
    "cached": false,
    "stale": false,
    "credits": 0
  }
}

Forme de la réponse, avec des valeurs d’exemple.

Paramètres de requête

NomTypeDescription
idobligatoirestringRequired: the StockX product id, a UUID (externalId on stockx.product or stockx.search).
cursorstring (date)Older days: the nextCursor of the previous page (YYYY-MM-DD).
countrystringMarket of the sales: US or DE. US by default. Valeurs : US, DE. Par défaut US.
freshstringcache (default) serves cached data when fresh; live always fetches. Valeurs : cache, live. Par défaut 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.

Réponse

Le code 200 renvoie un objet SalesDaily.

Réponse
ChampTypeDescription
productIdstringThe marketplace's product id.
daysSalesDay[]Newest day first; days without a sale are left out.
days[].datestring (date)The day (UTC).
days[].ordersintegerSales that day.
days[].averageMoneyAverage sale price that day.
days[].average.amountMinorintegerAmount in minor units of the currency (cents).
days[].average.currencystringISO 4217 code.
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.

Erreurs

StatutQuand
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.

Tous les types d’erreur →

Autres endpoints StockX