Start here
Make your first request.
Get an API key, keep it on your server, and send it with every request.
Authentication
Send your customer API key as a bearer token. Replacing the key in your dashboard revokes the old one immediately.
export TWITTERXAPI_KEY="tx_live_..."Base URL
https://twitterxapi.com/apiREST endpoints live below /api/v1. The MCP server lives at /api/mcp.
Fetch a profile
curl "https://twitterxapi.com/api/v1/users/marclou?level=moderate" \
-H "Authorization: Bearer $TWITTERXAPI_KEY"Keep the key out of browser code, public repositories, and screenshots.
Choose a response levelNext →