Grainger Search
GET
Search Grainger US or Canada by keyword, category URL or SKU. Returns product listings, category branches and suggestions via browser rendering.
Credit cost: 2 credits per call
ApiKeyAuthheader
x-api-key<token>Your API key. Include it in the x-api-key header for every request.
query*stringKeyword, full Grainger search/category URL, category path, or SKU.
Examples:
carolinahttps://www.grainger.com/search?searchQuery=carolina&searchBar=truehttps://www.grainger.com/category/abrasivescategory/abrasives3FRU1A full Grainger URL auto-detects region.
region?stringGrainger country when query is not a full URL (default: com).
Supported:
com→ www.grainger.com, USDca→ www.grainger.ca, CAD
Example: ca
return_page_source?booleanWhen true, return rendered HTML as {"result": "..."} instead of JSON. Defaults to false.
Successful response
application/json- response
url?stringquery?stringregion?stringcategories?array<>total_results?integercurl -X GET 'https://api.piloterr.com/v2/grainger/search?query=string'Example Response
{ "url": "https://www.grainger.com/search?searchQuery=carolina&searchBar=true", "query": "carolina", "region": "com", "categories": [ { "url": "https://www.grainger.com/category/safety/footwear-footwear-accessories/safety-toe-work-boots-shoes", "title": "Close Match Safety-Toe Work Boots & Shoes" }, { "url": "https://www.grainger.com/category/safety/footwear-footwear-accessories/plain-toe-work-boots-shoes", "title": "Plain-Toe Work Boots & Shoes" } ], "total_results": 0}