05API reference
API Overview
The Sebastian Tidwell Cannabis Industry API provides access to US state cannabis legal status and resources. All endpoints return JSON responses and support optional API key authentication for higher rate limits.
01Base URL
https://sebastiantidwell.com/api02API Keys
higher rate limitsAPI keys provide higher rate limits (1000 requests per hour vs 60 requests per 15 minutes for public access).
- Create an Account: Visit the website and create a user account (or log in if you already have one)
- Navigate to API Keys: Once logged in, click on your profile icon (bottom right) and select “Manage API Keys”
- Create a New Key: Click “Create New API Key”, give it a descriptive name (e.g., “Production Key”, “Development Key”), and optionally set an expiration date
- Copy Your Key: Important: Copy the API key immediately after creation. You won't be able to see it again. The key will be displayed once with a prefix (first 8 characters) shown for reference.
- View Keys: See all your API keys with their names, prefixes, creation dates, and last used timestamps
- Delete Keys: Revoke access by deleting API keys you no longer need
- Key Prefix: Each key shows a prefix (first 8 characters) to help identify it, but the full key is only shown once at creation
03Using your API key
Include your API key in the X-API-Key header with all API requests:
curl -H "X-API-Key: your-api-key-here" https://sebastiantidwell.com/api/statesNote
API key management endpoints are internal-only and can only be accessed when logged into the website. They cannot be called externally for security reasons.