Track Prices
API Playground is ScraperAPI's request builder for testing and configuring scraping requests. In this tutorial, you will use the API Playground to monitor prices across Amazon and Walmart. By the end, you will have a scheduled batch job that returns structured JSON with pricing and availability for every product you monitor, so you can detect price changes and stock issues before they affect your margins.
Step 1: Configure the Amazon product endpoint
Open the API Playground from the left sidebar.
Select scraping method: Structured Data Endpoints.
In the endpoint dropdown, select Amazon Product.
Enter ASIN
B0BFC7WQ6R. Set Country code tous.Review the Summary panel on the right to understand the cost of the job before you run it.
Scroll down to the generated code and click Try it.
The Playground runs the request and shows the full structured response inline. Key fields include name, pricing, list_price, availability_status, average_rating, total_reviews, feature_bullets, images, sold_by, and per-star rating percentages.
Use the language dropdown to switch to Python, Node.js, PHP, Ruby, or Java. Click Copy to clipboard to run the request in your own terminal instead.
Step 2: Additional options and filters
Use Additional options & filters to fine-tune your request. The Playground adds the relevant parameters to the generated code automatically.
Country code adds
country_code. Targets a specific country's Amazon or Walmart results.Domain adds
domain. Sets the Amazon domain (e.g.co.uk,com.au).Output format adds
output_format. Returns results asjson(default) orcsv.Activate retrying 404 responses adds
retry_404. Retries requests that return a 404 instead of treating them as final.
Some parameters increase the cost per request. Check the Summary panel before committing to a configuration at scale.
Step 3: Add Walmart
Back in the Playground, switch the endpoint dropdown to Walmart product.
Enter a Walmart product ID — for example
946796118.Click Try it.
Once you have reviewed both responses, you are ready to batch across your full product list.
Step 4: Submit a batch
For a full product list across retailers, switch the scraping method to Async in the Playground. Paste your ASINs and product IDs as full structured endpoint URLs, one per line:
The response returns an array, one object per URL, each with an id and a statusUrl.
Step 5: Poll for results
Async jobs run in the background. Use the statusUrl from the batch response to check progress. When status is finished, the response.body field contains your scraped data.
Step 6: Deliver to cloud storage and skip polling
Instead of polling, configure a destination in your dashboard under Destinations and add a callback to your batch request. Results land in your bucket automatically when each job finishes.
Step 7: Schedule daily runs
To run your batch automatically on a recurring schedule, add it to your crontab. The example below runs every day at 6am.
Prefer a no-code setup? Track prices with DataPipeline instead.
More API tutorials
Last updated

