Reviews
Google Shopping에서 상품의 리뷰를 가져옵니다.
GET | POST /v1/google-shopping/reviews파라미터는 GET의 쿼리 문자열로도, POST의 JSON 본문으로도 보낼 수 있습니다. 둘은 같습니다.
요청
curl "https://gateway.apinoa.com/v1/google-shopping/reviews?id=14699928440903523478" \
-H "x-api-key: $APINOA_API_KEY"파라미터
| 파라미터 | 타입 | 필수 | 설명 |
|---|---|---|---|
cursor | string | Next page: pass the previous result's cursor alone. | |
id | string | The product, as a search item's id carries it. Only a product Google groups across stores (an id of digits only) has reviews. | |
url | string | A Google Shopping product link instead of id (the url a search item carries). |
같은 파라미터와 모든 응답 타입은 OpenAPI 문서에도 있습니다.
응답
data에 ReviewPage를 돌려줍니다. 실제 응답을 줄인 것입니다. 배열은 앞쪽 항목만 남기고 긴 텍스트는 잘랐습니다.
{
"success": true,
"data": {
"marketplace": "google-shopping",
"productId": "14699928440903523478",
"summary": {
"average": 4.7083335,
"count": 456,
"distribution": {"1": 3, "2": 1, "3": 4, "4": 11, "5": 83},
"starCounts": {"1": 11, "2": 4, "3": 14, "4": 49, "5": 378}
},
"page": {"index": 1, "size": 10, "total": 456},
"reviews": [
{
"id": "PR_3P_f5ad9bac86f8a072818655448a2d2a25",
"author": "Joshua W",
"authorAvatarUrl": "https://lh3.googleusercontent.com/shsm/AGYqVK3f_a0qsNdewufUaN9jNMjhBA2iqYGxMmbkzY_-9XUnWM-EHp54sZUtlNtGLSKzmHRExg=w40-h40-c0x00000000-cc",
"rating": 3,
"title": "Looking for some help",
"body": "The shoes feel great.. the very light and comfortable under the foot…. The staff were great and very helpful when I was there… she told me I had a slight curved…",
"images": [],
"syndicatedFrom": "ewavedemo.com",
"ext": {"dateText": "2 months ago"}
},
{
"id": "PR_3P_b2d0f4e9a87ebcd67397b1a448940f0a",
"author": "Default",
"authorAvatarUrl": "https://lh3.googleusercontent.com/shsm/AGYqVK36QOcqS62Et64UZUlsDp50FK0-LzpzaUd1Agzu2JVkg3ql3vf6jik6HH6NLO97COzJZg=w40-h40-c0x00000000-cc",
"rating": 5,
"title": "Great shoe for training runs",
"body": "I’ve put 20 miles on these shoes now in 4 easy runs. I have never had a rocker-style shoe before but they were noticeably plusher/softer and also nicer when goi…",
"images": [],
"syndicatedFrom": "scheels.com",
"ext": {"dateText": "2 months ago"}
}
],
"cursor": "YN15aw6pZJw1FMvFzP6fLCf0K96FEghuBGv4a93oJ-0zQyEfuCFWmFieSYh0NJKmYigKFBV16DeiEsT-lY3MyBrmGWZdMJ9vH_JZWUXjH0-TI4WKYoKGUF6U2-RV9NMs7SqyGL3MrLEVFTYSCgTtTtfdeF_O-7xW…"
}
}에러
| 상태 | 코드 | 의미 |
|---|---|---|
| 400 | INVALID_CURSOR | 이 오퍼레이션이 돌려준 cursor가 아닙니다. cursor 없이 처음부터 다시 호출하세요. |
| 400 | INVALID_PARAMS | 파라미터가 없거나, 알 수 없거나, 범위를 벗어났거나, 이 엔진이 받지 않는 값입니다. 메시지에 이름이 나옵니다. |
| 401 | UNAUTHORIZED | x-api-key 헤더가 없거나, 폐기되었거나 알 수 없는 키입니다. |
| 402 | INSUFFICIENT_BALANCE | 잔액이 이 호출 비용에 모자랍니다. 대시보드에서 충전하세요. |
| 404 | REVIEWS_NOT_FOUND | Google Shopping이 이 상품의 리뷰를 보관하지 않습니다. 여러 상점을 묶은 상품이 아니라 한 상점의 상품입니다. 메시지에 그 id가 나옵니다. |
| 429 | MARKETPLACE_SATURATED | 동시 호출이 너무 많습니다. Retry-After 초만큼 기다린 뒤 다시 시도하세요. |
| 502 | UPSTREAM_ERROR | 엔진이 쓸 수 없는 응답을 보냈습니다. 간격을 두고 다시 시도하세요. |
| 503 | SERVICE_UNAVAILABLE | 일시적인 장애입니다. 간격을 두고 다시 시도하세요. |
모든 코드는 Errors에 있습니다. 실패한 호출은 과금되지 않습니다.
가격
가격 호출당 $0.0012. 정가 기준이며, 하루 1,000회를 넘으면 단가가 내려갑니다.
참고
- Google은 여러 상점을 묶은 상품 단위로 리뷰를 보관합니다. 검색 결과의
id가 숫자로만 되어 있으면 그런 상품입니다.c나p로 시작하는id는 한 상점의 상품이라 리뷰가 없고,404 REVIEWS_NOT_FOUND를 돌려주며 과금되지 않습니다.