Walmart Product API

Api Details

EndpointGET https://serpapi.abcproxy.com/search

Description

/search?engine=walmart_product API endpoint allows you to scrape the results from the Walmart product pages via our SerpApi service. Head to the playground for a live and interactive demo.


Request

HTTP Request

curl -X GET "https://serpapi.abcproxy.com/search" \
  -d "engine=walmart_product" \
  -d "product_id=5689919121" \
  -d "no_cache=false" \
  -d "api_key=YOUR_API_KEY"

API Parameters

Search Query

Name
Type
Required
Description
Example

product_id

String

Yes

Parameter defines the product to get results for. Normally found from shopping results for supported products (e.g., https://www.walmart.com/ip/{product_id}). You can pass product_id and us_item_id. Responses from Walmart.com are faster when product_id is used.

5689919121

Advanced Filters

Name
Type
Required
Description
Example

store_id

String

No

Store ID to filter the products by the specific store only. Head to the Walmart Stores Locations for a full list of supported stores.

5

Serpapi Parameters

Name
Type
Required
Description
Example

engine

String

Yes

Set parameter to walmart_product to use the Google Finance API engine.

walmart_product

no_cache

boolean

No

Parameter will force SerpApi to fetch the results even if a cached version is already present. A cache is served only if the query and all parameters are exactly the same. Cache expires after 1h. Cached searches are free, and are not counted towards your searches per month. It can be set to false (default) to allow results from the cache, or true to disallow results from the cache.

trueorfalse

api_key

string

Yes

Parameter defines the SerpApi private key to use.

123


Response

Success 200

Response Body

Response Fields

Field
Type
Description

search_parameters

Object

Contains query parameters and search context

search_metadata

Object

Contains timing and status information

url

string

url


Error Responses

Common Errors

HTTP Status
Error Code
Description

200

400

API Key can not be empty

200

401

Param error

200

402

API Key error

200

403

Insufficient Balance

200

404

Deduction failed

200

405

Failed to record usage count

200

406

Unsupported engine

200

407

Network error

200

408

File not found

200

409

Limit param error

200

410

Build url error

200

411

Failed to QueryRecentRecord

200

412

Failed to find json

200

413

Get html error

200

414

HTML is empty

200

429

Too many request

Error Example


Last updated