Available SDKs
TypeScript/JavaScript
Full-featured SDK for Node.js, Deno, Bun, and Cloudflare Workers
Go
Native Go SDK with middleware for popular frameworks
Python
Python SDK with FastAPI, Flask, and Django support
Core Capabilities
All official SDKs provide:API Key Verification
Validate API keys on every request with built-in support for:- Expiration checking
- Usage limits and credits
- Rate limiting
- Permissions and roles
- Custom metadata
Key Management
Create, update, and revoke API keys programmatically:- Generate keys with custom prefixes
- Set expiration dates
- Configure usage limits and auto-refill
- Attach metadata and permissions
Rate Limiting
Protect your APIs from abuse:- Flexible time windows (seconds, minutes, hours, days)
- Cost-based limiting for expensive operations
- Per-user or per-key limits
- Multiple concurrent rate limits
Quick Start
Installation
Initialize the Client
Verify an API Key
Create an API Key
Common Operations
Rate Limiting
Protect your endpoints from abuse:Update a Key
Delete a Key
Framework-Specific Guides
TypeScript/JavaScript
Next.js
withUnkey wrapper for API routes
Hono
Middleware for Hono apps
Express
Express.js integration guide
Bun
Fast verification with Bun runtime
Go
See the Go SDK documentation for middleware examples with:net/http(standard library)- Gin
- Echo
- Fiber
Python
See the Python SDK documentation for integration examples with:- FastAPI
- Flask
- Django
Error Handling
All SDKs use language-idiomatic error handling:Runtime Support
TypeScript/JavaScript
- Node.js 18+
- Deno 1.25+
- Bun 1.0+
- Cloudflare Workers
- Edge runtimes (Vercel, Netlify)
Go
- Go 1.21 or higher
Python
- Python 3.9 or higher
Community SDKs
The community has built SDKs for additional languages:Rust
Community-maintained Rust SDK
PHP
Community-maintained PHP SDK
Java
Community-maintained Java SDK
.NET
Community-maintained .NET SDK
Community SDKs are maintained by the community and may have different features or update schedules than official SDKs.
Next Steps
TypeScript SDK
Full TypeScript/JavaScript SDK reference
Go SDK
Complete Go SDK documentation
Python SDK
Complete Python SDK documentation
API Reference
REST API documentation