# X (Twitter): List your home timeline

`x/timeline/list` · version 1.5.0 · pilot · 20 credits a call

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.

Categories: Social media

## When to use

You want what your own X account sees on its home page: with `tab: following` (the default), the tweets, replies and reposts of the accounts it follows, newest first; with `tab: for_you`, the tweets X selects for it, in X's own order, which changes from one call to the next. Each is a tweet with the same fields as x/tweets/search. X groups a reply with the tweet it answers: both are given, one after the other. The ads X places in the timeline are given where X puts them, each marked `is_promoted: true` (X picks them for the account that reads). Reading the timeline here does not tell X which tweets were seen. Follow `next` unchanged for more; an empty page is not the end of the list, keep following `next` until it is null (empty pages are free). X never says a list is over (it gives a cursor on every page): `next` is null when X gives none, or after three empty pages in a row, a rule of this API. It reads the timeline of the connected account itself (POST /v2/accounts), no one else's, and X counts each account's requests: about 500 pages for 15 minutes. For one profile's tweets, use x/tweets/list.

## Call

```bash
curl https://api.lobstr.io/v2/run \
  -H "Authorization: Bearer $LOBSTR_API_KEY" \
  -H "content-type: application/json" \
  -d '{"source": "x", "operation": "timeline/list", "options": {"tab": "following"}}'
```

It answers:

```json
{"object": "run", "status": "succeeded", "count": 60, "has_more": true, "next": {"source": "x", "operation": "timeline/list", "options": {...}},
 "cost": {"credits": 20}, "balance": {"credits": 9990}, "results": [...]}
```

`cost` and `balance` are objects: a call's credits are `cost.credits`. `results` holds the records (below). `next` is the whole call for the following page: send it as it is; `null` on the last page.

Beside `options`, the call takes:

| Parameter | Type | Description |
|---|---|---|
| `fields` | array of string | The record fields to keep, by path (`title`, `address.city`); `object`, `id` and `position` always come. Left out: every field. |
| `limit` | integer | Only the first N records of this call (1 to 1000), in the call's order; the call costs the same, and `next` keeps the limit. Left out: every record. |

## Options

| Option | Type | Required | Default | Description |
|---|---|---|---|---|
| `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). Left out, the platform takes the first of your X accounts with a free slot. |
| `cursor` | string |  |  | Where to go on, from `next` in an answer, as it is: opaque, and only for the tab it was given with (otherwise `invalid_cursor`). Leave it out to start at the newest tweets. |

## Record

Each item of `results`. Every field is always present, `null` when the site gives nothing.

| Field | Type | Description |
|---|---|---|
| `object` | `"tweet"` |  |
| `id` | string | The tweet's id. |
| `position` | integer | Its rank in the timeline, across pages. |
| `is_promoted` | boolean | Whether it is an ad X places among the timeline's tweets: a tweet of an advertiser, shown to the connected account that reads. Given where X puts it. |
| `url` | string (uri) | The tweet on x.com. |
| `text` | string | null | The whole text, a long tweet's included (is_long). Links are X's short ones (t.co), given in full in `urls` and `media`. |
| `language` | string | null | The language X detected: ISO 639-1, or X's own codes (und, zxx, qme...). |
| `created_at` | string | null (date-time) | When it was posted, UTC. |
| `reply_count` | integer | null |  |
| `retweet_count` | integer | null | Reposts. |
| `quote_count` | integer | null |  |
| `like_count` | integer | null |  |
| `bookmark_count` | integer | null |  |
| `view_count` | integer | null | Null when X shows no view count for it. |
| `author` | object | null |  |
| `author.id` | string | The account's id. |
| `author.handle` | string | null | Its @handle, without the @. |
| `author.name` | string | null |  |
| `author.url` | string | null (uri) |  |
| `author.description` | string | null | The bio. |
| `author.description_language` | string | null |  |
| `author.description_urls` | array | The links of the bio |
| `author.location` | string | null | As the account wrote it. |
| `author.website_url` | string | null | The profile's link, in full. |
| `author.created_at` | string | null (date-time) |  |
| `author.follower_count` | integer | null |  |
| `author.following_count` | integer | null |  |
| `author.tweet_count` | integer | null |  |
| `author.media_count` | integer | null |  |
| `author.like_count` | integer | null | The tweets the account liked. |
| `author.is_blue_verified` | boolean | null | The blue check of a paying subscriber. |
| `author.is_verified` | boolean | null | X's earlier verification. |
| `author.verified_type` | string | null | business or government, when X says so. |
| `author.is_protected` | boolean | null |  |
| `author.is_possibly_sensitive` | boolean | null |  |
| `author.professional` | object | null |  |
| `author.professional.type` | string | null | business or creator. |
| `author.professional.categories` | array |  |
| `author.avatar_url` | string | null |  |
| `author.banner_url` | string | null |  |
| `author.avatar_shape` | string | null | circle, square (organizations), hexagon. |
| `author.pinned_tweet_ids` | array of string |  |
| `author.affiliation` | object | null | The label the account carries next to its name: the organization whose badge it has, or X's own word on it (Automated); null without one. |
| `author.affiliation.name` | string | null | The organization's name on the badge. |
| `author.affiliation.url` | string | null | The organization's profile, as X links it. |
| `author.affiliation.badge_url` | string | null | The badge's image. |
| `author.affiliation.type` | string | null | business_label for an organization's badge, automated_label for an account X labels as automated. |
| `author.affiliation.detail` | string | null | The label's own sentence when it has one: Automated by @marc_krenn. |
| `author.affiliation.account` | object | null | The account the label's sentence names (who runs an automated account); null without one. |
| `author.affiliation.account.id` | string |  |
| `author.affiliation.account.handle` | string | null |  |
| `in_reply_to` | object | null | The tweet it replies to; null when it is not a reply. |
| `in_reply_to.tweet_id` | string | null |  |
| `in_reply_to.user_id` | string | null |  |
| `in_reply_to.handle` | string | null |  |
| `reply_policy` | string | null | Who may reply, when the conversation's author restricted it, in X's own word: ByInvitation (the accounts the author follows or mentions), Community (the members of its community). Null when anyone may reply. |
| `is_quote` | boolean | null |  |
| `quoted_tweet` | object | null | The tweet it quotes, with a tweet's fields but position, quoted_tweet, retweeted_tweet, source_url and observed_at. Null when it quotes none, or one X no longer shows (ids.quoted_tweet_id still says which). |
| `retweeted_tweet` | object | null | The tweet it reposts, with the same fields as quoted_tweet. |
| `urls` | array |  |
| `urls[].url` | string | null | The link in full. |
| `urls[].display` | string | null | As the page shows it. |
| `urls[].short_url` | string | null | X's t.co link, as it stands in the text. |
| `hashtags` | array | Without the #. |
| `symbols` | array | Cashtags, without the $. |
| `smart_tags` | array | The assets the tweet tags, a kind of tag X added in November 2026 (tokens so far); empty on most tweets. Not the cashtags of `symbols`. |
| `smart_tags[].text` | string | null | The tag as the text writes it: a chain and the asset on it (hyperliquid:native). |
| `smart_tags[].name` | string | null | The asset's name (Hyperliquid). |
| `smart_tags[].ticker` | string | null | Its ticker (HYPE). |
| `mentions` | array |  |
| `mentions[].id` | string | null |  |
| `mentions[].handle` | string | null |  |
| `mentions[].name` | string | null |  |
| `media` | array |  |
| `media[].id` | string | null |  |
| `media[].type` | string | null | photo, video or animated_gif. |
| `media[].url` | string | null | The image, or a video's poster. |
| `media[].page_url` | string | null |  |
| `media[].width` | integer | null |  |
| `media[].height` | integer | null |  |
| `media[].alt_text` | string | null |  |
| `media[].duration_ms` | integer | null |  |
| `media[].video_url` | string | null | The video's file of the highest bitrate. |
| `media[].view_count` | integer | null |  |
| `card` | object | null | The preview X draws under a tweet for a link, a poll or a player. |
| `card.type` | string | null | X's name of the card: summary, summary_large_image, player... |
| `card.url` | string | null |  |
| `card.title` | string | null |  |
| `card.description` | string | null |  |
| `card.domain` | string | null |  |
| `card.image_url` | string | null |  |
| `article` | object | null | An X Article attached to the tweet (its title and preview, not its text). |
| `article.id` | string | null |  |
| `article.title` | string | null |  |
| `article.preview_text` | string | null |  |
| `article.cover_url` | string | null |  |
| `article.published_at` | string | null (date-time) |  |
| `article.modified_at` | string | null (date-time) |  |
| `place` | object | null | The place its author tagged it with (Ozuoba, Nigeria); null without one, which is most tweets. X gives the place and the box around it, never the point it was posted from. |
| `place.id` | string | null | X's id of the place. |
| `place.name` | string | null |  |
| `place.full_name` | string | null | The name with its region or country, as the page writes it. |
| `place.type` | string | null | city, admin, country, neighborhood, poi. |
| `place.country` | string | null |  |
| `place.country_code` | string | null | Two letters. |
| `place.bounding_box` | array | The corners of the box around the place, each longitude then latitude. |
| `community_note` | object | null | The Community Note X shows under the tweet: context written by readers, shown once enough of them rated it helpful. Null when the tweet carries none. |
| `community_note.id` | string | The note's id. |
| `community_note.title` | string | null | X's own heading over the note: Readers added context they thought people might want to know. |
| `community_note.text` | string | null | The note's text; its links are X's short ones (t.co), given in full in `urls`. |
| `community_note.language` | string | null | The note's language, when X says it: en. |
| `community_note.url` | string | null | The note's own page on X. |
| `community_note.urls` | array |  |
| `community_note.urls[].url` | string | null |  |
| `community_note.urls[].short_url` | string | null |  |
| `community_id` | string | null | The id of the X community the tweet was posted in (x.com/i/communities/<id>); null for a tweet posted to everyone. |
| `grok_conversation` | array | null | The Grok conversation the tweet shares, when it shares one: its messages in X's own order. X names no speaker; on every conversation read the first message is the person's question and the second Grok's answer. Null for a tweet that shares none. |
| `grok_conversation[].text` | string | null | The message, as written (Grok's answers are in Markdown). |
| `grok_conversation[].media_urls` | array of string | The images the message carries. |
| `grok_conversation[].source_urls` | array of string | The web pages Grok read for this message, in X's order, repeats included. |
| `grok_conversation[].source_tweet_ids` | array of string | The posts on X Grok read for this message. |
| `grok_conversation[].about_tweet_id` | string | null | The post the message is about, when it asks Grok about one (x/tweets/get reads it). |
| `posted_with` | string | null | The app it was posted with, when X says it: Twitter Web App. |
| `is_paid_promotion` | boolean | null | The author's own disclosure of a paid partnership. |
| `has_ai_generated_media` | boolean | null | X's label of media made with AI. |
| `is_possibly_sensitive` | boolean | null |  |
| `is_long` | boolean | A tweet longer than 280 characters; text holds it whole. |
| `edit` | object | null |  |
| `edit.tweet_ids` | array of string | Its versions, the first to the last. |
| `edit.editable_until` | string | null (date-time) |  |
| `edit.edits_remaining` | integer | null |  |
| `ids` | object |  |
| `ids.tweet_id` | string |  |
| `ids.conversation_id` | string | null | The first tweet of its thread. |
| `ids.author_id` | string | null |  |
| `ids.quoted_tweet_id` | string | null |  |
| `source_url` | string (uri) | The home page of x.com, where the connected account sees these tweets. |
| `observed_at` | string (date-time) | When it was read, UTC. |

Example:

```json
{
  "object": "tweet",
  "id": "2122000000000000001",
  "position": 1,
  "is_promoted": false,
  "url": "https://x.com/NASA/status/2122000000000000001",
  "text": "Liftoff of the resupply mission to the International Space Station. https://t.co/abc123",
  "language": "en",
  "created_at": "2026-11-15T18:42:10Z",
  "reply_count": 312,
  "retweet_count": 1840,
  "quote_count": 96,
  "like_count": 12950,
  "bookmark_count": 410,
  "view_count": 1204500,
  "author": {
    "id": "11348282",
    "handle": "NASA",
    "name": "NASA",
    "url": "https://x.com/NASA",
    "description": "Exploring the secrets of the universe for the benefit of all.",
    "description_language": "en",
    "description_urls": [],
    "location": "Pale Blue Dot",
    "website_url": "https://www.nasa.gov/",
    "created_at": "2007-12-19T20:20:32Z",
    "follower_count": 86000000,
    "following_count": 170,
    "tweet_count": 73000,
    "media_count": 28000,
    "like_count": 16000,
    "is_blue_verified": true,
    "is_verified": false,
    "verified_type": "government",
    "is_protected": false,
    "is_possibly_sensitive": false,
    "professional": null,
    "avatar_url": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_normal.jpg",
    "banner_url": "https://pbs.twimg.com/profile_banners/11348282/1763000000",
    "avatar_shape": "square",
    "pinned_tweet_ids": [],
    "affiliation": null
  },
  "in_reply_to": null,
  "reply_policy": null,
  "is_quote": false,
  "quoted_tweet": null,
  "retweeted_tweet": null,
  "urls": [
    {
      "url": "https://www.nasa.gov/live",
      "display": "nasa.gov/live",
      "short_url": "https://t.co/abc123"
    }
  ],
  "hashtags": [],
  "symbols": [],
  "smart_tags": [],
  "mentions": [],
  "media": [],
  "card": null,
  "article": null,
  "place": null,
  "community_note": null,
  "community_id": null,
  "grok_conversation": null,
  "posted_with": null,
  "is_paid_promotion": null,
  "has_ai_generated_media": null,
  "is_possibly_sensitive": false,
  "is_long": false,
  "edit": {
    "tweet_ids": [
      "2122000000000000001"
    ],
    "editable_until": "2026-11-15T19:42:10Z",
    "edits_remaining": 5
  },
  "ids": {
    "tweet_id": "2122000000000000001",
    "conversation_id": "2122000000000000001",
    "author_id": "11348282",
    "quoted_tweet_id": null
  },
  "source_url": "https://x.com/home",
  "observed_at": "2026-11-16T15:00:00Z"
}
```

## Price

20 credits per call that returns tweets, a short page included. An empty answer, a failed call and a busy account are free.

## Errors

| Code | Status | Retry | Message |
|---|---|---|---|
| `invalid_tab` | 422 | no | tab is one of: following, for_you. |
| `account_required` | 422 | no | You have no connected X account. Connect one with POST /v2/accounts {"site": "x", "cookies": ...}: the cookies of a browser where you are logged in to x.com (https://docs.lobstr.io/accounts). |
| `account_rate_limited` | 429 | yes | This X account cannot read the timeline right now: it pauses a couple of seconds between two pages, and X counts each account's requests (about 500 pages for 15 minutes). `retry_after` says when it can again, in seconds. Retrying before then gets this same answer: nothing is queued. |
| `account_unusable` | 409 | no | X logged this account out, or locked it. Open x.com in the browser the account comes from, then connect it again with POST /v2/accounts and fresh cookies (the same account keeps its id). |
| `site_unavailable` | 503 | yes | X did not answer properly; retry later (not charged). |
| `unexpected_answer` | 424 | no | X answered in a shape we do not read yet; we are told and fix it (not charged). |
| `missing_api_key` | 401 | no | No API key: send it as `Authorization: Bearer <key>`. |
| `invalid_api_key` | 401 | no | The key is not valid, or not anymore. |
| `insufficient_credits` | 402 | no | The call costs more credits than are left. |
| `unknown_operation` | 404 | no | No such source and operation in the catalog. |
| `timeout` | 408 | yes | The call did not finish within its deadline (not charged). |
| `invalid_body` | 422 | no | The body is not a call: source, operation, options. |
| `invalid_options` | 422 | no | An option is missing or out of its contract; `param` names it. |
| `invalid_idempotency_key` | 400 | no | The Idempotency-Key header is not printable ASCII, or too long. |
| `concurrency_limit` | 429 | yes | The plan's calls at a time are all in progress (Free 1, Starter 2, Pro 10, Team 50); retry when one has finished (not charged, never queued). |
| `service_busy` | 503 | yes | Too many calls at once on the account; retry in a few seconds. |
| `balance_unavailable` | 503 | yes | The balance could not be read; retry in a few seconds. |

## Changelog

- **1.5.0** (2026-11-22): New field `grok_conversation`: the Grok conversation a tweet shares, its messages in order with the images, web pages and posts each carries.
- **1.4.0** (2026-11-20): Two new fields in the author's `affiliation`: `detail`, the label's own sentence (Automated by @x), and `account`, the account that sentence names.
- **1.3.0** (2026-11-20): Two new fields on a tweet: `community_note`, the Community Note X shows under it (its text, links and page), and `community_id`, the X community it was posted in.
- **1.2.1** (2026-11-20): Said outright: X never says a list is over, so `next` is null when X gives no cursor or after three empty pages in a row, a rule of this API. Nothing changes in the answers.
- **1.2.0** (2026-11-19): New field `reply_policy`: who may reply to the tweet when its conversation's author restricted it, in X's own word (ByInvitation, Community); null when anyone may.
- **1.1.0** (2026-11-19): New tab `for_you`: the tweets X selects for the connected account, in X's own order.
- **1.0.0** (2026-11-19): First version: the Following tab of your connected X account's home timeline, page after page, each tweet with the same fields as a tweet of x/tweets/search, the ads X places among them marked `is_promoted`.

Schema: https://api.lobstr.io/v2/catalog/x/timeline/list · All operations: https://api.lobstr.io/v2/catalog.md
