Brand.dev uses API key authentication to secure all API requests. Every request to the Brand.dev API must include a valid API key in the request headers.
All official SDKs handle authentication automatically when you provide your API key:
JavaScript/TypeScript
Copy
import BrandDev from "brand.dev";const client = new BrandDev({ apiKey: process.env.BRAND_DEV_API_KEY, // Recommended: use environment variables});// API key is automatically included in all requestsconst { brand } = await client.brand.retrieve({ domain: "stripe.com" });
Python
Copy
import brand_devimport osclient = brand_dev.BrandDev( api_key=os.environ.get("BRAND_DEV_API_KEY"), # Recommended: use environment variables)# API key is automatically included in all requestsbrand = client.brand.retrieve(domain="stripe.com")
Ruby
Copy
require 'brand_dev'client = BrandDev::Client.new( api_key: ENV['BRAND_DEV_API_KEY'] # Recommended: use environment variables)# API key is automatically included in all requestsbrand = client.brand.retrieve(domain: 'stripe.com')
Rate limits are applied per API key and vary by plan tier. Below are the current limits and overage rates — see the pricing page for the latest details.
Plan
Requests per Month
Requests per Second
Overage
Trial
50 one-time trial calls
—
—
Basic
2,000 / month
2 calls/sec
$19 per 1K calls
Pro
10,000 / month
5 calls/sec
$9 per 1K calls
Scale
250,000 / month
20 calls/sec
$6 per 1K calls
Enterprise
Custom
Custom
Contact sales
When you exceed your rate limit, you’ll receive a 429 Too Many Requests response with a Retry-After header.
Avoid logging API keys in application logs or error tracking services:
Copy
// Bad: Logs might contain the API keyconsole.log("Client config:", client);// Good: Log only necessary informationconsole.log("API request for domain:", domain);