Co APIlazada.co.th ↗
Search Lazada Thailand products, browse categories, and fetch full product details including prices, SKUs, ratings, and seller info via a simple REST API.
What is the Co API?
The Lazada Thailand API provides 3 endpoints to search products by keyword, browse category listings, and retrieve detailed product data from lazada.co.th. The search_products endpoint returns paginated results with pricing, discount, rating score, review count, and seller name. get_product_details goes deeper — returning SKU variants, image galleries, brand metadata, and HTML product highlights using an item ID from search results.
curl -X GET 'https://api.parse.bot/scraper/775da6b3-ac73-4d3c-bfe5-553678117381/search_products?page=1&query=laptop' \ -H 'X-API-Key: $PARSE_API_KEY'
Typed, relational, agent-ready
A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.
- Fully typed · autocompletes
- Objects link to objects
- Typed errors & pagination
Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:
uv add parse-sdk uv run parse init uv run parse add --marketplace lazada-co-th-api
uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.
from parse_apis.lazada_thailand_api import Lazada, Product, ProductDetail, Category
lazada = Lazada()
# Search for laptops
for product in lazada.products.search(query="laptop", limit=5):
print(product.name, product.price_show, product.discount, product.rating_score)
# Browse a category by constructing it
tablets = lazada.category("shop-tablet")
for product in tablets.list_products(limit=3):
print(product.name, product.price_show, product.seller_name, product.in_stock)
# Get full product details
detail = lazada.productdetails.get(item_id="5472306858")
print(detail.title, detail.item_id, detail.highlights)
Full-text search over Lazada Thailand product listings. Returns up to 40 products per page with name, price, discount, rating, review count, seller info, images, and stock status. Paginated by page number. total_results reports the server-side count of matches for the query.
| Param | Type | Description |
|---|---|---|
| page | integer | Page number for pagination (1-based) |
| queryrequired | string | Search keyword (e.g. 'laptop', 'smartphone', 'shoes') |
{
"type": "object",
"fields": {
"page": "integer, current page number",
"products": "array of product objects with fields: name, itemId, price, priceShow, discount, ratingScore, review, sellerName, image, location, inStock, itemSoldCntShow, brandName, originalPrice",
"total_results": "string representation of total number of results, or null"
},
"sample": {
"data": {
"page": 1,
"products": [
{
"nid": "5472306858",
"name": "[3 Year Warranty +Cod]Fingerprint Unlock Laptop Window 11 Pro 15.6 Inch",
"image": "https://th-live-01.slatic.net/p/2573bd498e2d75b556f078b2d8d99beb.jpg",
"price": "735",
"itemId": "5472306858",
"review": "74",
"inStock": true,
"discount": "29% Off",
"location": "Bangkok",
"brandName": "No Brand",
"priceShow": "฿735.00",
"sellerName": "Halooky Tablet Store",
"ratingScore": "4.973333333333334",
"originalPrice": "1035",
"itemSoldCntShow": "1.0K sold"
}
],
"total_results": "4080"
},
"status": "success"
}
}About the Co API
What the API Covers
The API exposes product data from Lazada Thailand across three focused endpoints. search_products accepts a query string and an optional page integer, returning an array of product objects with fields including name, itemId, price, priceShow, discount, ratingScore, review, sellerName, and image. The total_results field gives a string count of matches for the query. This is the primary entry point for keyword-driven product discovery.
Category Browsing
get_category_listings accepts a category_slug parameter matching the URL path segment on lazada.co.th — for example, shop-tablet. It returns the same product object shape as search results, paginated via the page parameter. Not every category slug returns structured listing data; the endpoint works reliably for known slugs like shop-tablet, so testing your target category slug before building against it is advisable.
Product Detail Extraction
get_product_details takes an item_id (the itemId field from search or category results) and returns a richer data structure. The response includes title, a brand object with name and url, highlights as an HTML string with product specifications, and skuBase with variant properties and a skus array. The skuInfos object maps SKU IDs to objects containing categoryId, image, sellerId, and quantity. The skuGalleries object maps SKU IDs to arrays of image objects with src and type fields, useful for building variant-aware product displays.
The Co API is a managed, monitored endpoint for lazada.co.th — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when lazada.co.th changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.
This isn't an official lazada.co.th API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.
Will this API break when the source site changes?+
Is this an official API from the source site?+
Can I fix or extend this API myself if I need a new endpoint or field?+
What happens if I call an endpoint that has an issue?+
- Track price changes and discount levels across keyword searches on Lazada Thailand
- Build product comparison tools using SKU variant data from
get_product_details - Monitor seller listings by extracting
sellerNameanditemIdfrom search results - Populate a product catalog with images pulled from
skuGalleriesper variant - Research category assortments using
get_category_listingswith known slugs likeshop-tablet - Extract product specifications from the
highlightsHTML field for structured parsing - Aggregate rating scores and review counts across product searches for market research
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does Lazada have an official developer API?+
What does `get_product_details` return beyond what search results include?+
price, ratingScore, sellerName, and a single image. get_product_details adds skuBase with the full variant tree (sizes, colors, etc.), skuInfos with per-SKU quantity and seller mapping, skuGalleries with multiple images per variant, the brand object with brand URL, and highlights as an HTML string containing product specs and feature descriptions.Are there limitations on which category slugs work with `get_category_listings`?+
shop-tablet. Other category slugs may return empty or incomplete product arrays. It is best to validate a slug against the endpoint before relying on it in production.Does the API return seller profile pages, shop ratings, or flash sale data?+
sellerName from search and category results, and sellerId inside skuInfos, but there is no dedicated endpoint for seller profiles, shop-level ratings, or flash sale pricing states. You can fork this API on Parse and revise it to add an endpoint targeting seller or promotion data.Can I retrieve customer review text or individual review details?+
ratingScore and review count fields but does not include individual review content, reviewer names, or review dates. You can fork this API on Parse and revise it to add a review detail endpoint using the itemId returned by search or category results.