Skip to main content
Skip writing auth + pagination boilerplate — install the official AI agent skill and let Claude Code, Cursor, Copilot, etc. handle it:

API Authentication

Every API request requires authentication using an API key in the HTTP headers.

Getting Your API Key

  1. Log in to your TwitterApiIO Dashboard
  2. Find your API key displayed on the dashboard homepage

Using Your API Key

All API requests must include the x-api-key header for authentication. Header format:
Example requests:

cURL

Python

Java

Keep your key safe

  • Call the API from your server, not from browser or mobile code where anyone can read the key.
  • Don’t commit the key to git. Load it from an environment variable or a secrets file.
  • If a key leaks, email [email protected] and we’ll rotate it.

Authentication errors

See Errors for every status code.