Skip to main content
Every request to Zerion API carries one credential. Pick the one that fits how you call it: All three unlock the same endpoints with the same parameters. Only the header changes.

API key

Zerion API uses HTTP Basic Authentication, with your API key as the username and an empty password. Get a key from the Dashboard; its Get Started section also has ready-to-use snippets with your key pre-filled.
1 · Key + colonYOUR_API_KEY:
→
2 · Base64-encodeWU9VUl9BUElfS0VZOg==
3 · Send as headerAuthorization: Basic WU9VUl9BUElfS0VZOg==
Username = your API key, password = empty. Keep the trailing colon: it separates the two.

Make your first call

From the docs: every API reference page has a playground. Click Try it, paste your API key in Username, leave Password empty, and click Send. From your code: most HTTP clients build the header when you pass the key as the Basic Auth username. Otherwise, encode it as shown above.

Security best practices

Never expose your API key in client-side code or public repositories.
  • Store your API key in environment variables
  • Make API requests from server-side code
  • Rotate your key immediately if it’s ever compromised
  • Use separate keys for development and production

Pay-per-request: x402 and MPP

Both x402 and MPP let you call Zerion API by paying a small USDC fee per request instead of presenting an API key. They’re a better fit than API keys when:
  • You’re building an AI agent or automated pipeline that shouldn’t manage long-lived credentials
  • Traffic is bursty or unpredictable and you don’t want to size a rate-limited plan
  • You want usage-based cost accounting at the request level
Pick whichever chain your wallet already holds USDC on, then follow the x402 guide or the MPP guide. The Zerion CLI supports both via --x402 / --mpp flags.