Docs
Log in

API usage

Add &scraper=walmart-serp to a Crawling API request. URL-encode the target URL in the url parameter.

curl 'https://api.crawlbase.com/?token=YOUR_TOKEN' \
  --data-urlencode 'url=https://www.walmart.com/search?q=samsung+galaxy' \
  --data-urlencode 'scraper=walmart-serp' -G
from crawlbase import CrawlingAPI

api = CrawlingAPI({'token': 'YOUR_TOKEN'})
res = api.get(
    'https://www.walmart.com/search?q=samsung+galaxy',
    {'scraper': 'walmart-serp'}
)

import json
data = json.loads(res['body'])
const { CrawlingAPI } = require('crawlbase');
const api = new CrawlingAPI({ token: 'YOUR_TOKEN' });

const res = await api.get(
  'https://www.walmart.com/search?q=samsung+galaxy',
  { scraper: 'walmart-serp' }
);
const data = JSON.parse(res.body);
require 'crawlbase'
api = Crawlbase::API.new(token: 'YOUR_TOKEN')

res = api.get('https://www.walmart.com/search?q=samsung+galaxy', scraper: 'walmart-serp')
data = JSON.parse(res.body)

Example input URL

The URL passed in the url parameter (URL-decoded for readability):

https://www.walmart.com/search?q=samsung+galaxy

Response shape

JSON response body. Field types may be null when the source page omits the value.

query
string
Search query.
total_results
integer | null
Total products.
products
array
Product summaries.
products[].product_id
string
Product ID.
products[].title
string
Title.
products[].price
string
Current price.
products[].rating
number
Rating.
products[].reviews_count
integer
Reviews.
products[].image_url
string
Thumbnail.
products[].sponsored
boolean
Sponsored result flag.

Sample response

{
  "query": "samsung galaxy",
  "products": [
    {
      "product_id": "5101854842",
      "title": "Samsung Galaxy S24 128GB",
      "price": "$799.99",
      "rating": 4.6,
      "reviews_count": 1240,
      "sponsored": false
    }
  ]
}