Catalog
Shopify 스토어 하나, 또는 그 컬렉션 하나의 모든 상품을 나열합니다.
GET | POST /v1/shopify/catalog파라미터는 GET의 쿼리 문자열로도, POST의 JSON 본문으로도 보낼 수 있습니다. 둘은 같습니다.
파라미터
| 파라미터 | 타입 | 필수 | 설명 |
|---|---|---|---|
id | string | 예 | The store: its host (comfrt.com) or any URL on it — a product, collection or home page link. |
collection | string | Only this collection: its handle (best-sellers) or its URL. Omitted means the whole store — unless id is itself a collection page link, which lists that collection. | |
currency | string | Presentment currency, ISO 4217. | |
cursor | string | The previous page's cursor. Pass it for the next page; it also carries the store's total forward. | |
page | integer ≥ 1 | 1-based page number. | |
pageSize | integer 1–250 | Products per page, 1–250 (default 50). | |
region | string | Buyer country as ISO 3166-1 alpha-2; sets availability, shipping and price. |
요청
curl "https://gateway.apinoa.com/v1/shopify/catalog?id=thedoodlebot.com" \
-H "x-api-key: $APINOA_API_KEY"응답
data에 SearchResult를 돌려줍니다. 실제 응답을 줄인 것입니다. 배열은 앞쪽 항목만 남기고 긴 텍스트는 잘랐습니다.
{
"success": true,
"data": {
"marketplace": "shopify",
"page": {
"index": 1,
"size": 4,
"total": 4
},
"items": [
{
"marketplace": "shopify",
"id": "thedoodlebot.com/doodle-bot-1",
"url": "https://thedoodlebot.com/products/doodle-bot-1",
"title": "Doodle Bot",
"price": {
"currency": "USD",
"amount": 60
},
"listPrice": {
"currency": "USD",
"amount": 120
},
"brand": "Doodle Bot",
"listedAt": "2025-11-11T21:04:21.000Z",
"inStock": true,
"description": "<p><meta charset=\"utf-8\"><strong data-start=\"302\" data-end=\"392\">Doodle Bot is the fun, interactive robot that helps ki…",
"badges": [],
"promotions": [],
"features": [],
"media": {
"images": [
"https://cdn.shopify.com/s/files/1/0785/4070/1921/files/01803622-2C47-4C92-AB09-18AF6FB97168.jpg?v=1762895019",
"https://cdn.shopify.com/s/files/1/0785/4070/1921/files/530150FC-A189-4EE9-8A39-6775D4EE9A5D.jpg?v=1762895186"
],
"videos": []
},
"category": [],
"attributes": [],
"options": [
{
"id": "1",
"name": "Color",
"values": [
{
"id": "BLUE",
"name": "BLUE",
"imageUrl": "https://cdn.shopify.com/s/files/1/0785/4070/1921/files/530150FC-A189-4EE9-8A39-6775D4EE9A5D.jpg?v=1762895186"
},
{
"id": "PINK",
"name": "PINK",
"imageUrl": "https://cdn.shopify.com/s/files/1/0785/4070/1921/files/01803622-2C47-4C92-AB09-18AF6FB97168.jpg?v=1762895019"
}
]
}
],
"variants": [
{
"id": "47433841967329",
"price": {
"currency": "USD",
"amount": 60
},
"listPrice": {
"currency": "USD",
"amount": 120
},
"inStock": true,
"selections": [
{
"optionId": "1",
"valueId": "BLUE",
"optionName": "Color",
"valueName": "BLUE"
}
]
},
{
"id": "47433842000097",
"price": {
"currency": "USD",
"amount": 60
},
"listPrice": {
"currency": "USD",
"amount": 120
},
"inStock": true,
"selections": [
{
"optionId": "1",
"valueId": "PINK",
"optionName": "Color",
"valueName": "PINK"
}
]
}
],
"offers": [],
"reviewAspects": [],
"boxContents": [],
"reviews": [],
"seller": {
"id": "thedoodlebot.com",
"url": "https://thedoodlebot.com",
"name": "Doodle Bot",
"country": "US"
},
"imageUrl": "https://cdn.shopify.com/s/files/1/0785/4070/1921/files/01803622-2C47-4C92-AB09-18AF6FB97168.jpg?v=1762895019"
}
]
}
}에러
| 상태 | 코드 | 의미 |
|---|---|---|
| 400 | INVALID_CURSOR | 이 오퍼레이션이 돌려준 cursor가 아닙니다. cursor 없이 처음부터 다시 호출하세요. |
| 400 | INVALID_PARAMS | 파라미터가 없거나, 알 수 없거나, 범위를 벗어났습니다. 메시지에 이름이 나옵니다. |
| 401 | UNAUTHORIZED | x-api-key 헤더가 없거나, 폐기되었거나 알 수 없는 키입니다. |
| 402 | INSUFFICIENT_BALANCE | 잔액이 이 호출 비용에 모자랍니다. 대시보드에서 충전하세요. |
| 404 | NOT_FOUND | 스토어에 해당 컬렉션이 없습니다. |
| 404 | NOT_SHOPIFY_STORE | 해당 사이트는 Shopify 스토어가 아닙니다. |
| 404 | STORE_CLOSED | 스토어가 비밀번호로 보호되어 있거나 닫혀 있습니다. |
| 429 | MARKETPLACE_SATURATED | 동시 호출이 너무 많습니다. Retry-After 초만큼 기다린 뒤 다시 시도하세요. |
| 502 | UPSTREAM_ERROR | 플랫폼이 쓸 수 없는 응답을 보냈습니다. 간격을 두고 다시 시도하세요. |
모든 코드는 Errors에 있습니다. 실패한 호출은 과금되지 않습니다.
가격
가격 호출당 $0.001. 정가 기준이며, 하루 1,000회를 넘으면 단가가 내려갑니다.
참고
id는 스토어의 호스트이거나 그 스토어의 아무 링크입니다: 상품 페이지, 컬렉션 페이지 또는 홈페이지. 컬렉션 페이지 링크는 그 컬렉션을 나열하며, 다른 링크는collection을 추가해 컬렉션 하나로 좁힐 수 있습니다.- 각 항목은 완전한 상품입니다. 해당 handle에 대해 Product가 돌려주는 것과 같은 객체(모든 변형, 옵션, 이미지, 설명)에 대표 이미지인
imageUrl이 더해집니다. page.total은 스토어의 상품 수이며 모든 페이지에 담기므로, 첫 페이지만으로 스토어를 끝까지 순회할 가치가 있는지 알 수 있습니다.- 항목 수가 아니라
cursor를 따라가세요. 페이지에pageSize보다 적은 상품이 담겨도 마지막 페이지가 아닐 수 있습니다: Shopify는 공개 목록에 싣지 않는 상품을 페이지에서 빼고 빈자리를 채우지 않습니다. 같은 이유로 끝까지 순회해도page.total보다 약간 적을 수 있습니다.