# X (Twitter) Post details API (twitter.post)

- Canonical page: https://everyinfra.com/en/twitter-api/post
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "twitter", "action": "post", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: list
- Mode: sync; add "mode": "async" for slow tasks

X (Twitter) Post details reads one public post by its numeric `id` and returns the full text, the post link, like, repost, reply and view counts, the publish time, and the author's handle, display name, profile link and follower count. Journalists, analysts and campaign teams use it to check how a specific post performed, to confirm the exact wording and time of a statement before quoting it, or to refresh the numbers on post links collected elsewhere, such as in a campaign report.

`id` is the number after /status/ in a link like x.com/nasa/status/<number>; send the number only, not the link. Keep it a string from request to storage, because X post IDs are too large for JavaScript to hold exactly and a rounded ID no longer matches the post. `tweet_id` is an alternative name for the same input, kept for compatibility; `id` stays required and wins when both are present.

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| id | not declared | yes | not declared | Numeric post ID for post or comments, corresponding to the digits following x.com/username/status/. It is recommended to store this as a string to prevent JavaScript large integer precision loss; do not pass full URLs into id. |
| tweet_id | not declared | no | not declared | Compatibility input for id, with lower precedence than id, which does not replace the required public id field. |
| limit | integer (1–) | no | not declared | The most rows to return in this call, an integer of 1 or more. The default applies when you leave it out, and a call can return fewer rows. |

## 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 |
| is_pinned | platform-native meaning |
| reply_to_id | platform-native meaning |
| reply_to_user_id | platform-native meaning |
| reply_to | platform-native meaning |
| source | 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_following_count | platform-native meaning |
| author_post_count | platform-native meaning |
| author_media_count | platform-native meaning |
| author_created_at | platform-native meaning |
| author_banner_url | platform-native meaning |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## 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": "post",
  "params": {
    "id": "2103610284464316469"
  }
}'
```

```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": "post",
        "params": {
            "id": "2103610284464316469",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-10-24T18:28:34Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "twitter",
  "action": "post",
  "results": [
    {
      "id": "2103610284464316469",
      "url": "https://x.com/NASA/status/2103610284464316469",
      "text": "With @•••, we’ll provide an update on Starliner development and plans for regular crew flights to and from the @••• Watch live Monday, Sept. 28 at 3pm ET: https://t.co/bxg2gpZzog https://t.co/OJaD49OyHh",
      "like_count": 4335,
      "retweet_count": 531,
      "reply_count": 235,
      "view_count": 998736,
      "posted_at": "2026-09-25T22:19:09+00:00",
      "author_username": "•••",
      "author_name": "•••",
      "author_url": "https://x.com/•••",
      "author_follower_count": 92311896,
      "quote_count": 66,
      "bookmark_count": 159,
      "language": "en",
      "conversation_id": "2103610284464316469",
      "is_reply": false,
      "is_quote": false,
      "is_repost": false,
      "is_pinned": false,
      "media": [
        {
          "type": "photo",
          "url": "https://pbs.twimg.com/media/HTGGPVlWUAAeapm.jpg",
          "width": 4096,
          "height": 2731
        }
      ],
      "mentions": [
        "BoeingSpace",
        "Space_Station"
      ],
      "links": [
        "https://go.nasa.gov/4AA9Ii5"
      ],
      "author_id": "•••",
      "author_avatar_url": "https://pbs.twimg.com/•••",
      "author_bio": "•••",
      "author_is_verified": true,
      "author_following_count": 115,
      "author_post_count": 74454,
      "author_media_count": 28207,
      "author_created_at": "2007-12-19T20:20:32+00:00",
      "author_banner_url": "https://pbs.twimg.com/profile_banners/11348282/1788992290",
      "platform": "twitter"
    }
  ],
  "count": 1,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### Where do I find the post `id`?

Open the post on x.com and look at the address: it ends in /status/ followed by a long number, and that number is the `id`. Copy only the number into the request, and do not put the full link in `id`.

### Why should the post ID be sent as a string?

X post IDs run to 19 digits, beyond the largest integer JavaScript can represent exactly, so parsing one as a number silently changes its last digits. Send `id` as a string and keep it as text in your database, so the post you look up is the one you meant.

### Does it return the replies to the post?

No, it returns the post itself. The replies come from the X (Twitter) Comments capability, which takes the same `id`. `reply_count` here tells you how many replies the post has drawn, which helps you decide whether reading them is worth a call.

## 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
