본문으로 건너뛰기
↑↓ 이동 · Enter 열기 · Esc 닫기
Data API 문서Data API v2 레퍼런스상태
Data API

GOAT sales daily

베타
GET/v2/sites/goat/sales_daily
인증
x-api-key
요금
캐시 1 · 실시간 2
캐시 기간
1시간

예시

curl --request GET \
  'https://api.retailed.io/v2/sites/goat/sales_daily?id=1731794' \
  --header 'x-api-key: <token>'
응답 · 200예시
{
  "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
  }
}

응답 구조(값은 예시).

쿼리 파라미터

이름유형설명
id필수stringRequired: the GOAT product id, a number (externalId on goat.product or goat.search).
cursorstring (date)Older days: the nextCursor of the previous page (YYYY-MM-DD).
countrystringMarket of the sales: US or HK. US by default. 다음 중 하나: US, HK. 기본값은 US예요.
freshstringcache (default) serves cached data when fresh; live always fetches. 다음 중 하나: cache, live. 기본값은 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.

응답

200은 SalesDaily 객체를 돌려줘요.

응답
항목유형설명
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.

오류

상태발생하는 경우
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.

모든 오류 유형 →

GOAT의 다른 엔드포인트