Walmart Category API (Async)

This endpoint will retrieve Walmart product list for a specified product category.

Single query request:

import requests

url = "https://async.scraperapi.com/structured/walmart/category"
headers = {
    "Content-Type": "application/json"
}
data = {
    "apiKey": APIKEY,
    "category": CATEGORY,
    "page": PAGE,
    "tld": TLD,
    "output_format": FORMAT,
    "callback": {
        "type": "webhook",
        "url": "YYYY"
    }
}

response = requests.post(url, json=data, headers=headers)
print(response.text)

Multiple query request:

import requests

url = "https://async.scraperapi.com/structured/walmart/category"
headers = {
    "Content-Type": "application/json"
}
data = {
    "apiKey": APIKEY,
    "page": PAGE,
    "tld": TLD,
    "output_format": FORMAT,
    "categories": [CATEGORY1, CATEGORY2],
    "callback": {
        "type": "webhook",
        "url": "YYYY"
    }
}

response = requests.post(url, json=data, headers=headers)
print(response.text)

Sample Response

For single query requests:

{
  "id": "ce93d237-4595-4508-8d81-f94365fc542c",
  "status": "running",
  "statusUrl": "https://async.scraperapi.com/jobs/ce93d237-4595-4508-8d81-f94365fc542c",
  "category": "3944_1089430_37807",
}

For multiple query requests:

[
  {
    "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.

Last updated