Skip to main content

X: mentions, reads, lists and actions

Everything around the X account connected to a profile beyond publishing: the posts that mention it, reads of X data (recent search, post counts, who liked or reposted a post, quotes, bookmarks, followers, lists, trends and post analytics), its lists and bookmarks, undoing a repost and hiding replies.

  • Authentication: API Key — Authorization: Apikey <YOUR_API_KEY>
  • Every call takes user, the profile username.
Some of it needs X reconnected on or after 25 November 2026

Bookmarks, lists, followers and following, likers (liking_users), reposts of the account (reposts_of_me) and hiding replies need X permissions that Upload-Post asks for since 25 November 2026. An X account connected before that date answers 403 x_reconnect_required (with the missing scope) on those calls until it is reconnected: reconnect X from the dashboard once and they work.

Mentions, recent search and counts, reposters, quotes, trends and post and media analytics work with the existing connection.

Reads need a paid plan

X bills every post, user or list its API returns, so the mentions feed and the reads are available on paid Upload-Post plans only: on the Free plan they answer 403 x_read_plan_required. They also count toward a daily X spend limit of your Upload-Post account. Each answer carries billing with what was read and what X charges for it.

Mentions​

GET /api/uploadposts/x/mentions?user=my-profile[&limit=20][&cursor=][&verified_only=true][&verified_type=business,government][&min_followers=1000][&replies=include]

Posts that @mention the account (not only replies to one post), newest first, with each author's verified, verified_type (blue, business, government, none) and followers_count. verified: true includes any paid X Premium account: use verified_type to tell organisations and governments apart.

ParameterDescription
limitMentions scanned per page, 5-100 (default 20).
cursorpagination.next_cursor of the previous page.
verified_onlytrue: only authors with verified: true.
verified_typeComma-separated: blue, business, government.
min_followersOnly authors with at least this many followers.
repliesinclude (default), exclude or only.

The filters are applied by Upload-Post on the limit mentions scanned: they do not lower the cost, and a filtered page can hold fewer than limit items (scanned says how many were looked at; keep paging with next_cursor). Upload-Post keeps a copy of the mentions per X account and asks X only for the ones newer than the newest it holds, at most once a minute: calls in between are served from the copy (source: "cache") and cost nothing.

curl "https://api.upload-post.com/api/uploadposts/x/mentions?user=my-profile&limit=20&verified_type=business" \
-H 'Authorization: Apikey your-api-key-here'
{
"success": true,
"platform": "x",
"account_id": "1449000000000000000",
"mentions": [
{
"id": "1861234567890123456",
"text": "@my_brand do you ship to Canada?",
"created_at": "2026-11-24T09:12:44.000Z",
"lang": "en",
"conversation_id": "1861234567890123456",
"is_reply": false,
"public_metrics": { "like_count": 3, "reply_count": 1, "retweet_count": 0, "quote_count": 0 },
"url": "https://x.com/example_store/status/1861234567890123456",
"author": {
"id": "2244994945",
"username": "example_store",
"name": "Example Store",
"verified": true,
"verified_type": "business",
"followers_count": 18400
}
}
],
"scanned": 20,
"pagination": { "next_cursor": "until_1861234567890123455", "has_next": true },
"source": "x",
"billing": { "posts_read": 20, "users_read": 14, "estimated_cost_usd": 0.24 }
}

To answer a mention, use Create Comment with its id as comment_id.

Read X data​

GET /api/uploadposts/x/read/{kind}?user=my-profile[&...]

One read-only X API call per request, with the fields chosen by Upload-Post. data, includes and meta are X's own objects.

kindWhat it readsParametersX permission
search_recentPosts from the last 7 days that match a searchquery (1-512 characters), start_time, end_time, since_id, until_id, sort_order (recency, relevancy)—
counts_recentHow many posts matched a search over timequery, granularity (minute, hour, day), start_time, end_time, since_id, until_id—
liking_usersWho liked a postpost_idlike.read
reposted_byWho reposted a postpost_id—
quote_postsPosts that quote a postpost_id, exclude (replies, retweets)—
reposts_of_meReposts of the account's posts by others—timeline.read
bookmarksThe account's bookmarks—bookmark.read
followers, followingFollowers and followed accounts—follows.read
owned_lists, followed_lists, pinned_listsThe account's lists—list.read
list, list_posts, list_members, list_followersOne list, its posts, members or followerslist_idlist.read
trendsTrends of a placewoeid, limit (1-50)—
trend_locationsPlaces with trends——
personalized_trendsTrends for the account——
post_analyticsAnalytics of postsids (1-100, comma-separated), start_time, end_time, granularity (hourly, daily, weekly, total)—
media_analyticsAnalytics of mediamedia_keys (1-100, comma-separated), start_time, end_time, granularity (hourly, daily, total)—

Times are ISO 8601. limit sets the page size (10-100 for search_recent and quote_posts, 1-100 for the rest). trend_locations answers 404 x_not_found while X does not serve it to Upload-Post.

curl "https://api.upload-post.com/api/uploadposts/x/read/search_recent?user=my-profile&query=upload-post%20-is%3Aretweet&limit=10" \
-H 'Authorization: Apikey your-api-key-here'
{
"success": true,
"platform": "x",
"kind": "search_recent",
"data": [
{ "id": "1861234567890123456", "text": "Scheduling everything with upload-post this week", "author_id": "2244994945", "created_at": "2026-11-23T09:12:44.000Z" }
],
"includes": { "users": [ { "id": "2244994945", "name": "Example", "username": "example" } ] },
"meta": { "result_count": 1, "newest_id": "1861234567890123456", "oldest_id": "1861234567890123456" },
"pagination": { "next_cursor": "b26v89c19zqg8o3fpzbkk", "has_next": true },
"cached": false,
"billing": { "posts_read": 1, "users_read": 1, "estimated_cost_usd": 0.015 }
}
  • Paging: pass pagination.next_cursor back as cursor.
  • Cache: answers are kept for a few minutes per account (trends 15 minutes, analytics 1 hour). Repeating the call within that time returns "cached": true and reads nothing from X.
  • Permissions: kinds that need an X permission the account did not grant when it was connected answer 403 x_reconnect_required: reconnect X to grant it.
  • If X answers with partial errors, they come in partial_errors.

Manage lists​

POST /api/uploadposts/x/lists
FieldDescription
userRequired. Profile username.
actionRequired. create, update, delete, add_member or remove_member.
list_idEvery action but create.
namecreate (required, 1-25 characters) and update.
descriptionUp to 100 characters.
privatetrue for a private list.
user_idadd_member / remove_member: numeric X user id.
confirmdelete: must be true.
curl -X POST https://api.upload-post.com/api/uploadposts/x/lists \
-H 'Authorization: Apikey your-api-key-here' \
-H 'Content-Type: application/json' \
-d '{"user": "my-profile", "action": "create", "name": "Partners", "private": true}'
{ "success": true, "platform": "x", "action": "create", "list": { "id": "1861111111111111111", "name": "Partners" } }

update answers updated, delete answers deleted, and add_member / remove_member answer is_member. Read lists with kind=owned_lists and kind=list_members above. Needs the list.write permission (403 x_reconnect_required for accounts connected before it was asked).

Bookmarks and reposts​

POST /api/uploadposts/posts/action   {"user": "my-profile", "platform": "x", "action": "bookmark", "post_id": "1861234567890123456"}
POST /api/uploadposts/posts/action {"user": "my-profile", "platform": "x", "action": "unbookmark", "post_id": "1861234567890123456"}
POST /api/uploadposts/posts/save {"user": "my-profile", "platform": "x", "post_id": "1861234567890123456"}

bookmark (alias save, also through /posts/save) takes an optional folder_id to put the post in a bookmark folder. The answer is {"success": true, "platform": "x", "action": "bookmark", "post_id": "...", "bookmarked": true}. Read the bookmarks with kind=bookmarks. Needs the bookmark.write permission (403 x_reconnect_required for accounts connected before it was asked).

Undo a repost the account made (the opposite of Repost):

POST /api/uploadposts/posts/action   {"user": "my-profile", "platform": "x", "action": "unrepost", "post_id": "1861234567890123456"}

Hide replies​

Hide a reply in a conversation the account started, or show it again, through Comment actions:

curl -X POST https://api.upload-post.com/api/uploadposts/comments/action \
-H 'Authorization: Apikey your-api-key-here' \
-H 'Content-Type: application/json' \
-d '{"user": "my-profile", "platform": "x", "action": "hide", "comment_id": "1861299999999999999"}'

comment_id is the post id of the reply; send unhide to show it again. Needs the X permission tweet.moderate.write (403 x_reconnect_required for accounts connected before it was asked: reconnect X to grant it).

Writes share the daily X limit​

List changes, bookmarks, unreposts and hidden replies count toward the same daily limit per X account as replies, edits and reposts: over it the call answers 429 x_daily_write_limit with a Retry-After header. A write that got no answer from X answers 502 x_write_outcome_unknown: it may or may not have been applied and is never retried for you, so check before sending it again.

Errors​

Statuserror_codeMeaning
400missing_required_fields, invalid_parameter, invalid_id, invalid_cursor, confirmation_requiredInvalid request.
400account_not_linkedThe profile has no X account connected.
400x_rejectedX refused the request.
401x_reauth_requiredReconnect X.
403x_reconnect_requiredReconnect X to grant the permission in scope.
403x_read_plan_requiredMentions and reads need a paid Upload-Post plan.
403x_forbiddenX refused access.
404x_read_unknown_kind, x_not_foundUnknown kind, or X has no such object.
429x_daily_read_budget, x_daily_write_limit, x_rate_limitedDaily read spend, daily write limit or X's rate limit (Retry-After).
502x_upstream_error, x_unavailable, x_write_outcome_unknownX failed or did not answer.
503x_read_capacity, x_guard_unavailableUpload-Post's X read capacity is used up for now (Retry-After), or Upload-Post could not check its limits.