Installation
Requirements
- Node.js 18 or higher
- TypeScript 4.7+ (optional, for type definitions)
Quick Start
Configuration
Initialize the Client
Environment Variables
We recommend storing your API key in environment variables:Accessing Response Headers
Use.withResponse() to access the full HTTP response including headers (useful for rate limiting):
Error Handling
Error Types
| Error Code | Description |
|---|---|
400 | Invalid request parameters |
401 | Invalid or missing API key |
403 | Insufficient permissions |
404 | Resource not found |
429 | Rate limit exceeded |