JCPenney search suggestions
What jcpenney.com suggests while typing: search suggestions with their categories, and the top matching products with price, rating and link.
Every response includes credits_used: the credits this call cost.
Part of the JCPenney API: 8 endpoints with prices, use cases and example responses.
Parameters
| name | type | description |
|---|---|---|
qrequired | string | The letters or words typed so far. Example: nike |
limit | integer | Suggestions, 1 to 20 (default 8). |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/jcpenney/v1/autocomplete?q=nike" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/jcpenney/v1/autocomplete",
params={"q": "nike"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/jcpenney/v1/autocomplete");
url.searchParams.set("q", "nike");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).
Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)
{"query": "nike","suggestions": [{"text": "nike shoes","categories": []},{"text": "nike socks","categories": []},"… 6 more"],"products": [{"id": "ppr5008527039","name": "Nike Everyday Lightweight Womens Breathable Multi-Pack 3 Pair Liner Socks","brand": "nike","url": "https://www.jcpenney.com/p/nike-everyday-lightweight-womens-breathable-multi-pack-3-pair-liner-socks/ppr5008527039?pTmplType=regular","image": "https://sc-images.jcpenney.com/JCPenney/DP0623202507051460M","images": ["https://sc-images.jcpenney.com/JCPenney/DP0623202507051774M","https://sc-images.jcpenney.com/JCPenney/DP0623202507051251M","… 1 more"],"price": {"min": 5,"max": 5},"price_type": "SALE PRICE","list_price": {"min": 20,"max": 20},"coupon_price": null,"coupon_code": null,"final_price": {"min": 5,"max": 5},"percent_off": 75,"currency": "USD","rating": 4.12,"review_count": 17,"badges": [],"clearance": false,"online_only": false,"store_pickup": true,"store_availability": "same day pickup","in_stock": true,"variant_count": 1,"sponsored": null},{"id": "ppr5008527744","name": "Nike Mens Long Sleeve Active Hoodie","brand": "nike","url": "https://www.jcpenney.com/p/nike-mens-long-sleeve-active-hoodie/ppr5008527744?pTmplType=regular","image": "https://sc-images.jcpenney.com/JCPenney/DP0610202507315068M","images": ["https://sc-images.jcpenney.com/JCPenney/DP0611202513022323M","https://sc-images.jcpenney.com/JCPenney/DP0610202507313922M","… 1 more"],"price": {"min": 37.99,"max": 37.99},"price_type": "CLEARANCE","list_price": {"min": 65,"max": 65},"coupon_price": null,"coupon_code": null,"final_price": {"min": 37.99,"max": 37.99},"percent_off": 41,"currency": "USD","rating": null,"review_count": null,"badges": ["SHOP_THE_COLLECTION"],"clearance": true,"online_only": false,"store_pickup": false,"store_availability": "same day pickup","in_stock": true,"variant_count": 1,"sponsored": null},"… 6 more"],"cached": false,"credits_used": 1}