# X (Twitter) List posts API (twitter.list_posts)

- Canonical page: [https://everyinfra.com/en/twitter-api/list_posts](https://everyinfra.com/en/twitter-api/list_posts?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "twitter", "action": "list_posts", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, one page of up to 20 per call; the number of rows varies from page to page and a short page is not the end (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page; no next_page_token means the end)
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; one call per page, tokens last 24 hours
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=twitter&action=list_posts

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| list_id | not declared | yes | not declared | Numeric ID of an X List, the digits after x.com/i/lists/ in its link, such as `84839422`, or the whole List link. A List that does not exist or is private returns an empty result, not charged. |
| page_token | not declared | no | not declared | Page token. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, with the other parameters unchanged. Each page holds up to 20 rows and is one call; `limit` has no effect. Tokens last 24 hours; the last page has no `next_page_token`. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| url | Link to the record on the platform. |
| text | Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
| like_count | Likes. null means the platform or this capability does not disclose it; it is not 0. |
| retweet_count | platform-native meaning |
| reply_count | Replies, usually replies to a comment. null means not disclosed. |
| view_count | Views or plays. null means not disclosed, not 0. |
| posted_at | Publish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00). Non-standard strings from the platform are passed through as is, so parse defensively. null means the platform does not disclose it. |
| author_username | Author's username (@handle), usually usable in URLs. |
| author_name | Author's display name. |
| author_url | Link to the author's profile on the platform. |
| author_follower_count | Author's follower count. null means not disclosed. |
| quote_count | platform-native meaning |
| bookmark_count | platform-native meaning |
| language | Content language code (for example zh, en) as judged by the platform; it can be wrong. |
| conversation_id | platform-native meaning |
| is_reply | platform-native meaning |
| is_quote | platform-native meaning |
| is_repost | platform-native meaning |
| reply_to_id | platform-native meaning |
| reply_to_user_id | platform-native meaning |
| reply_to | platform-native meaning |
| media | platform-native meaning |
| hashtags | Hashtags in the text, in order of appearance; absent when there are none. |
| mentions | platform-native meaning |
| links | platform-native meaning |
| author_id | Author's unique ID on the platform. |
| author_avatar_url | platform-native meaning |
| author_bio | platform-native meaning |
| author_is_verified | platform-native meaning |
| author_created_at | platform-native meaning |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
| reposted_by | platform-native meaning |
| reposted_at | platform-native meaning |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "twitter",
  "action": "list_posts",
  "params": {
    "list_id": "84839422"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "twitter",
        "action": "list_posts",
        "params": {
            "list_id": "84839422",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-11-21T07:22:03Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 20. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "twitter",
  "action": "list_posts",
  "results": [
    {
      "id": "•••",
      "url": "https://x.com/santiagomed/status/2123956145698042132",
      "text": "New on the X API: IP allowlisting.\n\nChoose exactly which IP addresses can use your API keys. If a key ever leaks, calls from anywhere else get blocked. One list covers all your apps.\n\nTurn it on in the Developer Console under Settings > IP allowlist.\n\nDocs: https://docs.x.com/fun…",
      "like_count": 47,
      "retweet_count": 5,
      "reply_count": 5,
      "view_count": 2555,
      "posted_at": "2026-11-21T01:46:20+00:00",
      "author_username": "s•••d",
      "author_name": "S•••o",
      "author_url": "https://x.com/•••",
      "author_follower_count": 5530,
      "quote_count": 1,
      "bookmark_count": 13,
      "language": "en",
      "conversation_id": "2123956145698042132",
      "is_reply": false,
      "is_quote": false,
      "is_repost": true,
      "author_id": "•••",
      "author_avatar_url": "https://pbs.twimg.com/•••",
      "author_bio": "•••",
      "author_is_verified": true,
      "platform": "twitter",
      "reposted_by": "XDevelopers",
      "reposted_at": "2026-11-21T01:46:54+00:00"
    },
    {
      "id": "•••",
      "url": "https://x.com/Sports/status/2123943867280241125",
      "text": "BIIIIIIG NIGHT OF BASKETBALL\n\nTime to tap in 👇💥 https://x.com/i/nba?page=home",
      "like_count": 9,
      "retweet_count": 2,
      "reply_count": 2,
      "view_count": 18267,
      "posted_at": "2026-11-21T00:57:33+00:00",
      "author_username": "S•••s",
      "author_name": "S•••s",
      "author_url": "https://x.com/•••",
      "author_follower_count": 13809487,
      "quote_count": 0,
      "bookmark_count": 0,
      "language": "en",
      "conversation_id": "2123943867280241125",
      "is_reply": false,
      "is_quote": false,
      "is_repost": false,
      "links": [
        "https://x.com/i/nba?page=home"
      ],
      "author_id": "•••",
      "author_avatar_url": "https://pbs.twimg.com/•••",
      "author_bio": "•••",
      "author_is_verified": true,
      "platform": "twitter"
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=twitter
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
