POST

API health

24h health
Normal
  • Healthy / normal
  • Available
Normal

Last 24 hours

Last 30 days

List the posts an X (Twitter) account has reposted, from username, newest repost first. Each row is the original post with its text, author and counts, plus reposted_by and reposted_at. Up to 20 per page; page on with next_page_token.

Send POST https://api.everyinfra.com/api/v1/social with platform set to twitter and action set to user_reposts. Price $0.56 per 1,000 requests ($0.000556 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.

AI prompt

#
Please help me write a data collection script with the EveryInfra X (Twitter) User reposts endpoint (twitter/user_reposts).

How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to twitter and action to user_reposts, and put the parameters inside params.
- Required parameters:
  - username: X username, with or without @, or a profile link such as https://x.com/NASA.
- Optional parameters:
  - page_token: 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.
- Returns a list of records. Main fields of each record: id, url, text, like_count, retweet_count, reply_count, view_count, posted_at, author_username, author_name, author_url, author_follower_count; 33 fields in total, full list at https://api.everyinfra.com/api/v1/social/catalog?platform=twitter.
- Example request body:
{
  "platform": "twitter",
  "action": "user_reposts",
  "params": {
    "username": "nasa"
  }
}
- Price: $0.56 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.

Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.

Request parameters

#
NameInTypeRequiredDefaultDescription
AuthorizationheaderstringYes-Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository.
platformbodystringYestwitterPlatform identifier, fixed value.
actionbodystringYesuser_repostsCapability identifier, fixed value.
usernamebody.paramsstringYes-X username, with or without @, or a profile link such as https://x.com/NASA.
page_tokenbody.paramsstringNo-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.

Code samples

#
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"
  }
}'

OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.

Response example

#
Captured November 21, 2026 at 07:22 (UTC) by calling this API with the parameters in the code sample above. results and count are that call's real response with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2. id, billing and quota differ on every call, so only their shape is shown.
json
{  "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": { … }}

Response fields

#

Business data is in results. The table lists the fields a record can contain. Values the platform does not show are never made up.

FieldMeaning
idThe record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms.
urlLink to the record on the platform.
textBody 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_countLikes. null means the platform or this capability does not disclose it; it is not 0.
retweet_countKeeps the platform's own meaning
reply_countReplies, usually replies to a comment. null means not disclosed.
view_countViews or plays. null means not disclosed, not 0.
posted_atPublish 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_usernameAuthor's username (@handle), usually usable in URLs.
author_nameAuthor's display name.
author_urlLink to the author's profile on the platform.
author_follower_countAuthor's follower count. null means not disclosed.
quote_countKeeps the platform's own meaning
bookmark_countKeeps the platform's own meaning
languageContent language code (for example zh, en) as judged by the platform; it can be wrong.
conversation_idKeeps the platform's own meaning
is_replyKeeps the platform's own meaning
is_quoteKeeps the platform's own meaning
is_repostKeeps the platform's own meaning
reply_to_idKeeps the platform's own meaning
reply_to_user_idKeeps the platform's own meaning
reply_toKeeps the platform's own meaning
mediaKeeps the platform's own meaning
hashtagsHashtags in the text, in order of appearance; absent when there are none.
mentionsKeeps the platform's own meaning
linksKeeps the platform's own meaning
author_idAuthor's unique ID on the platform.
author_avatar_urlKeeps the platform's own meaning
author_bioKeeps the platform's own meaning
author_is_verifiedKeeps the platform's own meaning
author_created_atKeeps the platform's own meaning
platformSource platform identifier, the same as platform in the request (for example xiaohongshu, tiktok).
reposted_byKeeps the platform's own meaning
reposted_atKeeps the platform's own meaning

Errors and billing

#
401
Missing or invalid key.
402
Insufficient balance. Top up first.
422
Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
429
Per-minute request limit reached. Wait for Retry-After, then try again.
503
Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
200 empty
No data. No charge.

Errors

Google Analytics needs consent. Privacy