Kohl's
Kohl's Suggestions API
kohls.com search-box suggestions for a partial query: keyword completions (type terms, the default), or matching products with id, title, URL and image (type products). Costs 2 credits per request.
POST/api/v1/kohls/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: coff
typestringterms (default): keyword completions; products: matching products (id, title, URL, image).
Example: terms
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
res = client.kohls.suggestions(query="coff")["data"]
print(res["suggestions"])
products = client.kohls.suggestions(query="coff", type="products")["data"]
for p in products["products"]:
print(p["id"], p["title"], p["url"])Response
"query": "coff",
"type": "terms",
"count": 8,
},
"response_time": 4251
}