bol search suggestions
What bol suggests while typing: query completions, matching categories (with ids for /bol/v1/category) and featured products.
Every response includes credits_used: the credits this call cost.
Part of the bol API: 8 endpoints with prices, use cases and example responses.
Parameters
| name | type | description |
|---|---|---|
qrequired | string | The start of a search. Example: koff |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/bol/v1/autocomplete?q=koff" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/bol/v1/autocomplete",
params={"q": "koff"},
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/bol/v1/autocomplete");
url.searchParams.set("q", "koff");
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": "koff","queries": ["koffiemachines","koffer","… 7 more"],"categories": [{"id": "18312","name": "koffiezetapparaten","department": "Elektronica","url": "https://www.bol.com/nl/nl/l/koffiezetapparaten/18312/"}],"products": [{"id": "9200000075792784","title": "Krups Nespresso Essenza Mini XN1108 - Koffiecupmachine - Zwart","url": "https://www.bol.com/nl/nl/p/krups-nespresso-essenza-mini-xn1108-koffiecupmachine-zwart/9200000075792784/","image": "https://media.s-bol.com/jp4l7vWQAZoB/Y7BAKMK/23x60.jpg"},{"id": "9200000026315841","title": "De'Longhi Nespresso Inissia EN80.B - Koffiecupmachine - Zwart","url": "https://www.bol.com/nl/nl/p/de-longhi-inissia-nespresso-en80b-koffiecupmachine-zwart/9200000026315841/","image": "https://media.s-bol.com/mzvg6Dv8q5pR/68jMPvn/36x60.jpg"}],"cached": false,"credits_used": 1}