Przejdź do treści
↑↓ wybór · Enter otwórz · Esc zamknij
Dokumentacja Data APIReferencja Data API v2Status
Data API

GOAT Ceny zbiorczo

Na żywo

Ceny wielu produktów w jednym wywołaniu.

GET/v2/sites/goat/batch_prices
Uwierzytelnianie
x-api-key
Koszt
1 cache · 2 na żywo
Czas cache
5 min

Status na żywo

StatusDziałaOstatnie 30 dni · obwódka = dziś
Sukces · 30 dni
100,0%
Ani jednego dnia poniżej 99,0%
Mediana czasu · 24 h
129 ms
Pobranie na żywo ze źródła
Najwolniejsze 5% · 24 h
312 ms
95 na 100 wywołań jest szybszych
Wiek danych
≤ 15 min
Ostatnie sprawdzenie 43 min temu

Z naszych własnych wywołań testowych do tego źródła, nigdy z zapytań klientów.

Przykład

curl --request GET \
  'https://api.retailed.io/v2/sites/goat/batch_prices?ids=719082' \
  --header 'x-api-key: <token>'
Odpowiedź · 200Przykład
{
  "offers": [
    {
      "size": "string",
      "condition": "string",
      "inStock": false,
      "lowest": {
        "amountMinor": 0,
        "currency": "USD"
      },
      "lastSold": {
        "amountMinor": 0,
        "currency": "USD"
      },
      "variantId": "string",
      "highestBid": {
        "amountMinor": 0,
        "currency": "USD"
      },
      "asks": 0,
      "bids": 0,
      "instantShip": {
        "amountMinor": 0,
        "currency": "USD"
      },
      "productId": "string",
      "sizeType": "string",
      "delivery": "string",
      "updatedAt": "2026-01-01T00:00:00Z",
      "system": "us_m",
      "value": "string"
    }
  ],
  "source": {
    "shop": "string",
    "fetchedAt": "2026-01-01T00:00:00Z",
    "ageS": 0,
    "cached": false,
    "stale": false,
    "credits": 0
  }
}

Struktura odpowiedzi z przykładowymi wartościami.

Parametry zapytania

NazwaTypOpis
idsWymaganestringids (required).
countrystringCountry code, e.g. US, FR, GB.
currencystringCurrency code, e.g. USD, EUR.
languagestringLanguage, e.g. en-US.
freshstringcache (default) serves cached data when fresh; live always fetches. Jedno z: cache, live. Domyślnie 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.

Odpowiedź

200 zwraca obiekt Prices.

Odpowiedź
PoleTypOpis
offersPriceOffer[]–
offers[].sizestring–
offers[].conditionstring | null–
offers[].inStockboolean–
offers[].lowestMoney | null–
offers[].lowest.amountMinorintegerAmount in minor units of the currency (cents).
offers[].lowest.currencystringISO 4217 code.
offers[].lastSoldMoney | null–
offers[].lastSold.amountMinorintegerAmount in minor units of the currency (cents).
offers[].lastSold.currencystringISO 4217 code.
offers[].variantId?string–
offers[].highestBid?Money | null–
offers[].highestBid.amountMinorintegerAmount in minor units of the currency (cents).
offers[].highestBid.currencystringISO 4217 code.
offers[].asks?integer–
offers[].bids?integer–
offers[].instantShip?Money | null–
offers[].instantShip.amountMinorintegerAmount in minor units of the currency (cents).
offers[].instantShip.currencystringISO 4217 code.
offers[].productId?string–
offers[].sizeType?string | null–
offers[].delivery?string–
offers[].updatedAt?string (date-time)–
offers[].system?SizeSystem–
offers[].value?string–
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.

Błędy

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

Wszystkie typy błędów →

Więcej endpointów: GOAT