Lazada Search
curl --request GET \
--url https://api.example.com/lazada/searchimport requests
url = "https://api.example.com/lazada/search"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/lazada/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/lazada/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/lazada/search"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/lazada/search")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/lazada/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyLazada
Lazada Search
Search Lazada products across Southeast Asian markets with pricing, ratings, and seller details
GET
/
lazada
/
search
Lazada Search
curl --request GET \
--url https://api.example.com/lazada/searchimport requests
url = "https://api.example.com/lazada/search"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/lazada/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/lazada/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/lazada/search"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/lazada/search")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/lazada/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyOverview
The/lazada/search endpoint searches Lazada’s e-commerce platform across Southeast Asian markets (Singapore, Malaysia, Thailand, Philippines, Indonesia, Vietnam). It returns structured product data including pricing, ratings, and seller information.
Parameters
Query Parameters
string
required
The product search query
string
default:"www.lazada.sg"
Lazada domain to search:
www.lazada.sg(Singapore)www.lazada.com.my(Malaysia)www.lazada.co.th(Thailand)www.lazada.com.ph(Philippines)www.lazada.co.id(Indonesia)www.lazada.vn(Vietnam)
number
default:"1"
Page number for pagination (starts at 1)
string
Sort order for results:
relevance- Most relevant (default)priceasc- Price: Low to Highpricedesc- Price: High to Lowsales- Best sellingrating- Highest rated
number
Minimum price filter
number
Maximum price filter
boolean
default:"false"
Filter for LazMall (official store) products only
string
Category filter (e.g.,
shop-building-toys, electronics)string
Location filter code (e.g.,
R536780 for Singapore)number
Minimum rating filter (0-5)
string
default:"sg"
Country code for proxy location (e.g.,
sg, my, th, ph, id, vn)boolean
default:"false"
Return raw JSON response instead of parsed results
boolean
default:"false"
Async mode - returns job ID immediately for later retrieval
Example Requests
Basic Product Search
curl -X GET "https://api.scrapengine.io/api/v1/lazada/search?q=smartphone&page=1" \
-H "Authorization: Bearer YOUR_API_KEY"
const params = new URLSearchParams({
q: "smartphone",
page: "1",
});
const response = await fetch(
`https://api.scrapengine.io/api/v1/lazada/search?${params}`,
{
headers: {
Authorization: "Bearer YOUR_API_KEY",
},
}
);
const data = await response.json();
console.log(data);
import requests
url = "https://api.scrapengine.io/api/v1/lazada/search"
headers = {"Authorization": "Bearer YOUR_API_KEY"}
params = {
"q": "smartphone",
"page": 1
}
response = requests.get(url, headers=headers, params=params)
print(response.json())
Search with Filters
curl -X GET "https://api.scrapengine.io/api/v1/lazada/search?q=headphones&priceMin=50&priceMax=200&lazMall=true&sortBy=rating" \
-H "Authorization: Bearer YOUR_API_KEY"
const params = new URLSearchParams({
q: "headphones",
priceMin: "50",
priceMax: "200",
lazMall: "true",
sortBy: "rating",
});
const response = await fetch(
`https://api.scrapengine.io/api/v1/lazada/search?${params}`,
{
headers: {
Authorization: "Bearer YOUR_API_KEY",
},
}
);
const data = await response.json();
console.log(data);
import requests
url = "https://api.scrapengine.io/api/v1/lazada/search"
headers = {"Authorization": "Bearer YOUR_API_KEY"}
params = {
"q": "headphones",
"priceMin": 50,
"priceMax": 200,
"lazMall": True,
"sortBy": "rating"
}
response = requests.get(url, headers=headers, params=params)
print(response.json())
Search on Different Lazada Market
curl -X GET "https://api.scrapengine.io/api/v1/lazada/search?q=laptop&lazadaDomain=www.lazada.com.my&country=my" \
-H "Authorization: Bearer YOUR_API_KEY"
const params = new URLSearchParams({
q: "laptop",
lazadaDomain: "www.lazada.com.my",
country: "my",
});
const response = await fetch(
`https://api.scrapengine.io/api/v1/lazada/search?${params}`,
{
headers: {
Authorization: "Bearer YOUR_API_KEY",
},
}
);
const data = await response.json();
console.log(data);
import requests
url = "https://api.scrapengine.io/api/v1/lazada/search"
headers = {"Authorization": "Bearer YOUR_API_KEY"}
params = {
"q": "laptop",
"lazadaDomain": "www.lazada.com.my",
"country": "my"
}
response = requests.get(url, headers=headers, params=params)
print(response.json())
Response
Success Response (200)
Returns parsed product search results:{
"searchInfo": {
"query": "smartphone",
"totalResults": 5420,
"page": 1,
"market": "Singapore"
},
"products": [
{
"position": 1,
"itemId": "2145678901",
"title": "Samsung Galaxy S24 Ultra 5G Smartphone",
"link": "https://www.lazada.sg/products/samsung-galaxy-s24-ultra-i2145678901.html",
"image": "https://sg-live.slatic.net/p/abc123.jpg",
"price": {
"current": 1698.0,
"currency": "SGD",
"original": 1898.0,
"discountPercent": 11
},
"rating": {
"value": 4.9,
"count": 2341
},
"sold": 5230,
"seller": {
"name": "Samsung Official Store",
"isLazMall": true,
"rating": 4.8
},
"freeShipping": true,
"location": "Singapore"
},
{
"position": 2,
"itemId": "2098765432",
"title": "iPhone 15 Pro Max 256GB",
"link": "https://www.lazada.sg/products/iphone-15-pro-max-i2098765432.html",
"image": "https://sg-live.slatic.net/p/xyz789.jpg",
"price": {
"current": 1899.0,
"currency": "SGD"
},
"rating": {
"value": 4.8,
"count": 1876
},
"sold": 3120,
"seller": {
"name": "Apple Flagship Store",
"isLazMall": true,
"rating": 4.9
},
"freeShipping": true,
"location": "Singapore"
}
],
"pagination": {
"currentPage": 1,
"totalPages": 136,
"nextPage": "https://api.scrapengine.io/api/v1/lazada/search?q=smartphone&page=2"
}
}
Response Headers
| Header | Description |
|---|---|
x-remaining-credits | Number of API credits remaining |
x-trace-id | Unique identifier for the request |
Error Responses
| Status | Description |
|---|---|
400 | Bad Request - Invalid query parameters |
401 | Unauthorized - Invalid or missing API key |
500 | Internal Server Error |
Use Cases
- Southeast Asian market research: Analyze product trends across SEA markets
- Price monitoring: Track product prices across different Lazada markets
- Competitor analysis: Monitor competitor product listings and pricing
- LazMall monitoring: Track official store products and promotions
- Cross-market comparison: Compare prices across Singapore, Malaysia, Thailand, etc.
- Seller research: Analyze top sellers and their product offerings
Was this page helpful?