Skip to content

Authentication

Every request requires an API key in the X-API-Key header.

bash
curl -H "X-API-Key: hb_live_xxxxx" \
  "https://api.hummingbirdapi.com/v1/geo/lookup"

Key Format

All API keys use the format: hb_live_<random>

Example: hb_live_k7Xp9mNqR2wYzA4bC8dE6fG1hJ3iL5oP

Key Management

In your dashboard:

  • Create keys with custom names
  • Revoke keys instantly
  • Monitor usage per key

Security

WARNING

Never expose API keys in client-side code. Make requests from your server.

Best practices:

  1. Store keys in environment variables
  2. Rotate keys periodically
  3. Create separate keys per service
  4. Monitor for unusual activity

Errors

CodeMessageFix
20001Missing API keyAdd X-API-Key header
20002Invalid API keyCheck key format
20003API key revokedCreate new key

See Error Codes for details.

Built with VitePress