Skip to main content

API Key Authentication

All API requests require an API key passed via the X-API-Key header.

Getting Your API Key

  1. Sign up at tradingnews.press
  2. Go to Dashboard > API Keys
  3. Click Create Key
  4. Copy the key immediately — it’s only shown once

Key Format

TradingNews API keys use a prefix format for easy identification:

Security Best Practices

Never expose your API key in client-side code, public repositories, or browser JavaScript. Always call the TradingNews API from your backend server.
  • Store keys in environment variables, not in code
  • Use different keys for different applications
  • Revoke and rotate keys if you suspect exposure
  • Each key has independent rate limits and usage tracking

Error Responses