Weedmaps search suggestions
Suggestions for a typed name, as the Weedmaps search box shows them: brands, dispensaries, deliveries and doctors (id, name, slug, type, city, state, distance and open-now when a place is given).
Every response includes credits_used: the credits this call cost.
Part of the Weedmaps API: 18 endpoints with prices, use cases and example responses.
Parameters
| name | type | description |
|---|---|---|
qrequired | string | What was typed. Example: stiiizy |
location | string | A city, neighbourhood or ZIP/postal code (US or Canada), e.g. Los Angeles, CA. Or pass lat and lng. |
lat | number | Latitude (with lng), instead of location. |
lng | number | Longitude (with lat). |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/weedmaps/v1/autocomplete?q=stiiizy" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/weedmaps/v1/autocomplete",
params={"q": "stiiizy"},
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/weedmaps/v1/autocomplete");
url.searchParams.set("q", "stiiizy");
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)
{"q": "stiiizy","brands": [{"id": 3464,"wmid": null,"name": "STIIIZY","slug": "stiiizy","type": null,"city": null,"state": null,"distance_miles": null,"open_now": null,"avatar": null}],"dispensaries": [{"id": 347005,"wmid": 441661922,"name": "STIIIZY El Centro","slug": "stiiizy-el-centro","type": "dispensary","city": null,"state": null,"distance_miles": 2275.100143212997,"open_now": true,"avatar": null},{"id": 373738,"wmid": 244036778,"name": "STIIIZY Indio","slug": "stiiizy-indio","type": "dispensary","city": null,"state": null,"distance_miles": 2284.31621194555,"open_now": true,"avatar": null},"… 3 more"],"deliveries": [{"id": 94164,"wmid": 702552336,"name": "STIIIZY DELIVERY","slug": "stiiizy-delivery-9","type": "delivery","city": null,"state": null,"distance_miles": 2319.90320209921,"open_now": true,"avatar": null},{"id": 94167,"wmid": 406432077,"name": "STIIIZY DELIVERY","slug": "stiiizy-delivery-12","type": "delivery","city": null,"state": null,"distance_miles": 2326.157441154824,"open_now": true,"avatar": null},"… 3 more"],"doctors": [],"cached": false,"credits_used": 1}