Lazada Singapore scraper API for AI agents and code
datawebot returns Lazada Singapore search results and product pages as structured JSON, with the same fields for every shop: title, price, original price, availability, rating, image and link, plus details such as brand, variants and identifiers when a product page shows them. It runs from your AI agent over MCP or from code over REST on lazada.sg in Singapore, at 5 credits per search page and 1 per product page, and failed requests are free.
How Lazada Singapore structures its product data: Lazada Singapore data guide.
Fields you get
Every Lazada Singapore product comes back in these fields; a field is null when the page doesn't show it. Each endpoint below also lists its raw record schema.
| Field | Type | Description |
|---|---|---|
product_id | string or null | Opaque id. Pass it to get_product (or capability "product") to read the product again. |
title | string | Product title as the shop shows it. |
url | string or null | The product page on the shop. |
shop | string or null | The shop’s hostname, without www. |
price | object or null | amount (number), currency (ISO 4217, or null when the shop doesn’t say) and text (the shop’s own wording when it is the same amount, else null). |
original_price | object or null | The price before a discount, in the same shape as price. |
rating | number or null | Average rating, on the shop’s own scale. |
review_count | integer or null | Number of reviews or ratings. |
image_url | string or null | Main product image. |
availability | string or null | in_stock, out_of_stock, or the shop’s own stock wording. |
sponsored | boolean or null | true for an ad the shop marks as sponsored; null when the page doesn’t say. |
How to run it
From your agent, after connecting it once with the setup prompt (agent setup), ask in plain words:
Use datawebot to extract https://www.lazada.sg/catalog/?q=tshirt and give me each product's title, price and link as JSON.From code, send one request with your API key. The answer has the same shape for every shop; if it says "status": "working", read it again with GET /v1/requests/{id}.
curl https://api.datawebot.com/v1/requests \
-H "Authorization: Bearer $DATAWEBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"capability":"endpoint","endpoint":"lazada_sg.search_items","url":"https://www.lazada.sg/catalog/?q=tshirt","max_pages":1,"format":"structured"}'Search
Lazada Singapore keyword search: up to 40 products per page in Lazada's order, max_pages 1 to 5 (default 1). Price, original price and currency, stock flag, rating, review and sold counts, brand, shop, location and sponsored flag per product. No filters or sorting.
- ID
lazada_sg.search_items- Version
1- Price
- 5 credits / page
- State
- Available
- Typical time
- About 120 s (estimate)
What it does
Reads one search results page (or up to the page limit) and returns one record per product card, in page order. Works on lazada.sg; other hosts are rejected before anything runs.
Input
One page URL per request, shaped like https://www.lazada.sg/catalog/?q=tshirt, plus these bounded parameters.
| Parameter | Type | Allowed | Default | Set in /v1/requests |
|---|---|---|---|---|
max_pages | integer | 1–5 | 1 | max_pages |
Price
5 credits / page. With max_pages up to 5, a request costs at most 25 credits. Failed requests are free; a page that loaded but had nothing on it still costs credits. Set max_credits to refuse anything dearer before it runs.
Output
The default, "format": "structured". Every shop answers in the same fields, mapped from the page to the product_summary@1 schema. Fields are null when the page doesn't show them, and a record that can't be mapped is read best-effort from its raw fields. Products are in products, up to 50 a page; follow next_cursor with GET /v1/requests/{id} (MCP: get_results).
| Field | Type | Description |
|---|---|---|
product_id | string or null | Opaque id. Pass it to get_product (or capability "product") to read the product again. |
title | string | Product title as the shop shows it. |
url | string or null | The product page on the shop. |
shop | string or null | The shop’s hostname, without www. |
price | object or null | amount (number), currency (ISO 4217, or null when the shop doesn’t say) and text (the shop’s own wording when it is the same amount, else null). |
original_price | object or null | The price before a discount, in the same shape as price. |
rating | number or null | Average rating, on the shop’s own scale. |
review_count | integer or null | Number of reviews or ratings. |
image_url | string or null | Main product image. |
availability | string or null | in_stock, out_of_stock, or the shop’s own stock wording. |
sponsored | boolean or null | true for an ad the shop marks as sponsored; null when the page doesn’t say. |
{
"request_id": "string",
"status": "done",
"products": [
{
"product_id": "string or null",
"title": "string",
"url": "string or null",
"shop": "string or null",
"price": {
"amount": "number",
"currency": "string or null",
"text": "string or null"
},
"original_price": {
"amount": "number",
"currency": "string or null",
"text": "string or null"
},
"rating": "number or null",
"review_count": "integer or null",
"image_url": "string or null",
"availability": "string or null",
"sponsored": "boolean or null"
}
],
"next_cursor": "string or null",
"meta": {
"as_of": "date-time",
"country": "string",
"credits_used": "integer",
"credits_left": "integer"
}
}Over the Jobs API, GET /v1/jobs/{id}/results?format=structured returns the full product_summary@1 records.
With "format": "raw", the answer keeps the structured fields and adds raw: this endpoint's own records, unchanged, one per item, in the schema below. It is the data the endpoint extracted from the page, not the page's HTML. Same price as structured.
| Field | Type | Description |
|---|---|---|
product_id | string required | Lazada item ID (the i<item id> in the product URL) |
item_id | string required | Pattern ^[1-9][0-9]{0,19}$ |
sku_id | string or null required | The card's default SKU |
shop_id | string or null required | Pattern ^[1-9][0-9]{0,19}$ |
seller_id | string or null required | Lazada's seller (supplier) ID |
market | "id" | "my" | "sg" | "th" | "ph" | "vn" required | — |
marketplace | "lazada.co.id" | "lazada.com.my" | "lazada.sg" | "lazada.co.th" | "lazada.com.ph" | "lazada.vn" required | The market's domain |
url | string required | Canonical product URL on the market host, without query |
title | string required | — |
image_url | string or null required | Pattern ^https:// |
currency | "IDR" | "MYR" | "SGD" | "THB" | "PHP" | "VND" required | The market's currency: Lazada lists every price in it |
price | number or null required | Current price as Lazada sends it, a decimal amount in the currency |
original_price | number or null required | Price before discount as Lazada sends it (may equal price) |
in_stock | boolean or null required | — |
rating | number or null required | Average stars out of 5; null when not rated yet |
review_count | integer or null required | Minimum 0 |
sold_count | integer or null required | Sold count as Lazada sends it |
sold_count_capped | boolean or null required | Lazada's exceedSoldCount: the sold count is a capped display value |
location | string or null required | Seller location as shown |
brand_id | string or null required | Pattern ^[1-9][0-9]{0,19}$ |
brand_name | string or null required | As sent; Lazada uses "No Brand" for unbranded products |
category_id | string or null required | Pattern ^[1-9][0-9]{0,19}$ |
lazmall | boolean or null required | LazMall product |
laz_global | boolean or null required | LazGlobal (cross-border) product |
free_shipping | boolean or null required | — |
sponsored | boolean or null required | Lazada's isSponsored flag |
is_ad | boolean or null required | Lazada's isAd flag as sent; true for most cards in real results, so not evidence of an ad |
position | integer required | 1-based rank among the kept cards, in Lazada's order |
page | integer required | (position - 1) // 40 + 1: Lazada pages hold 40 cards |
{
"product_id": "string",
"item_id": "string",
"sku_id": "string or null",
"shop_id": "string or null",
"seller_id": "string or null",
"market": "id | my | sg | th | ph | vn",
"marketplace": "lazada.co.id | lazada.com.my | lazada.sg | lazada.co.th | lazada.com.ph | lazada.vn",
"url": "string",
"title": "string",
"image_url": "string or null",
"currency": "IDR | MYR | SGD | THB | PHP | VND",
"price": "number or null",
"original_price": "number or null",
"in_stock": "boolean or null",
"rating": "number or null",
"review_count": "integer or null",
"sold_count": "integer or null",
"sold_count_capped": "boolean or null",
"location": "string or null",
"brand_id": "string or null",
"brand_name": "string or null",
"category_id": "string or null",
"lazmall": "boolean or null",
"laz_global": "boolean or null",
"free_shipping": "boolean or null",
"sponsored": "boolean or null",
"is_ad": "boolean or null",
"position": "integer",
"page": "integer"
}Raw needs this endpoint: a search with format: "raw" doesn't fall back to shopping search, and answers raw_unavailable where no endpoint can run. Over the Jobs API, results are raw by default; format=both gives each raw record with its structured form.
Request
Run exactly this endpoint with capability: "endpoint"; there is no fallback, and a failed run is free. Set format to "raw" for the raw records too. For a keyword instead of a URL, search_products with this shop as site builds the search URL, tries the shop's endpoint first and then shopping search.
curl https://api.datawebot.com/v1/requests \
-H "Authorization: Bearer $DATAWEBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"capability":"endpoint","endpoint":"lazada_sg.search_items","url":"https://www.lazada.sg/catalog/?q=tshirt","max_pages":1,"format":"structured"}'submit_job {
"endpoint": "lazada_sg.search_items",
"url": "https://www.lazada.sg/catalog/?q=tshirt",
"max_pages": 1,
"format": "structured"
}If the answer says "status": "working", read it again with GET /v1/requests/{id} (MCP: get_results) after check_after_seconds.
Product details
Lazada Singapore product page: title, description, images, brand, category, seller and shop, price, original price and currency, stock, rating breakdown and review count, and every variant (SKU) with its options, price and stock.
- ID
lazada_sg.product_details- Version
1- Price
- 1 credit / page
- State
- Available
- Typical time
- About 45 s (estimate)
What it does
Reads one product page and returns that product. Works on lazada.sg; other hosts are rejected before anything runs.
Input
One page URL per request, shaped like https://www.lazada.sg/products/pdp-i3428514916.html.
Price
1 credit / page. Failed requests are free; a page that loaded but had nothing on it still costs credits. Set max_credits to refuse anything dearer before it runs.
Output
The default, "format": "structured". Every shop answers in the same fields, mapped from the page to the product@1 schema. Fields are null when the page doesn't show them, and a record that can't be mapped is read best-effort from its raw fields. The product is in product.
| Field | Type | Description |
|---|---|---|
product_id | string or null | Opaque id. Pass it to get_product (or capability "product") to read the product again. |
title | string | Product title as the shop shows it. |
url | string or null | The product page on the shop. |
shop | string or null | The shop’s hostname, without www. |
price | object or null | amount (number), currency (ISO 4217, or null when the shop doesn’t say) and text (the shop’s own wording when it is the same amount, else null). |
original_price | object or null | The price before a discount, in the same shape as price. |
rating | number or null | Average rating, on the shop’s own scale. |
review_count | integer or null | Number of reviews or ratings. |
image_url | string or null | Main product image. |
availability | string or null | in_stock, out_of_stock, or the shop’s own stock wording. |
sponsored | boolean or null | true for an ad the shop marks as sponsored; null when the page doesn’t say. |
product.details, when the shop's page maps to product@1:
| Field | Type | Description |
|---|---|---|
brand | string or null | Brand as the page names it. |
category_path | array of strings | Breadcrumb categories, top first. |
description | string or null | Plain-text description. |
feature_bullets | array of strings | Listed features. |
price_min, price_max | number or null | Lowest and highest variant price. |
discount_label | string or null | Discount wording, such as "-20%". |
stock | integer or null | Units in stock, when the page shows a number. |
sold_count, sold_count_basis | integer or null; "total", "monthly" or null | Units sold, and whether that is a total or per month. |
identifiers | array of {type, value} | asin, parent_asin, walmart_item_id, gtin, mpn, isbn or source_sku. |
specs_raw | array of {name, value} | The specification table as shown. |
images, image_count | array of {url, alt}; integer | Every product image. |
option_names | array of strings | Option names such as Size or Colour. |
variants, variant_count | array (100 per answer; next_cursor reads the rest); integer or null | Each variant: id, name, options, sku, final_price, price_before_discount, discount_label, available, stock, image_url. |
seller | object or null | id, name, url and type (official or marketplace). |
rating_scale | number or null | The top of the rating scale, such as 5. |
warnings | array of strings | Fields the page didn’t give, such as currency_missing. |
{
"request_id": "string",
"status": "done",
"product": {
"product_id": "string or null",
"title": "string",
"url": "string or null",
"shop": "string or null",
"price": {
"amount": "number",
"currency": "string or null",
"text": "string or null"
},
"original_price": {
"amount": "number",
"currency": "string or null",
"text": "string or null"
},
"rating": "number or null",
"review_count": "integer or null",
"image_url": "string or null",
"availability": "string or null",
"sponsored": "boolean or null",
"details": {
"brand": "string or null",
"variants": [
"…"
],
"…": "…"
}
},
"meta": {
"as_of": "date-time",
"country": "string",
"credits_used": "integer",
"credits_left": "integer"
}
}Over the Jobs API, GET /v1/jobs/{id}/results?format=structured returns the full product@1 records.
With "format": "raw", the answer keeps the structured fields and adds raw: this endpoint's own records, unchanged, one per item, in the schema below. It is the data the endpoint extracted from the page, not the page's HTML. Same price as structured.
| Field | Type | Description |
|---|---|---|
product_id | string required | Lazada item ID (the i<item id> in the product URL) |
item_id | string required | Pattern ^[1-9][0-9]{0,19}$ |
sku_id | string or null required | The default SKU the price and stock are for |
seller_id | string or null required | Pattern ^[1-9][0-9]{0,19}$ |
shop_id | string or null required | Pattern ^[1-9][0-9]{0,19}$ |
seller_name | string or null required | — |
seller_slug | string or null required | The shop's slug, as in /shop/<slug>/ |
market | "id" | "my" | "sg" | "th" | "ph" | "vn" required | — |
marketplace | "lazada.co.id" | "lazada.com.my" | "lazada.sg" | "lazada.co.th" | "lazada.com.ph" | "lazada.vn" required | The market's domain |
url | string required | The requested product URL, canonical |
title | string required | — |
description_html | string or null required | The description HTML as sent; null when empty or longer than 100,000 characters |
main_image_url | string or null required | Pattern ^https:// |
images | array required | — |
category_id | string or null required | Pattern ^[1-9][0-9]{0,19}$ |
brand_id | string or null required | Pattern ^[1-9][0-9]{0,19}$ |
brand_name | string or null required | As sent; Lazada uses "No Brand" for unbranded products |
currency | "IDR" | "MYR" | "SGD" | "THB" | "PHP" | "VND" required | The market's currency: Lazada lists every price in it |
price | number or null required | Current price as Lazada sends it, a decimal amount in the currency |
original_price | number or null required | Price before discount as Lazada sends it (may equal price) |
stock | integer or null required | The default SKU's stock; null when Lazada hides it |
in_stock | boolean or null required | — |
rating | number or null required | Average stars out of 5; null when not rated yet |
rating_count | integer or null required | Minimum 0 |
review_count | integer or null required | Minimum 0 |
rating_count_by_score | object or null required | — |
option_names | array required | — |
variant_count | integer required | Every SKU, also beyond the 500 listed |
variants | array required | — |
{
"product_id": "string",
"item_id": "string",
"sku_id": "string or null",
"seller_id": "string or null",
"shop_id": "string or null",
"seller_name": "string or null",
"seller_slug": "string or null",
"market": "id | my | sg | th | ph | vn",
"marketplace": "lazada.co.id | lazada.com.my | lazada.sg | lazada.co.th | lazada.com.ph | lazada.vn",
"url": "string",
"title": "string",
"description_html": "string or null",
"main_image_url": "string or null",
"images": "array",
"category_id": "string or null",
"brand_id": "string or null",
"brand_name": "string or null",
"currency": "IDR | MYR | SGD | THB | PHP | VND",
"price": "number or null",
"original_price": "number or null",
"stock": "integer or null",
"in_stock": "boolean or null",
"rating": "number or null",
"rating_count": "integer or null",
"review_count": "integer or null",
"rating_count_by_score": "object or null",
"option_names": "array",
"variant_count": "integer",
"variants": "array"
}Over the Jobs API, results are raw by default; format=both gives each raw record with its structured form.
Request
Read a product page with capability: "product"; it runs this endpoint for the page's shop. Set format to "raw" for the raw records too.
curl https://api.datawebot.com/v1/requests \
-H "Authorization: Bearer $DATAWEBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"capability":"product","url":"https://www.lazada.sg/products/pdp-i3428514916.html","format":"structured"}'get_product {
"url": "https://www.lazada.sg/products/pdp-i3428514916.html",
"format": "structured"
}If the answer says "status": "working", read it again with GET /v1/requests/{id} (MCP: get_results) after check_after_seconds.
Limits
- One page URL per request, on lazada.sg only; other hosts are rejected before anything runs.
- A search or catalogue request reads at most 5 pages (
max_pages). - Prices and stock are read when the request runs (
meta.as_of); datawebot keeps no price history, so schedule and store repeat reads yourself. - Fields the page doesn't show come back null; nothing is filled in or guessed.
- Up to 30 requests a minute per account.
Questions about the Lazada Singapore scraper API
Does Lazada Singapore have an official API?
datawebot does not use one. It reads Lazada Singapore's pages and returns them as structured JSON, so you need no Lazada Singapore developer account or partner key. Whether Lazada Singapore offers its own API, and on what terms, is for Lazada Singapore to say.
Can I scrape Lazada Singapore with Python?
Yes. Send the POST /v1/requests call shown on this page from Python with any HTTP client, such as requests or httpx: the same JSON body, with your API key in the Authorization header. The products come back in the answer's products field (product for a product page).
Is it legal to scrape Lazada Singapore?
It depends on where you are, Lazada Singapore's terms and what you do with the data. You stay responsible for how you use what datawebot returns. This is not legal advice; read our guide to robots.txt and legal considerations, and ask a lawyer about your case.
What does a Lazada Singapore scraper API call cost?
5 credits per search page and 1 per product page. Failed requests are free; a page that loaded but had nothing on it still costs credits. Every account starts with 200 free credits, and credit packs start at 10,000 credits for $10, with no subscription.
Start with 200 free credits
Connect your agent with one setup prompt, or create an API key, and run Lazada Singapore requests right away. No card and no subscription.
Connect your agent See pricing