POST

API health

24h health
Normal
  • Healthy / normal
  • Available
Normal

Last 24 hours

Last 30 days

Read a Shopee product's catalog details from its full url: name, images, description, brand, categories, variations and per-variant stock and promotion flags, attributes, shipping terms, video and shop vouchers. For price, units sold, rating and review count, use product_detail.

Send POST https://api.everyinfra.com/api/v1/social with platform set to shopee and action set to product_specs. Price $0.56 per 1,000 requests ($0.000556 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.

AI prompt

#
Please help me write a data collection script with the EveryInfra Shopee Product specs endpoint (shopee/product_specs).

How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to shopee and action to product_specs, and put the parameters inside params.
- Required parameters:
  - url: The full Shopee product URL for profile, product_detail, product_specs and reviews. profile extracts identifiers using the i.shop_id.product_id pattern.
- Optional parameters:
  - country: Sets the region code and takes precedence over region and URL inference. For search, profile, shop and shop_info, defaults to id (Indonesia) when unspecified.
- Returns one object. Main fields: item_id (Item ID), shop_id (Shop ID), shop_name (Shop name), url, country, name, description, brand (Brand), currency, image_url, image_urls, category_ids (IDs of the product's categories, from t…); 34 fields in total, full list at https://api.everyinfra.com/api/v1/social/catalog?platform=shopee.
- Example request body:
{
  "platform": "shopee",
  "action": "product_specs",
  "params": {
    "url": "https://shopee.sg/product/285901479/15134762530"
  }
}
- Price: $0.56 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.

Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.

Request parameters

#
NameInTypeRequiredDefaultDescription
AuthorizationheaderstringYes-Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository.
platformbodystringYesshopeePlatform identifier, fixed value.
actionbodystringYesproduct_specsCapability identifier, fixed value.
urlbody.paramsstringYes-The full Shopee product URL for profile, product_detail, product_specs and reviews. profile extracts identifiers using the i.shop_id.product_id pattern; for product_specs and reviews, the path must contain i.<shop_id>.<item_id> or /product/<shop_id>/<item_id>, or the request is rejected before you are charged. Shortened links must be resolved to their landing page URL first and are not guaranteed to parse directly.
countrybody.paramsstringNo-Sets the region code and takes precedence over region and URL inference. For search, profile, shop and shop_info, defaults to id (Indonesia) when unspecified; shop_info reads it from the domain when you pass a shop link. Configured domain detection includes sg, my, th, ph, vn, br, tw, mx, co, and cl, though a recognized domain does not guarantee data for every region. shop_info, product_specs and reviews accept only tw, vn, sg, my, ph, th, id, br and mx, and shop_info and reviews reject any other value before you are charged. product_detail, product_specs and reviews usually read the region from the product URL, and a product is only found in its own market. categories, trending_searches and search_suggest cover Singapore only and accept only sg; other values are rejected before you are charged.

Code samples

#
bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "shopee",
  "action": "product_specs",
  "params": {
    "url": "https://shopee.sg/product/285901479/15134762530"
  }
}'

OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.

Response example

#
No sample response is available for these parameters yet. This preview shows the response shape and fields from the API definition, with … as placeholders; it is not the result of a live call.
json
{  "id": "req_…",  "platform": "shopee",  "action": "product_specs",  "results": {    "item_id": …,    "shop_id": …,    "shop_name": …,    "url": …,    "country": …,    "name": …,    "description": …,    "brand": …,    "currency": …,    "image_url": …,    "image_urls": …,    "category_ids": …,    "categories": …,    "display_category_ids": …,    "display_categories": …,    "discount_pct": …,    "in_stock": …,    "variations": …,    "variation_count": …,    "skus": …,    "attributes": …,    "shop_location": …,    "is_official_shop": …,    "free_shipping": …,    "is_pre_order": …,    "is_new": …,    "min_purchase": …,    "estimated_days": …,    "status": …,    "created_at": …,    "video": …,    "shop_vouchers": …,    "shop": …,    "collected_at": …,    "platform": …  },  "billing": {    "charged": …,    "charged_usd": …,    "balance_after_usd": …,    …  },  "quota": { … }}

Response fields

#

Business data is in results. The table lists the fields a record can contain. Values the platform does not show are never made up.

FieldMeaning
item_idItem ID.
shop_idShop ID.
shop_nameShop name.
urlLink to the record on the platform.
countryCountry or region: a full name or an ISO code depending on the platform, not normalized.
nameName of the object itself, for account, product and business capabilities.
descriptionSummary or description, usually shorter than text.
brandBrand.
currencyCurrency code of the price (for example CNY, USD). If price is present but currency is null, do not assume a currency.
image_urlImage link. Capabilities with several images may return an image_urls array.
image_urlsArray of image links in the platform's display order; absent when there are no images.
category_idsIDs of the product's categories, from top level to leaf.
categoriesNames of the product's categories, from top level to leaf.
display_category_idsIDs of the categories the storefront displays the product under, from top level to leaf.
display_categoriesNames of the categories the storefront displays the product under, from top level to leaf.
discount_pctDiscount percentage.
in_stockWhether the product is in stock: true if at least one variant is in stock, false if every variant is out of stock.
variationsList of variation dimensions. Each has name (such as Color) and options (the available values).
variation_countNumber of variant combinations.
skusEach variant combination: sku_id, name, options (the value for each dimension), in_stock (whether this variant is in stock) and on_promotion (whether this variant is at a promotional price now). Price and stock counts are not included.
attributesList of product attributes. Each has name and value.
shop_locationShop location. Delivery times differ a lot between cross-border and local shops.
is_official_shopWhether the shop is an official shop.
free_shippingWhether shipping is free.
is_pre_orderWhether the item is a pre-order.
is_newWhether the product is new.
min_purchaseMinimum number of units per purchase.
estimated_daysDays needed to prepare the order.
statusProduct status; normal means on sale.
created_atCreation time, same format as posted_at.
videoThe product video: url, cover_url, duration_seconds. Present only when the product has a video.
shop_vouchersThe shop's current vouchers: code, discount_amount (amount off, in the market's currency), discount_pct (percentage off), min_spend (minimum spend), ends_at (end time). Present only when the shop has vouchers.
shopThe seller's shop (profile): shop_id, name, username, location, rating (shop rating), item_count (number of products), follower_count, response_rate (reply rate, as a percentage), is_official_shop and is_shopee_verified, each only when it has a value. In product_specs, its fields are the same as the shop_info response.
collected_atWhen this record was collected (ISO 8601, UTC).
platformSource platform identifier, the same as platform in the request (for example xiaohongshu, tiktok).

Errors and billing

#
401
Missing or invalid key.
402
Insufficient balance. Top up first.
422
Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
429
Per-minute request limit reached. Wait for Retry-After, then try again.
503
Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
200 empty
No data. No charge.

Errors

Google Analytics needs consent. Privacy