Skip to content
All sites
Data API

X Data API

Posts, profiles, search and trends from X (formerly Twitter).

8endpointsRate Limit · TLS Fingerprint · login_wall handled for you
twitter.comGET/twitter/trendsGET/twitter/trend…GET/twitter/tweet…{ } JSON

X Data API

Extract tweets, profiles, search, timelines and trends from X as structured JSON. One POST per query, anti-bot handled, billed only on success.

POST /v1/data/twitter/{action}

Key Features

Structured JSON

Clean, normalized records for tweets, profiles, search, timelines and trends. No HTML parsing on your side.

8 endpoints

Across 3 categories, all under one base path.

Anti-bot handled

Rate Limit, TLS Fingerprint, login_wall cleared for you behind the scenes.

Fresh or cached

Serve instantly from the warm store, or force a live scrape per request.

Regions & Languages

Global coverage. Results are returned for the default locale.

Pagination

Page through results with cursor.

Quick Start

Send your key and a few params. Failed requests are free.

data_api.py
import requests

resp = requests.post(
    "https://api.capzy.ai/v1/data/twitter/trends",
    json={
  "clientKey": "capzy_your_key_here",
  "params": {
    "woeid": "1"
  }
},
)
print(resp.json()["result"])

Per-run pricing

failed requests are free
EndpointCategoryPrice / 1k results
/v1/data/twitter/trendsTrendsTrends1 credit / run
/v1/data/twitter/trends/by-locationTrends by LocationTrends1 credit / run
/v1/data/twitter/tweets/{id}Tweet DetailTweets1 credit / run
/v1/data/twitter/tweets/by-idsTweets by IDsTweets1 credit / run
/v1/data/twitter/users/{id}/articlesUser ArticlesUsers1 credit / run
/v1/data/twitter/users/{username}/by_usernameUser by UsernameUsers1 credit / run
/v1/data/twitter/users/{id}/tweetsUser TweetsUsers1 credit / run
/v1/data/twitter/users/batch/by-usernamesBatch Users by UsernamesUsers1 credit / run