All API requests to ApiTwitter require authentication via the X-API-Key header.
API Key
Your API key is automatically generated when you register. You can view it in your Dashboard → API Key page.
API keys follow the format: tda_ followed by a random string.
X-API-Key: tda_k8x2mN3s_8epqsGQe6PkDJ2KUscjq13j16F9CQGfa_w
Using the API Key
Include the X-API-Key header in every request:
GET request (server-side pool — no cookies or proxy needed)
curl "https://api.apitwitter.com/twitter/user/elonmusk" \
-H "X-API-Key: tda_your_key_here"
POST request (your own cookies and proxy)
curl -X POST "https://api.apitwitter.com/twitter/user/elonmusk" \
-H "X-API-Key: tda_your_key_here" \
-H "Content-Type: application/json" \
-d '{"cookie": "ct0=...;auth_token=...", "proxy": "http://user:pass@proxy:8080"}'
Error Responses
| Status | Meaning |
|---|
401 | Missing X-API-Key header |
401 | Invalid or revoked API key |
{
"status": "error",
"msg": "X-API-Key header is required"
}
Keep your API key secret. Do not expose it in client-side code, public repositories, or logs.
Key Management
- Each account receives one API key at registration
- Your key is always visible in your dashboard (show/hide toggle)
- If compromised, contact support to rotate your key