JCPenney
JCPenney Search Suggestions API
The jcpenney.com search-box suggestions for a partial query: keyword completions, each with its jcpenney.com search URL and, where JCPenney offers them, department refinements (nike shoes women to sneakers, running shoes...). Useful for keyword research and for building search terms before a search call. Costs 1 credit per request.
POST/api/v1/jcpenney/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: jea
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
res = client.jcpenney.suggestions(query="jea")["data"]
for s in res["suggestions"]:
print(s["term"], s["departments"])Response
"query": "jea",
"count": 13,
},
"response_time": 6699
}