Skip to content

Serper Shopping

POST /search/serper/shopping, forwarded to POST https://google.serper.dev/shopping. Same Serper account and key as Serper web search; a different endpoint.

Terminal window
curl -X POST "https://api.withgrowl.com/v1/search/serper/shopping" \
-H "Authorization: Bearer elo_pub_..." \
-H "Content-Type: application/json" \
-d '{ "q": "wireless mouse", "num": 20, "gl": "us" }'

Common fields are below. The body goes to Serper as sent, so everything in Serper’s Shopping reference works; that reference is the complete, current schema.

FieldDescription
qThe shopping query.
numNumber of results.
glCountry code, lower case, for example us.
hlLanguage code, lower case, for example en.

Results are under shopping. Each has title, link, price, source and, when Serper has one, the product picture in imageUrl.

{
"shopping": [
{
"title": "Logitech M170 Wireless Mouse",
"link": "https://www.example.com/mouse",
"price": "$14.99",
"source": "Example Store",
"imageUrl": "https://www.example.com/mouse.jpg",
"position": 1
}
]
}
  • Serper takes its key in X-API-KEY. Keep that header and put your Elo key in it, or use Authorization: Bearer; Elo sets Serper’s key itself.