StrainDB API
Build powerful cannabis applications with our comprehensive REST API. Access detailed strain data, genetics, and effects.
API Key Auth
Simple and secure authentication
Code Examples
Ready-to-use snippets in multiple languages
Secure
Enterprise-grade security standards
RESTful API
Clean, intuitive API design
Quick Start
Get started with your first API request in seconds
Base URL
https://straindb.io/api/v1Make a Request
GET /strains?limit=10Get Response
200 OK + JSON dataAPI Playground
Test API endpoints directly in your browser
API Reference
Complete documentation for all available endpoints
Strains
Access comprehensive strain data with filtering and search capabilities
Categories
Browse and filter strains by genetic categories
Statistics
Access database statistics and analytics
Search
Full-text search across all strain data
AI Recommendations
Get intelligent strain recommendations based on preferences
Contribute
Submit new strains to the database
Response Format
All API responses follow a consistent JSON structure:
{
"success": true,
"data": [...],
"meta": {
"pagination": {
"page": 1,
"limit": 20,
"total": 18743,
"totalPages": 938
}
},
"links": {
"self": "/api/v1/strains?page=1",
"next": "/api/v1/strains?page=2"
}
}Rate Limiting
API usage limits to ensure fair usage
Need higher limits? Contact us for enterprise plans with unlimited API access.