Tracking product prices across Amazon and Walmart is critical for e-commerce sellers, dropshippers, and competitive intelligence teams. Traditional scraping breaks constantly as retailers update their anti-bot defenses. Scavio provides structured API endpoints for both Amazon and Walmart that return real-time pricing, availability, ratings, and seller data in clean JSON. This page shows how to build a price monitoring pipeline with a few lines of code.
API Endpoint
POST https://api.scavio.dev/api/v1/amazon/searchPython Example
import requests
API_KEY = "YOUR_API_KEY"
# Track price on Amazon
response = requests.post(
"https://api.scavio.dev/api/v1/amazon/search",
headers={
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json",
},
json={"query": "sony wh-1000xm5", "country_code": "us"},
)
data = response.json()
for product in data.get("products", []):
print(f"{product['title']}")
print(f" Price: {product.get('price', 'N/A')}")
print(f" Rating: {product.get('rating', 'N/A')}")
print()
# Track price on Walmart
walmart_res = requests.post(
"https://api.scavio.dev/api/v1/walmart/search",
headers={
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json",
},
json={"query": "sony wh-1000xm5"},
)
walmart_data = walmart_res.json()
for product in walmart_data.get("products", []):
print(f"{product['title']} - {product.get('price', 'N/A')}")JavaScript Example
const API_KEY = "YOUR_API_KEY";
// Track price on Amazon
const amazonRes = await fetch("https://api.scavio.dev/api/v1/amazon/search", {
method: "POST",
headers: {
Authorization: `Bearer ${API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ query: "sony wh-1000xm5", country_code: "us" }),
});
const amazonData = await amazonRes.json();
for (const product of amazonData.products || []) {
console.log(product.title);
console.log(` Price: ${product.price ?? "N/A"}`);
console.log(` Rating: ${product.rating ?? "N/A"}`);
}
// Track price on Walmart
const walmartRes = await fetch("https://api.scavio.dev/api/v1/walmart/search", {
method: "POST",
headers: {
Authorization: `Bearer ${API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ query: "sony wh-1000xm5" }),
});
const walmartData = await walmartRes.json();
for (const product of walmartData.products || []) {
console.log(`${product.title} - ${product.price ?? "N/A"}`);
}Expected Response
{
"search_metadata": {
"status": "success",
"query": "sony wh-1000xm5",
"country_code": "us"
},
"products": [
{
"position": 1,
"title": "Sony WH-1000XM5 Wireless Noise Cancelling Headphones",
"price": "$278.00",
"original_price": "$399.99",
"rating": 4.6,
"reviews_count": 12847,
"availability": "In Stock",
"asin": "B0BX2L8PBS",
"image": "https://m.media-amazon.com/images/I/51aX234gYnL.jpg"
},
{
"position": 2,
"title": "Sony WH-1000XM5 - Midnight Blue",
"price": "$298.00",
"rating": 4.6,
"reviews_count": 12847,
"availability": "In Stock",
"asin": "B0BX2LRGWN"
}
]
}Benefits
- Track prices across Amazon and Walmart from a single API
- Structured JSON with price, availability, ratings, and seller data
- No proxy management or anti-bot workarounds needed
- Country-specific pricing with the country_code parameter
- Historical price tracking when you store responses over time
- Works for any product category on both marketplaces