Weedmaps strain directory
Cannabis strains from the Weedmaps strain guide, searchable by name and filterable by species: id, name, slug, link, species, THC and CBD ranges, aliases, top effects, flavours and medical conditions, 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 |
|---|---|---|
q | string | Strain name keywords. Example: gelato |
species | indica | sativa | hybrid | Species. |
sort | name | name_desc | Sort order (default name). |
page | integer | Page number. |
limit | integer | Strains per page (1-50, default 20). |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/weedmaps/v1/strains?q=gelato" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/weedmaps/v1/strains",
params={"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/strains");
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)
{"q": "gelato","species": null,"sort": "name","total": 197,"page": 1,"count": 20,"next_page": 2,"strains": [{"id": 3641,"name": "Acai Berry Gelato","slug": "acai-berry-gelato","url": "https://weedmaps.com/strains/acai-berry-gelato","species": "hybrid","thc_min": 15,"thc_max": 28,"cbd_min": 0,"cbd_max": 0,"aliases": ["Acai Gelato","Acai Berry","… 2 more"],"effects": ["Happy","Relaxed","… 5 more"],"flavors": ["Berry","Strawberry","… 4 more"],"medical_conditions": [],"description": "Acai Berry Gelato is the smoothie bowl of the Gelato family: superfood name, dessert-shop flavor. Two versions share the scoop, so here’s th…","image": "https://images.weedmaps.com/static/placeholders/sample_weed_nug_1.jpg"},{"id": 11373,"name": "Air Gelato","slug": "air-gelato","url": "https://weedmaps.com/strains/air-gelato","species": "hybrid","thc_min": 17,"thc_max": 27,"cbd_min": 0,"cbd_max": 0,"aliases": [],"effects": ["Creative","Euphoric","… 3 more"],"flavors": ["Berry","Diesel","… 4 more"],"medical_conditions": [],"description": "Air Gelato takes the diesel airborne and lands in a scoop of berry cream. Sweet vanilla and citrus soften its pungent opening, giving this h…","image": "https://images.weedmaps.com/static/placeholders/sample_weed_nug_1.jpg"},"… 18 more"],"cached": false,"credits_used": 1}