# X (Twitter) API

> Search tweets as X’s search box does, get a tweet or a profile, list a tweet’s replies, an account’s tweets, followers and following, then your own timeline and bookmarks, all read with your connected X account. JSON with the same fields every time, from your code or your agent.

9 operations, 1 to 20 credits a call, one API key. The page for people: https://www.lobstr.io/store/x

## Operations

### Search tweets: `x/tweets/search`

The tweets of a search on X (Twitter), 20 a page, with their text, counts, media and author, read with your connected X account.

20 credits a call, 20 tweets a page. Its page: https://www.lobstr.io/store/x/tweets/search. Every option, field and error: https://api.lobstr.io/v2/catalog/x/tweets/search.md

| Option | Takes | Default | What it is |
| --- | --- | --- | --- |
| `query` (required) | string |  | The search, as typed in X's search box, passed to X as it is. |
| `tab` | top, latest | `top` | The tab of X's results: top, X's own selection (it can show a few tweets of one conversation together), or latest, newest first. |
| `account` | string |  | The connected X account to search with (GET /v2/accounts). |

### Get a tweet: `x/tweets/get`

One tweet on X (Twitter), by its address or its id: its text, counts, media, author, the tweet it quotes or answers, read with your connected X account.

1 credit a call. Its page: https://www.lobstr.io/store/x/tweets/get. Every option, field and error: https://api.lobstr.io/v2/catalog/x/tweets/get.md

| Option | Takes | Default | What it is |
| --- | --- | --- | --- |
| `tweet` (required) | string |  | The tweet: its address on x.com (https://x.com/nasa/status/2122404409292337592) or its id alone (2122404409292337592). |
| `account` | string |  | The connected X account to read with (GET /v2/accounts). |

### List a tweet's replies: `x/replies/list`

The replies to a tweet on X (Twitter), in X's own order, about 35 a page, each with its text, counts, media and author, read with your connected X account.

20 credits a call, 40 tweets a page. Its page: https://www.lobstr.io/store/x/replies/list. Every option, field and error: https://api.lobstr.io/v2/catalog/x/replies/list.md

| Option | Takes | Default | What it is |
| --- | --- | --- | --- |
| `tweet` (required) | string |  | The tweet whose replies you want: its address on x.com (https://x.com/nasa/status/2122404409292337592) or its id alone (2122404409292337592). |
| `account` | string |  | The connected X account to read with (GET /v2/accounts). |

### List a profile's tweets: `x/tweets/list`

The tweets of a profile on X (Twitter), tab by tab (posts, replies, reposts, videos, photos), newest first, 20 or so a page, with their text, counts, media and author, read with your connected X account.

20 credits a call, 20 tweets a page. Its page: https://www.lobstr.io/store/x/tweets/list. Every option, field and error: https://api.lobstr.io/v2/catalog/x/tweets/list.md

| Option | Takes | Default | What it is |
| --- | --- | --- | --- |
| `profile` (required) | string |  | The profile: its handle, with or without the @ (nasa, @nasa), or its address on x.com (https://x.com/nasa). |
| `tab` | posts, replies, reposts, videos, photos | `posts` | The tab of the profile's page: posts, replies, reposts, or one of the two lists of its Media tab, videos or photos. |
| `account` | string |  | The connected X account to read with (GET /v2/accounts). |

### Get a profile: `x/profiles/get`

A profile on X (Twitter) by its handle: its name, bio, links, follower and tweet counts, verification, affiliation and images, read with your connected X account.

1 credit a call. Its page: https://www.lobstr.io/store/x/profiles/get. Every option, field and error: https://api.lobstr.io/v2/catalog/x/profiles/get.md

| Option | Takes | Default | What it is |
| --- | --- | --- | --- |
| `profile` (required) | string |  | The profile: its handle, with or without the @ (nasa, @nasa), or its address on x.com (https://x.com/nasa). |
| `account` | string |  | The connected X account to read with (GET /v2/accounts). |

### List a profile's followers: `x/followers/list`

The accounts that follow a profile on X (Twitter), the most recent first, each with its name, bio, counts and verification, read with your connected X account.

20 credits a call, 70 profiles a page. Its page: https://www.lobstr.io/store/x/followers/list. Every option, field and error: https://api.lobstr.io/v2/catalog/x/followers/list.md

| Option | Takes | Default | What it is |
| --- | --- | --- | --- |
| `profile` (required) | string |  | The profile whose followers you want: its handle, with or without the @ (nasa, @nasa), or its address on x.com (https://x.com/nasa). |
| `tab` | followers, verified_followers, followers_you_know | `followers` | The tab of the followers' page: followers (every follower), verified_followers (the followers with a check mark), or followers_you_know (the followers your connected account follows: empty when it follows none of them). |
| `account` | string |  | The connected X account to read with (GET /v2/accounts). |

### List a profile's following: `x/following/list`

The accounts a profile follows on X (Twitter), the most recently followed first, each with its name, bio, counts and verification, read with your connected X account.

20 credits a call, 70 profiles a page. Its page: https://www.lobstr.io/store/x/following/list. Every option, field and error: https://api.lobstr.io/v2/catalog/x/following/list.md

| Option | Takes | Default | What it is |
| --- | --- | --- | --- |
| `profile` (required) | string |  | The profile whose followed accounts you want: its handle, with or without the @ (nasa, @nasa), or its address on x.com (https://x.com/nasa). |
| `account` | string |  | The connected X account to read with (GET /v2/accounts). |

### List your home timeline: `x/timeline/list`

The home timeline of your connected X (Twitter) account, its Following tab (the tweets of the accounts it follows, newest first) or its For you tab (X's own selection for it), each tweet with its text, counts, media and author.

20 credits a call, 60 tweets a page. Its page: https://www.lobstr.io/store/x/timeline/list. Every option, field and error: https://api.lobstr.io/v2/catalog/x/timeline/list.md

| Option | Takes | Default | What it is |
| --- | --- | --- | --- |
| `tab` | following, for_you | `following` | The tab of the home page: following, the tweets of the accounts the connected account follows, newest first; for_you, the tweets X selects for the account, in X's own order. |
| `account` | string |  | The connected X account whose timeline is read (GET /v2/accounts). |

### List your bookmarks: `x/bookmarks/list`

The tweets your connected X (Twitter) account bookmarked, the last bookmarked first, 20 a page, each with its text, counts, media and author.

20 credits a call, 20 tweets a page. Its page: https://www.lobstr.io/store/x/bookmarks/list. Every option, field and error: https://api.lobstr.io/v2/catalog/x/bookmarks/list.md

| Option | Takes | Default | What it is |
| --- | --- | --- | --- |
| `account` | string |  | The connected X account whose bookmarks are read (GET /v2/accounts). |

## Call it

From code, one endpoint for every operation:

```bash
curl https://api.lobstr.io/v2/run \
  -H "Authorization: Bearer $LOBSTR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"source":"x","operation":"tweets/search","options":{"query":"from:nasa since:2026-11-01","tab":"latest"}}'
```

The answer holds `results` (the records), `count`, `cost.credits` and `next`: the whole call for the following page, to send as it is; null on the last page. SDKs: `pip install lobstrio`, `npm install lobstrio` (https://docs.lobstr.io/sdks).

From an AI agent: the MCP server https://api.lobstr.io/v2/mcp with your API key, in Claude, ChatGPT, Cursor or any MCP client. Its tools: find_operations, get_operation, run_operation, get_balance, send_feedback. Setup for each agent: https://docs.lobstr.io/agents

The API key is in the dashboard, under API: https://app.lobstr.io/dashboard/api. No account yet? An agent can get one for the person it works for: https://www.lobstr.io/auth.md

## Why lobstr.io

- **One key, every source**: No developer app, no OAuth, no X credits to buy in advance. One lobstr.io key reaches X and 20 other sources, from Google Maps to LinkedIn Sales Navigator, on the same credits.
- **Built for agents**: Five MCP tools, nothing to learn: your agent finds the operation, reads what it takes and gives, runs it and follows next. Your code gets the same through the SDKs or plain HTTP.
- **Measured in public**: Every call of the last 90 days counts in the figures on this page, and a failed call is free. Each operation is also run every 3 hours by our own checks.

## lobstr.io or the X API v2

| | X API v2 | lobstr.io |
| --- | --- | --- |
| Price | $0.005 a post read, $0.010 a profile or a follower, from credits bought in X’s Developer Console | 1 credit a tweet or a profile, 20 a page of tweets, replies or accounts: $0.50 to $2 per 1,000 credits |
| Posts a month | 3 million read at most on pay-per-use, more on an Enterprise plan | As many as your credits hold, at the pace X gives each connected account |
| Reads with | Your app: a Bearer token for public data, OAuth 2.0 to act for a user | Your own X account, connected once with the lobstr.io Chrome extension |
| To start | A developer account, an app and credits bought upfront | An API key, with 100 free credits a month |

From X’s developer documentation, 3 December 2026.

## Price

1 to 20 credits a call, whatever the page holds; an empty page and a failed call are free. The plans:

- Free: $0 a month, 100 credits a month
- Starter: $20 a month, 10,000 credits a month
- Pro: $100 a month, 100,000 credits a month
- Team: $500 a month, 1,000,000 credits a month

Every plan compared: https://www.lobstr.io/pricing.md

## X (Twitter) API reliability

Every call of the last 90 days, from our users and from our own checks. Each operation is also run every 3 hours by our own checks. A failed call is free.

| Operation | Calls | Successful | Median call |
| --- | --- | --- | --- |
| `x/tweets/search` | 1,101 | 99.27% | 2.2 s |
| `x/tweets/get` | 134 | 100.00% | 2.4 s |
| `x/replies/list` | 138 | 100.00% | 2.6 s |
| `x/tweets/list` | 1,189 | 99.16% | 2.5 s |
| `x/profiles/get` | 170 | 98.82% | 1.5 s |
| `x/followers/list` | 255 | 100.00% | 2.2 s |
| `x/following/list` | 3,046 | 99.61% | 2.4 s |
| `x/timeline/list` | 126 | 100.00% | 3.0 s |
| `x/bookmarks/list` | 122 | 100.00% | 2.3 s |

## X (Twitter) API FAQ

### Is there an official X API?

Yes: the X API, once the Twitter API, paid per use from credits bought in advance, up to 3 million posts read a month before an Enterprise plan. It reads with your developer app’s keys. lobstr.io reads X as your own account sees it: a search, a tweet and its replies, a profile, its followers, your timeline and bookmarks, with an API key.

### Do I need an X account?

Yes. Every X operation reads with one of your X accounts, connected once with the [lobstr.io Chrome extension](https://www.lobstr.io/chrome-extension). Pass its id as account, or leave it out and the first of your X accounts with a free slot reads. X counts each account’s requests, about 50 searches every 15 minutes. x/timeline/list and x/bookmarks/list read the connected account’s own timeline and bookmarks, no one else’s. lobstr.io never takes an account in silence.

### Can I search tweets with X’s operators?

Yes. Give x/tweets/search the search as you would type it in X’s search box, operators included (from:nasa lang:en min_faves:100, since: and until: for dates), on its Top or Latest tab: 20 tweets a page, each with its text, counts, media and author. An empty page is not the end of a search: follow next until it is null.

### Can I list an account’s followers?

Yes. x/followers/list gives 50 to 70 followers a page, the most recent first, each as x/profiles/get gives a profile, further than x.com’s own page scrolls. Its tabs also give the verified followers alone, or those your account follows. x/following/list gives the accounts it follows.

### Do I need an X developer account?

No. A lobstr.io API key is all it takes, with no X credits to buy, and the free plan gives 100 credits a month.

### What does a call cost?

1 credit for a tweet or a profile (x/tweets/get, x/profiles/get), 20 for a page of tweets, replies or accounts, a short page included: 1,000 credits cost $0.50 to $2 depending on the plan. An empty page, a busy account and a failed call are free.

### Can my AI agent use it?

Yes. Add the lobstr.io MCP server to Claude, ChatGPT, Cursor or any MCP client: the agent finds the operation, runs it and follows next by itself. [Setup for each agent](https://docs.lobstr.io/agents).

### Is there an SDK?

Yes: lobstrio, on PyPI and npm, with a typed method for each operation (client.x.tweets.search in Python) and a loop over every page. [The SDKs](https://docs.lobstr.io/sdks).

### Can I combine X with other sources?

Yes, on the same key and the same credits. Pass a profile’s website_url to [websites/contacts/get](https://www.lobstr.io/store/websites/contacts/get) for the emails on its website, then read what YouTube and Google News say on the same subject. An agent chains them by itself.

### How reliable is the X (Twitter) API on lobstr.io?

Every call of the last 90 days is drawn on this page, day by day, and a failed call is free. Each operation is also run every 3 hours by our own checks, so a change on X shows within 3 hours.

## Related sources

- [YouTube: Search videos](https://www.lobstr.io/store/youtube.md): The videos on the same subject, each with its views, duration and channel. 1 credit a call.
- [Google News: Search articles](https://www.lobstr.io/store/google_news.md): The news on the same subject, up to 100 articles as Google ranks them, each with its publisher’s link. 1 credit a call.
- [Websites: Get a website's contacts](https://www.lobstr.io/store/websites.md): The emails, phones and profiles on an account’s own website: pass it the profile’s website_url. 1 credit a call.
- [LinkedIn Sales Navigator: Search leads](https://www.lobstr.io/store/sales_navigator.md): The people behind the accounts: the decision makers of a Sales Navigator search, with your account. 25 credits a call.
