Dick's Sporting Goods
Dick's Sporting Goods Search Suggestions API
The dickssportinggoods.com search-box suggestions for a partial query: keyword completions, brands, categories (id, name, path, URL, product count) and products (id, title, brand, URL, image, color, price and list-price ranges, percent off, MAP flag). Costs 1 credit per request.
POST/api/v1/dicks/suggestions
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonquerystringrequiredWhat the shopper has typed so far, 1-100 characters.
Example: yeti tum
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
# Expand a seed, then size each completion with a search total.
res = client.dicks.suggestions(query="yeti tum")["data"]
for kw in res["keywords"]:
total = client.dicks.search(query=kw, page_size=1)["data"]["total"]
print(kw, total)Response
"query": "yeti tum",
"count": 9,
"brands": [],
"categories": [],
"currency": "USD"
},
"response_time": 3555
}