Skip to main content

Authentication

All API requests require an API key. Include your key in the X-API-Key header with every request.

Getting your API key

  1. Create an account (free, no credit card required)
  2. Verify your email
  3. Go to your Dashboard and navigate to API Keys
  4. Click Create New Key and give it a name
  5. Copy the key immediately — it won’t be shown again

Using your API key

Include the key in the X-API-Key header:
curl -H "X-API-Key: nb_your_api_key_here" \
  "https://api.polyhistorical.com/v1/markets?coin=BTC&limit=5"

API key limits by plan

PlanMax API Keys
Starter (Free)1
Pro3
Enterprise33

Security best practices

Never expose your API key in client-side code, public repositories, or browser requests. Always call the API from your backend server.
  • Store keys in environment variables, not in code
  • Use different keys for development and production
  • Rotate keys periodically
  • Revoke unused keys from your dashboard