Handles API
X (Twitter)

X API (Twitter API) for public data

Handles API is a REST API for public X (Twitter) data: profiles, posts, followers, search and trends. The catalog holds about 33.0M X accounts and answers a profile lookup from our own database for 1 credit; live reads of X itself, such as timelines, replies and search, cost 2 credits. Send your key to https://api.handlesapi.com/v1 and get JSON back in a stable envelope.

Accounts in catalog
about 33.0M
Catalog read
1 credit
Live read
2 credits
Endpoints
49
Free trial
100 credits, one time

A real X request and response

Every call is a plain HTTPS request with your key in the Authorization header. Responses use one envelope, { data, meta }, on every platform.

Catalog profile lookup 1 credit
Request
curl "https://api.handlesapi.com/v1/directory/x/nasa" \
  -H "Authorization: Bearer hk_live_xxxxxxxx"
Response200 OK · 309 ms · 1 credit
{
  "data": {
    "platform": "x",
    "object": "account",
    "record": {
      "user_id": "11348282",
      "username": "NASA",
      "name": "NASA",
      "description": "Making the seemingly impossible, possible. ✨",
      "followers_count": 92086821,
      "following_count": 115,
      "statuses_count": 74588,
      "media_count": 28267,
      "favourites_count": 17125,
      "url": "https://x.com/NASA",
      "is_verified": false,
      "is_blue_verified": true,
      "verified_type": "Government",
      "is_automated": false,
      "location": "Pale Blue Dot",
      "photo_url": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_400x400.jpg",
      "banner_url": "https://pbs.twimg.com/profile_banners/11348282/1788992290",
      "account_created_at": "2007-12-19 20:20:32+00",
      "language": "en",
      "country": null,
      "category": "science",
      "citation_score": 21386,
      "tier": "S",
      "status": "active",
      "is_nsfw": false,
      "last_seen": "2026-11-26 13:29:22.316073+00",
      "weekly_growth": -124137,
      "notable_followers": null
    }
  },
  "meta": {
    "source": "catalog",
    "request_id": "req_f6d829b59d0d8864",
    "generated_at": "2026-11-26T13:54:37.167Z",
    "took_ms": 56
  }
}

Captured from the live API on 26 November 2026. Long strings are shortened for display.

Live profile read 5 credits
Request
curl "https://api.handlesapi.com/v1/scrape/x/user?handle=nasa" \
  -H "Authorization: Bearer hk_live_xxxxxxxx"
Response200 OK · 16.3 s · 5 credits
{
  "data": {
    "user_id": "11348282",
    "handle": "NASA",
    "display_name": "NASA",
    "bio": "Making the seemingly impossible, possible. ✨",
    "followers": 92086892,
    "following": 115,
    "tweets": 74588,
    "is_verified": true,
    "avatar_url": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_400x400.jpg",
    "header_url": "https://pbs.twimg.com/profile_banners/11348282/1788992290/1500x500",
    "account_age_days": 6916,
    "created_at": "2007-12-19T20:20:32+00:00",
    "source": "xlookup"
  },
  "meta": {
    "source": "live:xlookup",
    "request_id": "req_291e7c0c9acec8a4",
    "generated_at": "2026-11-26T13:54:53.466Z",
    "took_ms": 16240
  }
}

Captured from the live API on 26 November 2026. Long strings are shortened for display.

Latest posts from a timeline, live 5 credits
Request
curl "https://api.handlesapi.com/v1/x/users/nasa/tweets?limit=2" \
  -H "Authorization: Bearer hk_live_xxxxxxxx"
Response200 OK · 1.8 s · 5 credits
{
  "data": {
    "tweets": [
      {
        "tweet_id": "2125915027819446402",
        "url": "https://x.com/NASA/status/2125915027819446402",
        "text": "LIVE: Watch the Progress 97 spacecraft arrive and dock to the @space_station after a two-day trip...",
        "created_at": "2026-11-26T11:30:14+00:00",
        "lang": "en",
        "source": null,
        "likes": 833,
        "retweets": 151,
        "replies": 73,
        "quotes": 16,
        "bookmarks": 50,
        "views": 276360,
        "is_reply": false,
        "is_retweet": false,
        "is_quote": false,
        "conversation_id": "2125915027819446402",
        "in_reply_to_tweet_id": null,
        "quoted_tweet_id": null,
        "retweeted_tweet_id": null,
        "hashtags": [],
        "mentions": [
          "Space_Station"
        ],
        "links": [
          "https://x.com/i/broadcasts/2onVBonVMMWjaV"
        ],
        "media": [],
        "author": {
          "user_id": "11348282",
          "handle": "NASA",
          "display_name": "NASA",
          "bio": "Making the seemingly impossible, possible. ✨",
          "followers": 92086892,
          "following": 115,
          "tweets": 74588,
          "media_count": 28267,
          "likes_given": 17125,
          "is_verified": false,
          "is_blue_verified": true,
          "is_protected": false,
          "location": "Pale Blue Dot",
          "avatar_url": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_400x400.jpg",
          "header_url": "https://pbs.twimg.com/profile_banners/11348282/1788992290",
          "created_at": "2007-12-19T20:20:32+00:00",
          "profile_url": "https://x.com/NASA"
        }
      }
    ],
    "has_next_page": false
  },
  "meta": {
    "page": {
      "limit": 2,
      "next_cursor": null,
      "count": 2
    },
    "source": "live:xlookup",
    "request_id": "req_503bc38c7610cc00",
    "generated_at": "2026-11-26T13:54:58.874Z",
    "took_ms": 1696
  }
}

Captured from the live API on 26 November 2026. Long strings are shortened for display.

X endpoints

49 endpoints return X (Twitter) data. Credits are per call; live endpoints read the platform at request time. Each row links to its reference page.

MethodPathCreditsLive
Accounts
GET/v1/accounts/x/{handle}
Check one account against our catalog
1No
GET/v1/accounts/x/{handle}/live
Check one account live, at the source
2Yes
Directory
GET/v1/directory/x
List and filter a catalog
1No
GET/v1/directory/x/{id}
One account or channel
1No
GET/v1/directory/x/{id}/growth
Daily audience history
1No
GET/v1/directory/x/{id}/followers
Inbound graph edges
1No
GET/v1/directory/x/{id}/following
Outbound graph edges
1No
POST/v1/directory/x/bulk
Resolve up to 100 records at once
1No
GET/v1/directory/x/facets
Distribution of the catalog
1No
X
GET/v1/x/users/{handle}
One X profile, live
2Yes
GET/v1/x/users/{handle}/about
X's About this account panel
2Yes
GET/v1/x/users/{handle}/tweets
An account's timeline
2Yes
GET/v1/x/users/{handle}/media
An account's media timeline
2Yes
GET/v1/x/users/{handle}/mentions
Posts mentioning an account
2Yes
GET/v1/x/users/{handle}/followers
Followers, newest first
2Yes
GET/v1/x/users/{handle}/verified-followers
Verified followers only
2Yes
GET/v1/x/users/{handle}/followers/ids
Follower ids in bulk
2Yes
GET/v1/x/users/{handle}/following
Who an account follows
2Yes
GET/v1/x/users/{handle}/relationship
Does one account follow another
2Yes
GET/v1/x/tweets/{id}
One post
2Yes
GET/v1/x/tweets
Posts by id, batched
2Yes
GET/v1/x/tweets/{id}/replies
Direct replies to a post
2Yes
GET/v1/x/tweets/{id}/thread
The whole conversation
2Yes
GET/v1/x/tweets/{id}/quotes
Quote posts of a post
2Yes
GET/v1/x/tweets/{id}/retweeters
Who reposted a post
2Yes
GET/v1/x/search/tweets
Advanced post search
2Yes
GET/v1/x/search/users
People search
2Yes
GET/v1/x/lists/{id}/tweets
A list's timeline
2Yes
GET/v1/x/lists/{id}/members
Who is on a list
2Yes
GET/v1/x/communities/{id}
One X community
2Yes
GET/v1/x/communities/{id}/members
A community's members
2Yes
GET/v1/x/communities/{id}/moderators
A community's moderators
2Yes
GET/v1/x/communities/{id}/tweets
A community's posts
2Yes
GET/v1/x/trends
What is trending, by location
2Yes
Live scrape
GET/v1/scrape/x/user
Live X profile
2Yes
POST/v1/scrape/x/users
Live X profiles, batched
2Yes
Insights
GET/v1/insights/x/{handle}
Complete intelligence dossier for one X account
1No
GET/v1/insights/x/{handle}/engagement
Engagement metrics for one X account
1No
GET/v1/insights/x/{handle}/top-tweets
The account's permanently kept best posts
1No
GET/v1/insights/x/{handle}/viral-patterns
What makes this account's posts perform
1No
GET/v1/insights/x/{handle}/benchmark
This account against its follower cohort
1No
GET/v1/insights/x/leaders
Accounts ranked by how well they engage
1No
GET/v1/insights/x/coverage
How much of the catalog has tweet-level coverage
1No
POST/v1/insights/x/compare
Side-by-side metrics for up to ten accounts
1No
Trends
GET/v1/trends/x/movers
Biggest audience gains and losses for a day
1No
Graph
GET/v1/graph/x/overlap
Audience overlap between two X accounts
1No
GET/v1/graph/x/{handle}/similar
Lookalike X accounts by shared audience
1No
GET/v1/graph/x/{handle}/notable-followers
Followers of an X account ranked by their own influence
1No
GET/v1/graph/x/{handle}
Follow-graph coverage for one X account
1No

What we can't do

Read this before you build on it. These are the gaps in the X (Twitter) data as of 26 November 2026.

  • Live endpoints are slow and can fail under load

    Live X reads take between 2 and 25 seconds, and at very busy moments they can return 503. Set a 30 second timeout and retry 503 responses; the catalog endpoints answer in a fraction of a second.

  • The follower graph is partial

    Follower and following lists from the catalog contain only edges between accounts already in the catalog. For a very large account that is a small share of its real followers.

  • Catalog coverage is partial

    The catalog holds about 33.0M X accounts, not every one that exists. An account that is not in it will not appear in directory results.

  • Public data only

    Private, protected and locked content is never returned, on any platform.

  • Read-only

    The API reads data. It cannot post, like, follow, message or change anything on a platform.

X API pricing compared

The official X API now charges per read on a prepaid pay-per-use balance. Here are those read prices next to our effective price per 1,000 on each plan. Catalog reads and live X reads are priced differently, so both are shown.

OptionMonthly pricePer 1K catalog readsPer 1K live X reads
Official X API: read a postpay as you gon/a$5.00
Official X API: read a userpay as you gon/a$10.00
Handles API Free (100 credits)$0n/an/a
Handles API Starter (15,000 credits)$29$1.93$3.87
Handles API Pro (75,000 credits)$99$1.32$2.64
Handles API Business (300,000 credits)$299$1.00$1.99
Handles API Scale (1,200,000 credits)$799$0.67$1.33

Catalog reads (profile and history from our own database) are the cheap part. Live X reads cost 2 credits each, so they cost twice the catalog price per 1,000; on every paid plan that is still below both official read prices above.

We bill per request, whatever number of items it returns; the official API bills per post or user read. Per-1K figures here are the plan price divided by included credits, before any overage. Official prices: docs.x.com pricing, as of November 2026.

For write prices, the monthly read cap, rate limits and what is still free, see the full guide to X API pricing in 2026.

X API questions

Is this the official X API?

No. Handles API is an independent service that returns publicly available data. It is not affiliated with, endorsed by or sponsored by X Corp.. Use the official API if you need to post, read direct messages or act on behalf of a user.

How much does the X API cost?

Free is a one-time trial of 100 credits, no card, no renewal. Paid plans renew every month and start at $29 a month for 15,000 credits and go up to $799 a month for 1,200,000. A catalog read costs 1 credit and a live read costs 2 credits.

How does the price compare with the official X API?

The official pay-per-use read price is $5 per 1,000 posts and $10 per 1,000 users (docs.x.com, November 2026). Our catalog reads cost 1 credit and our live X reads 2 credits, so the effective price per 1,000 depends on your plan. The comparison table on this page lists every plan.

How long do live X calls take?

Between 2 and 25 seconds, depending on the endpoint. Catalog calls such as /v1/directory/x/{handle} are served from our database and answer much faster. Use a 30 second timeout for live calls.

How fresh is the X data?

Catalog reads come from our own database, which keeps a daily series per account; GET /v1/directory reports the date each platform's daily statistics run through. Live reads (2 credits) fetch the platform at request time.

Can I read protected accounts or private posts?

No. A protected account answers 404 and nothing non-public is ever returned.