API Documentation

Real-time access to Twitter and Threads data. All endpoints use POST with JSON body.

Full interactive documentation with Try It is available when you sign up for free.

0.1–1.2s

Per post. Live parsing, not cached data.

No limits

No max result caps. Fetch as many posts as exist.

Dedup billing

Same post fetched twice? Billed once.

Quick Start

  1. Create an account and get your API key
  2. Add X-API-Key: your_key header
  3. Send POST requests with JSON body
curl -X POST https://query-data-api.notpeople.ai/v1/twitter/search \
  -H "X-API-Key: your_key" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["AI agents"], "min_faves": 100, "limit": 50}'

Response Format

Every response includes your usage stats so you always know where you stand.

{
  "success": true,
  "data": [ ... ],          // Array or object depending on endpoint
  "metadata": {             // Search endpoints only
    "queries": ["(AI agents) since:2026-03-25"],
    "total_found": 50,
    "duplicates_removed": 3,
    "type_breakdown": { "tweet": 38, "quote": 10, "reply": 2 }
  },
  "usage": {
    "unique_posts": 1523,   // Your total this period
    "limit": 10000,         // Your plan limit
    "remaining": 8477       // Units left
  }
}

Twitter API

7 endpoints covering search, profiles, posts, comments, and social graph.

Threads API

Same structure as Twitter. Includes view counts and reply filtering.

Rate Limits & Pricing

PlanPriceUnits/monthRequests/min
Free$01,00060
Starter$2910,00060
Pro$9950,00060
Enterprise$299500,000120

1 unit = 1 unique post. Same post fetched multiple times counts as 1 unit. Need more? Buy unit packs starting at $10 for 5,000 units.

Error Codes

CodeMeaning
401Missing or invalid API key
403Key doesn't match the requested platform
429Rate limit or post limit exceeded
502Upstream service error
504Upstream timeout (try again)