This endpoint will retrieve Walmart product list for a specified product category.
Copy import fetch from 'node-fetch';
const options = {
method: 'POST',
body: JSON.stringify({
apiKey: 'APIKEY',
category: 'CATEGORY',
tld: 'TLD',
output_format: 'FORMAT',
page: 'PAGE',
callback: {
type: 'webhook',
url: 'CALLBACK' }}),
headers: {
'Content-Type': 'application/json',
},
}
fetch('https://async.scraperapi.com/structured/walmart/category', options)
.then(response => {
response.text().then(text => console.log(text));
})
.catch(error => {
console.log(error)
})
Copy import fetch from 'node-fetch';
const options = {
method: 'POST',
body: JSON.stringify({
apiKey: 'APIKEY',
categories: ['CATEGORY1','CATEGORY2'],
tld: 'TLD',
output_format: 'FORMAT',
page: 'PAGE',
callback: {
type: 'webhook',
url: 'CALLBACK' }}),
headers: {
'Content-Type': 'application/json',
},
}
fetch('https://async.scraperapi.com/structured/walmart/category', options)
.then(response => {
response.text().then(text => console.log(text));
})
.catch(error => {
console.log(error)
})
Copy {
"id": "ce93d237-4595-4508-8d81-f94365fc542c",
"status": "running",
"statusUrl": "https://async.scraperapi.com/jobs/ce93d237-4595-4508-8d81-f94365fc542c",
"category": "3944_1089430_37807",
}
Copy [
{
"id": "ec4a6153-368c-440e-8c02-6c302a661db9",
"status": "running",
"statusUrl": "https://async.scraperapi.com/jobs/ec4a6153-368c-440e-8c02-6c302a661db9",
"category": "3920"
},
{
"id": "8a024945-f74a-4327-80e3-12f26c737ec6",
"status": "running",
"statusUrl": "https://async.scraperapi.com/jobs/8a024945-f74a-4327-80e3-12f26c737ec6",
"category": "3944_1089430_37807"
}
]
After the job(s) finish, you will find the result under the response key in the response JSON object. The structure is the same as in the corresponding SYNC data endpoint.