flowxapi overview
The high-performance, developer-first REST API for X (formerly Twitter) data and automation. 73 production endpoints, transparent micro-dollar metering, real-time push webhooks, and official Python & TypeScript client SDKs.
Quickstart (30 Seconds)
Query user profiles, fetch recent tweets, or search conversations in seconds using standard HTTP tools or official SDKs.
curl -X GET "https://api.flowxapi.dev/v1/twitter/user/info?username=NASA" \
-H "Authorization: Bearer fxa_your_api_key"Authentication
All requests to /v1/* require an API key passed in the standard HTTP Authorization header:
Authorization: Bearer fxa_live_948f2b10a8c2...
API keys are prefixed with fxa_ and can be generated, labeled, or revoked anytime from your Developer Dashboard.
Transparent Micro-Dollar Metering
flowxapi charges exactly per call in micro-dollars ($0.000001 USD). No recurring monthly commitments are forced upon developers.
| Operation | Endpoint Category | Cost (Micros) | Cost (USD) |
|---|---|---|---|
| User Info / Profile | GET /v1/twitter/user/info |
1,000 micros | $0.001 |
| User Tweets & Media | GET /v1/twitter/user/tweets |
2,000 micros | $0.002 |
| Advanced Search | GET /v1/twitter/tweet/advanced_search |
5,000 micros | $0.005 |
| Followers / Following | GET /v1/twitter/user/followers |
5,000 micros | $0.005 |
| Direct Messages | POST /v1/twitter/dm/send |
5,000 micros | $0.005 |
| Real-Time Webhooks | POST /v1/twitter/monitor/add |
0 micros | Included |
Core Endpoints Directory (73 Available)
Filter and explore live production routes. Click any endpoint to test it instantly in the Request Playground.
Official Client SDKs
Official typed clients provide auto-pagination, automatic token refresh, retries with exponential backoff, and transparent rate-limit headers handling.
TypeScript / Node.js
v1.0.0Fully typed definitions, ESM & CommonJS support, native fetch runtime.
npm install @flowxapi/sdkPython SDK
v1.0.0Async/await support, Pydantic models, rate-limit backoff handler.
pip install flowxapiResponse Envelope & Error Codes
Every response returns a structured envelope. Successful queries return ok: true, while errors return standardized machine-readable error codes.
{
"ok": false,
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded. Try again in 12 seconds.",
"retry_after": 12
}
}| Code | Meaning | What to do |
|---|---|---|
400 Bad Request |
Missing or invalid query/body parameters | Verify required parameters against the endpoint schema and check parameter formatting. |
401 Unauthorized |
Missing, malformed, or revoked API key | Supply a valid Authorization: Bearer fxa_... header generated from the Console. |
402 Payment Required |
Zero credit balance or exhausted account funds | Top up your developer balance or subscribe to a monthly plan in Billing. |
429 Too Many Requests |
Operation rate limit or concurrency cap reached | Inspect the retry_after response header and back off before repeating the request. |
503 Service Unavailable |
Upstream network or rotation pool temporary disruption | Retry with exponential backoff. flowxapi auto-rotates active upstream sessions. |