Walmart Product API
Scrape Walmart Product data with one API call. Returns full product detail for a Walmart item: title, brand, model, UPC, both descriptions, current and list price, rating with its 1-5 star breakdown, recommended percentage, image gallery, specifications, availability, seller, condition, and return-policy window. Accepts either the numeric item id from a walmart.com/ip/ URL or Walmart's alphanumeric catalog id. For this product's written reviews call GET /v1/walmart/reviews with the same id; for every seller offering it, GET /v1/walmart/offers.
Last updated October 2026Maintained by the SocialCrawl team
Returns one Walmart product by id: title, brand, price and list price, rating with its star breakdown, images, specifications, availability, and seller.
Use it when you have a Walmart item id and need full product detail. For written reviews use reviews, and for other sellers use offers.
Searching 69 platforms in parallel
What can you do with the Product API?
The Product endpoint gives you structured Walmart data with computed fields in a single request. No scraping infrastructure to build or maintain.
Example Request
# GET /v1/walmart/product: 5 credits per call. Cache hits are free and failed calls are refunded.
# Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
# --max-time 60: the API's own time limit for this endpoint.
# --retry 3: retries timeouts, 429 and 5xx, honoring Retry-After.
# -o response.json keeps only the final attempt's body.
# One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
IDEMPOTENCY_KEY=$(od -An -N16 -tx1 /dev/urandom | tr -d ' \n')
curl -sS --max-time 60 --retry 3 -o response.json \
-H "x-api-key: YOUR_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
"https://www.socialcrawl.dev/v1/walmart/product?product_id=17835006350&country=US" && cat response.json# GET /v1/walmart/product: 5 credits per call. Cache hits are free and failed calls are refunded.
# Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
import os
import random
import time
import uuid
import requests
API_KEY = os.environ.get("SOCIALCRAWL_API_KEY", "YOUR_API_KEY")
TIMEOUT_S = 60 # the API's own time limit for this endpoint.
MAX_RETRIES = 3
URL = "https://www.socialcrawl.dev/v1/walmart/product"
def backoff(attempt):
# Exponential backoff with jitter: about 1 s, 2 s, then 4 s.
return 2 ** attempt * (0.5 + random.random() / 2)
def socialcrawl(params):
# One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
idempotency_key = str(uuid.uuid4())
for attempt in range(MAX_RETRIES + 1):
try:
res = requests.get(
URL,
params=params,
headers={"x-api-key": API_KEY, "Idempotency-Key": idempotency_key},
timeout=TIMEOUT_S,
)
body = res.json()
except (requests.RequestException, ValueError):
# A timeout, a dropped connection or a non-JSON gateway page: retry with the same key.
if attempt == MAX_RETRIES:
raise
time.sleep(backoff(attempt))
continue
if body["success"]:
return body
error = body["error"]
# Branch on error["type"], never on the message text.
if error["type"] == "RESOURCE_NOT_FOUND":
return None # refunded: nothing to read
retry_after = res.headers.get("Retry-After")
# SERVICE_UNAVAILABLE without Retry-After is a withdrawn endpoint: permanent.
permanent = error["type"] == "SERVICE_UNAVAILABLE" and retry_after is None
if not error.get("retryable") or permanent or attempt == MAX_RETRIES:
raise RuntimeError(f"{error['type']}: {error['message']} (request_id {body['request_id']})")
# Retry-After (seconds) wins; otherwise back off.
time.sleep(float(retry_after) if retry_after else backoff(attempt))
params = {
"product_id": "17835006350",
"country": "US",
}
body = socialcrawl(params)
if body is not None:
print(body["data"])// GET /v1/walmart/product: 5 credits per call. Cache hits are free and failed calls are refunded.
// Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
const API_KEY = process.env.SOCIALCRAWL_API_KEY ?? "YOUR_API_KEY";
const TIMEOUT_MS = 60_000; // the API's own time limit for this endpoint.
const MAX_RETRIES = 3;
type Page = { next_cursor: string | null; has_more: boolean };
type SocialCrawlResponse =
| { success: true; data: any; pagination?: Page; credits_used: number; request_id: string }
| { success: false; error: { type: string; message: string; retryable: boolean }; request_id: string };
const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
// Exponential backoff with jitter: about 1 s, 2 s, then 4 s.
const backoffMs = (attempt: number) => 2 ** attempt * 1000 * (0.5 + Math.random() / 2);
async function socialcrawl(url: URL) {
// One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
const idempotencyKey = crypto.randomUUID();
for (let attempt = 0; ; attempt++) {
let res: Response;
let body: SocialCrawlResponse;
try {
res = await fetch(url, {
headers: {
"x-api-key": API_KEY,
"Idempotency-Key": idempotencyKey,
},
signal: AbortSignal.timeout(TIMEOUT_MS),
});
body = (await res.json()) as SocialCrawlResponse;
} catch (error) {
// A timeout, a dropped connection or a non-JSON gateway page: retry with the same key.
if (attempt >= MAX_RETRIES) throw error;
await sleep(backoffMs(attempt));
continue;
}
if (body.success) return body;
// Branch on error.type, never on the message text.
if (body.error.type === "RESOURCE_NOT_FOUND") return null; // refunded: nothing to read
const retryAfter = res.headers.get("Retry-After");
// SERVICE_UNAVAILABLE without Retry-After is a withdrawn endpoint: permanent.
const permanent = body.error.type === "SERVICE_UNAVAILABLE" && retryAfter === null;
if (!body.error.retryable || permanent || attempt >= MAX_RETRIES) {
throw new Error(`${body.error.type}: ${body.error.message} (request_id ${body.request_id})`);
}
// Retry-After (seconds) wins; otherwise back off.
await sleep(retryAfter ? Number(retryAfter) * 1000 : backoffMs(attempt));
}
}
const url = new URL("https://www.socialcrawl.dev/v1/walmart/product");
url.searchParams.set("product_id", "17835006350");
url.searchParams.set("country", "US");
const body = await socialcrawl(url);
if (body) console.log(body.data);Parameters worth sending
country=USResults for one country.
Parameters
| Parameter | Required | Description |
|---|---|---|
| product_id | Yes | Walmart product id. Either the numeric item id from the product URL (walmart.com/ip/<name>/17835006350) or the alphanumeric catalog id (34J2GQ9D9TFM). Both resolve to the same product. |
| country | No | Walmart marketplace as a two-letter country code: US (walmart.com, default) or CA (walmart.ca). A product id from one marketplace will not resolve in the other. (US | CA) |
What does the Walmart Product API return?
Every response follows one unified schema. Here is a real, unmodified response body, so you can see the exact fields you get back before spending a credit.
Example response
{
"success": true,
"platform": "walmart",
"endpoint": "/v1/walmart/product",
"data": {
"product": {
"id": "17835006350",
"url": "https://www.walmart.com/ip/AirPods-Pro-3/17835006350",
"title": "Apple AirPods Pro 3",
"description": "WORLD’S BEST IN-EAR ACTIVE NOISE CANCELLATION —Reduces up to 2x more unwanted noise than AirPods Pro 2 so you can stay fully immersed in the moment.1. BREAKTHROUGH AUDIO PERFORMANCE —Experience breathtaking, three-dimensional audio with AirPods Pro 3. A new acoustic architecture delivers transformed bass, detailed clarity so you can hear every instrument, and stunningly vivid vocals.. HEART RATE SENSING —Built-in heart rate sensing lets you track your heart rate and calories burned for up to 50 different workout types.2 With iPhone, you have access to the Move ring, step count, and the new Workout Buddy,6 powered by Apple Intelligence.7. LIVE TRANSLATION —Communicate across languages using Live Translation,3 enabled by Apple Intelligence.7. EXTENDED BATTERY LIFE —Get up to 8 hours of listening time with Active Noise Cancellation on a single charge.8 Or up to 10 hours in Transparency using the Hearing Aid feature.9. SECURE IN-EAR FIT —All-new ear tips, now in five sizes, provide a more secure, personalized fit and better audio performance across the board.4. HEARING HEALTH —Take a Hearing Test in the comfort of your home.10 Use the Hearing Aid feature,11 now with automatic Conversation Boost, for clearer communication.12 And active Hearing Protection helps prevent exposure to loud environmental noise.13. PERSONALIZED LISTENING —Next-generation Adaptive EQ customizes a sound signature for your unique ear geometry and fit. And inward-facing microphones measure what you’re hearing for real-time adjustments.. MAGICAL EXPERIENCE —Automatic Switching lets you seamlessly switch between your Apple devices.14 And Audio Sharing lets you share a song or show between two sets of AirPods on your iPhone, iPad, or Apple TV.15",
"seller": "Walmart.com",
"brand": "Apple",
"price": {
"current": 199.99,
"original": 249,
"currency": "USD"
},
"rating": {
"average": 4.4,
"count": 14418
},
"image_urls": [
"https://i5.walmartimages.com/seo/AirPods-Pro-3_2d902be8-d735-47d8-a8d3-890120e106e4.7b1abcc8dfb687add0824ed5996c1e70.jpeg",
"https://i5.walmartimages.com/asr/bd0723a6-36c1-43f8-917c-bc9249339a75.84ff7119cef6edfb19258fc6ff9398dd.jpeg"
],
"availability": "In stock",
"reviews_count": null,
"specifications": [
{
"group": null,
"name": "Headphone type",
"value": "Earbuds"
},
{
"group": null,
"name": "Headphone style",
"value": "In-Ear"
}
],
"variations": [],
"ext": {
"seller_id": "F55CDC31AB754BB68FE0B39041159D63",
"catalog_id": "34J2GQ9D9TFM"
}
}
},
"credits_used": 0,
"credits_remaining": 9999,
"request_id": "req_example000000",
"cached": true,
"redacted": true
}Live sample illustrating the unified response shape. Field values reflect the record you query.
How does the Walmart Product API work?
Send a GET request with your API key and get back clean, structured JSON in our unified schema. Supported computed fields are populated when the source provides the required inputs.
Method
GET
Response
JSON
How do you scrape social media data in seconds?
The fastest social media scraping API for developers. Scrape profiles, posts, comments, and analytics from 69 platforms covering 10B+ monthly active users.
One schema, every platform
Query 69 platforms with identical response structures. Write your integration once.
Computed fields, not just scraped
When an endpoint supports these metrics and the source provides the required inputs, the normalized record includes engagement_rate, estimated_reach, content_category, and language. Ready to use.
See your data before you code
Visual Data Explorer. Paste any URL, get rich result cards, sortable tables, CSV export.
import requests
response = requests.get(
'https://www.socialcrawl.dev/v1/tiktok/profile',
params={'handle': 'charlidamelio'},
headers={'x-api-key': 'sc_YOUR_API_KEY'}
)
data = response.json(){
"success": true,
"platform": "tiktok",
"data": {
"author": {
"username": "charlidamelio",
"followers": 152400000
},
"engagement": {
"likes": 12400000000,
"engagement_rate": 0.087
},
"metadata": {
"language": "en",
"content_category": "lifestyle"
}
}
}Have a question? We got answers
Find answers to frequently asked questions about SocialCrawl's API, pricing, and capabilities.
Contact usWhich Walmart product id should I use?
Does the response include the star rating breakdown?
How do I get this product's reviews?
What happens if the product id does not exist?
Is the price the national price or my local store price?
Ask AI about SocialCrawl
Ready to scrape Walmart Product data?
Get your API key and start pulling Walmart data in under 60 seconds.
