# X (Twitter) User reposts API (twitter.user_reposts)

- Canonical page: [https://everyinfra.com/en/twitter-api/user_reposts](https://everyinfra.com/en/twitter-api/user_reposts?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "twitter", "action": "user_reposts", "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=user_reposts

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| username | not declared | yes | not declared | X username, with or without @, or a profile link such as https://x.com/NASA. |
| 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": "user_reposts",
  "params": {
    "username": "nasa"
  }
}'
```

```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": "user_reposts",
        "params": {
            "username": "nasa",
        },
    },
    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": "user_reposts",
  "results": [
    {
      "id": "•••",
      "url": "https://x.com/NASASpox/status/2123892108893295099",
      "text": "Another week of exploration, partnership, and discovery at @NASA!\n\n📡 Voyager 1 reaches one light-day from Earth\n🇯🇵 @••• visits Japan and JAXA\n🧪 @••• ISS research heads home to advance medicine and future missions\n\nHere’s your NASA Minute!",
      "like_count": 397,
      "retweet_count": 48,
      "reply_count": 16,
      "view_count": 120614,
      "posted_at": "2026-11-20T21:31:53+00:00",
      "author_username": "N•••x",
      "author_name": "N•••x",
      "author_url": "https://x.com/•••",
      "author_follower_count": 20752,
      "quote_count": 5,
      "bookmark_count": 20,
      "language": "en",
      "conversation_id": "2123892108893295099",
      "is_reply": false,
      "is_quote": false,
      "is_repost": true,
      "media": [
        {
          "type": "video",
          "url": "https://pbs.twimg.com/media/HXmO91SXUAAwUEh.jpg",
          "width": 1080,
          "height": 1920,
          "duration_sec": 100.7,
          "video_url": "https://video.twimg.com/amplify_video/2123885768443674624/vid/avc1/1080x1920/XU-ESVN5knbA18fV.mp4?tag=29"
        }
      ],
      "mentions": [
        "NASA",
        "N•••n",
        "S•••n"
      ],
      "author_id": "•••",
      "author_avatar_url": "https://pbs.twimg.com/•••",
      "author_bio": "•••",
      "author_is_verified": true,
      "author_created_at": "2025-04-03T20:34:05+00:00",
      "platform": "twitter",
      "reposted_by": "NASA",
      "reposted_at": "2026-11-20T22:32:40+00:00"
    },
    {
      "id": "•••",
      "url": "https://x.com/NASASolarSystem/status/2123830179617186024",
      "text": "Millions of people fly every day, but there’s only one trip like this. 🚀\n\nSend your name nearly a billion miles to Saturn’s moon Titan with NASA’s Dragonfly mission. Boarding passes for you and your crew: https://go.nasa.gov/dragonfly-names",
      "like_count": 545,
      "retweet_count": 107,
      "reply_count": 23,
      "view_count": 121493,
      "posted_at": "2026-11-20T17:25:48+00:00",
      "author_username": "N•••m",
      "author_name": "N•••m",
      "author_url": "https://x.com/•••",
      "author_follower_count": 2977774,
      "quote_count": 13,
      "bookmark_count": 114,
      "language": "en",
      "conversation_id": "2123830179617186024",
      "is_reply": false,
      "is_quote": false,
      "is_repost": true,
      "media": [
        {
          "type": "video",
          "url": "https://pbs.twimg.com/media/HXlcSwjWQAAzLF2.png",
          "width": 720,
          "height": 405,
          "duration_sec": 50,
          "video_url": "https://video.twimg.com/amplify_video/2123830107949117440/vid/avc1/1920x1080/TEGVtCeTF12JkdXh.mp4?tag=16"
        }
      ],
      "links": [
        "https://go.nasa.gov/dragonfly-names"
      ],
      "author_id": "•••",
      "author_avatar_url": "https://pbs.twimg.com/•••",
      "author_bio": "•••",
      "author_is_verified": true,
      "author_created_at": "2008-06-19T03:16:46+00:00",
      "platform": "twitter",
      "reposted_by": "NASA",
      "reposted_at": "2026-11-20T17:55:17+00:00"
    }
  ],
  "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
