Retailed 가격 이력
베타Retailed 상품 그래프에서 상품의 일별 가격 이력을 돌려줘요.
GET
/v2/db/prices- 인증
- x-api-key
- 요금
- 1크레딧
- 캐시 기간
- 5분
예시
curl --request GET \
'https://api.retailed.io/v2/db/prices?id=<id>' \
--header 'x-api-key: <token>'{
"raw": {
"id": "string",
"days": 0,
"series": [
{
"shop": "string",
"country": "string",
"size": "string",
"currency": "string",
"points": [
{
"day": "string",
"min": 0,
"max": 0,
"last": 0,
"inStock": false
}
]
}
]
},
"source": {
"shop": "string",
"fetchedAt": "2026-01-01T00:00:00Z",
"ageS": 0,
"cached": false,
"stale": false,
"credits": 0
}
}응답 구조(값은 예시).
쿼리 파라미터
| 이름 | 유형 | 설명 |
|---|---|---|
| id필수 | string (uuid) | Retailed product id (required). |
| days | integer | Days of daily history, 1 to 365. Default 30. 기본값은 30예요. |
| country | string | Only offers in this country, e.g. US, FR. |
| size | string | Unset: the whole product. A size: that size only. *: one series per size. |
응답
200은 GraphHistoryResult 객체를 돌려줘요.
| 항목 | 유형 | 설명 |
|---|---|---|
| raw | GraphHistory | – |
| raw.id | string (uuid) | – |
| raw.days | integer | – |
| raw.series | object[] | – |
| raw.series[].shop | string | – |
| raw.series[].country | string | – |
| raw.series[].size | string | "" for the whole product. |
| raw.series[].currency | string | – |
| raw.series[].points | object[] | – |
| raw.series[].points[].day | string (date) | – |
| raw.series[].points[].min | integer | null | Lowest price that day, minor units. |
| raw.series[].points[].max | integer | null | – |
| raw.series[].points[].last | integer | null | – |
| raw.series[].points[].inStock | boolean | null | – |
| source | Source | – |
| source.shop | string | Shop id, e.g. "stockx". |
| source.fetchedAt | string (date-time) | When the data was fetched from the shop. |
| source.ageS | integer | Age of the data in seconds when it was served. |
| source.cached | boolean | True when served from the cache. |
| source.stale | boolean | True when served past its freshness window (circuit open). |
| source.credits | integer | Credits charged for this call. |
오류
| 상태 | 발생하는 경우 |
|---|---|
| 401 | Missing or invalid API key |
| 402 | Out of credits. Never debits credits. |
| 403 | This key may not call this endpoint |
| 404 | Unknown endpoint or product not found. |
| 422 | Invalid parameters, or the page is not a product. |
| 429 | Too many requests |
| 502 | We couldn't fetch this page right now; may include last good data marked stale. |
| 503 | Circuit open for this site; may include last good data marked stale. |