Weedmaps product search near a place
Brand products sold near a place, as the Weedmaps product search shows them: keyword, category, brand, strain, on sale, radius and 9 sorts. Each product: id, name, slug, brand, link, category, price range, rating and review count, number of nearby stores, THC/CBD, strain, description, image and raw. Pass next_page back as page; null on the last page.
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 |
|---|---|---|
location | string | A city, neighbourhood or ZIP/postal code (US or Canada), e.g. Los Angeles, CA. Or pass lat and lng. Example: Los Angeles, CA |
lat | number | Latitude (with lng), instead of location. |
lng | number | Longitude (with lat). |
q | string | Keywords. Example: gelato |
category | string | Comma list of category slugs, e.g. flower, vape-pens, edibles, pre-rolls. |
brand | string | Comma list of brand slugs. |
strain | string | Comma list of strain slugs, e.g. blue-dream. |
on_sale | boolean | true: only products on sale nearby. |
radius | integer | Radius in miles (1-250, default 50). |
sort | relevance | position | price_asc | price_desc | name | thc_desc | cbd_desc | most_popular | distance | Sort order (default relevance with q, else position). |
page | integer | Page number. |
limit | integer | Products per page (1-20, default 10). |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/weedmaps/v1/products?location=Los+Angeles%2C+CA&q=gelato" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/weedmaps/v1/products",
params={"location": "Los Angeles, CA", "q": "gelato"},
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/products");
url.searchParams.set("location", "Los Angeles, CA");
url.searchParams.set("q", "gelato");
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)
{"location": {"latitude": 34.048051,"longitude": -118.254187,"name": "Los Angeles, California, United States"},"applied_filters": {"q": "gelato","category": [],"brand": [],"strain": [],"on_sale": false,"sort": "relevance"},"total": 4145,"page": 1,"count": 10,"next_page": 2,"products": [{"id": 230571465,"name": "Read the Description","slug": "read-the-description-4a391141-ba0d-4bda-be5b-8e3f7468f2db-125668418","brand": null,"brand_slug": null,"url": null,"category": "Buds","categories": ["Flower","Buds"],"min_price": 0.5,"max_price": 0.5,"price_label": "each","msrp": null,"rating": 4.8,"reviews_count": 84,"favorites_count": 42,"listings_count": 15,"thc": null,"cbd": null,"tags": [],"pickup": false,"delivery": true,"description": null,"image": "https://images.weedmaps.com/pictures/listings/125/668/418/444372788_443626454_image-26-11-25-05-40.jpg","gallery": []},{"id": 928546,"name": "Bishop Boyz Sweet Victory OG 7pk Diamond Infused Prerolls","slug": "original-intelligence-9c34c8d8-d5e7-423a-bb44-67bee5e77ac8","brand": "Bishop Boyz","brand_slug": "original-intelligence","url": "https://weedmaps.com/brands/original-intelligence/products/original-intelligence-9c34c8d8-d5e7-423a-bb44-67bee5e77ac8","category": "Infused Joints","categories": ["Infused Pre-rolls","Infused Joints"],"min_price": 40,"max_price": 40,"price_label": "each","msrp": null,"rating": 0,"reviews_count": 0,"favorites_count": 3,"listings_count": 40,"thc": null,"cbd": null,"tags": [],"pickup": false,"delivery": true,"description": null,"image": "https://images.weedmaps.com/products/000/928/546/avatar/1791603865-sweetvic_7pk.png","gallery": []},"… 8 more"],"cached": false,"credits_used": 1}