DHgate store reviews
Reviews of every product of a DHgate store, newest first: rating, text, date, buyer nickname, level and country, the variant bought, images, the seller's reply, the product id and raw. Filters: with photos, buyer country. 10 reviews a page. Pass next_page back as page; null on the last page.
Every response includes credits_used: the credits this call cost.
Part of the DHgate API: 7 endpoints with prices, use cases and example responses.
Parameters
| name | type | description |
|---|---|---|
id | string | The store number (e.g. 20750510) or its link. Example: 20750510 |
supplier_id | string | Instead of id: store.supplier_id from search or product. |
with_photos | true | true: only reviews with photos or video. |
country | string | Only reviews from buyers in this country (two letters). |
page | integer | Page number. Pass next_page from the previous response; null on the last page. |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/dhgate/v1/store-reviews?id=20750510" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/dhgate/v1/store-reviews",
params={"id": "20750510"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/dhgate/v1/store-reviews");
url.searchParams.set("id", "20750510");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).
Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)
{"store": "20750510","supplier_id": "ff8080815d2b7f6d015d698b6146376b","applied_filters": {},"total": 2091,"page": 1,"pages": 210,"count": 10,"next_page": 2,"reviews": [{"id": "108926120","rating": 5,"text": "AMAZING .. I will definitely be purchasing again for my decorative phone case business! Super fast shipping, it came in about a week. The qu…","date": "2021-01-11T17:44:45.000Z","author": "serendi****kpopsh","buyer_level": "V2","country": "United States","country_code": "US","helpful": 1,"variant": [{"name": "Options","value": "Mix(leave note)"},{"name": "Color","value": "Transparent"}],"images": ["https://image.dhgate.com/review_2451121807_00.jpg"],"video": null,"seller_reply": "Thanks friend.","product_id": "ff8080815e044322015e2b94eca4265d","itemcode": null},{"id": "110499080","rating": 5,"text": "Quality product, the edges are tpu and the back is hard in acrylic, remember to remove the protection sheet inside and outside the case, the…","date": "2021-03-26T11:07:44.000Z","author": "Patric****hacon","buyer_level": "V2","country": "United States","country_code": "US","helpful": 0,"variant": [{"name": "Options","value": "Mix(leave note)"},{"name": "Color","value": "Transparent"}],"images": ["https://image.dhgate.com/review_2457978203_00.jpg","https://image.dhgate.com/review_2457978207_00.jpg"],"video": null,"seller_reply": "thanks friend.","product_id": "ff8080815e044322015e2b94eca4265d","itemcode": null},"… 8 more"],"cached": false,"credits_used": 1}