SocialHz Engineering · 5 November 2026 · Requested by a customer
Shopee's product response, unmodified
POST /api/v1/quick-run
What shipped
With raw_get_pc set, a Shopee record's raw.get_pc is now the complete product response Shopee returned, with nothing added, removed, reordered or re-encoded. Stock and units sold, which we used to write into that response, now sit at the top of the record as stock and historical_sold.
Why
A team that checks Shopee data in its own pipeline asked for the product response exactly as Shopee sends it, every section included, so it can be verified against the marketplace.
What changed in a record
- raw.get_pc holds error, error_msg and data exactly as Shopee returned them, in Shopee's own key order and with its own escaping. Every section of data is there: item, product_review, shop_detailed, product_attributes, product_description, product_shipping and the rest.
- stock and historical_sold are new top-level fields: whole numbers read from what Shopee shows on the page.
- raw.get_pc.data.item.stock and raw.get_pc.data.product_review.historical_sold are now Shopee's own values. We no longer overwrite them, and Shopee often leaves them empty.
When stock or historical_sold is missing
Shopee shows big or vague amounts as text, such as "9萬+" sold or "尚有庫存" (in stock). Those aren't exact numbers, so the field is left out rather than guessed. The text is still in raw.get_pc: data.item.stock_display and data.product_review.historical_sold_display.
If you read stock from raw.get_pc
Switch to the top-level stock and historical_sold. Records collected before this change hold the numbers inside raw.get_pc instead. Read the top-level field first and fall back to the old path, which is what the app's Stock and Sold columns do.
{
"item_id": 25465399962,
"shop_id": 778826565,
"result_status": "success",
"stock": 120,
"historical_sold": 3400,
"raw": {
"get_pc": {
"error": null,
"error_msg": null,
"data": {
"item": { "title": "Brightleaf Green Tea 500 g", "stock_display": "120", "...": "..." },
"product_review": { "historical_sold_display": "3,400", "...": "..." },
"...": "..."
}
}
}
}
Request a feature
Tell us what you need on the updates page. The engineering team reads every request.