Developer API

StrainCompass API

Access 62,000+ cannabis strains with THC/CBD, terpene profiles, effects, genetics, and more. Built for dispensaries, apps, and researchers.

Quick Start

# Fetch indica strains with THC above 20%

curl "https://straincompass.com/api/strains?type=indica&thcMin=20&limit=5"

Endpoints

GET/api/strainsBrowse and filter strains

Parameters

type, effect, flavor, terpene, thcMin, thcMax, breeder, sort, page, limit, q

Example

fetch("https://straincompass.com/api/strains?type=indica&thcMin=20&limit=10")

Response

{
  "strains": [
    {
      "slug": "blue-dream",
      "name": "Blue Dream",
      "type": "HYBRID",
      "thcMax": 21,
      "cbdMax": 0.2,
      "effects": [{"name": "Relaxed", "intensity": 85}],
      "flavors": [{"name": "Berry"}],
      "terpenes": [{"name": "Myrcene", "level": "high"}]
    }
  ],
  "total": 15420,
  "page": 1,
  "totalPages": 643
}
GET/api/strains/searchAutocomplete strain search

Parameters

q (min 2 chars)

Example

fetch("https://straincompass.com/api/strains/search?q=blue+dream")

Response

{
  "results": [
    {"slug": "blue-dream", "name": "Blue Dream", "type": "HYBRID", "thcMax": 21},
    {"slug": "blue-dream-cbd", "name": "Blue Dream CBD", "type": "CBD", "thcMax": 6}
  ]
}

API Pricing

Free

$0

100/day requests

  • Basic strain data
  • Search endpoint
  • Community support
Most Popular

Pro

$49/mo

10,000/day requests

  • Full strain profiles
  • Terpene & effect data
  • Genetics/lineage
  • Priority support

Enterprise

$199/mo

Unlimited requests

  • Everything in Pro
  • Bulk data export
  • Webhooks
  • Custom integrations
  • Dedicated support

Authentication

The free tier requires no authentication. For Pro and Enterprise tiers, include your API key in the header:

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://straincompass.com/api/strains?type=sativa"

Rate Limits

Rate limits are applied per API key. Exceeded limits return HTTP 429 with a Retry-After header.

100

Free / day

10K

Pro / day

Enterprise