Introducing the Instagram APIRead more →

X (Twitter) Mentions API. Posts, page by page.

Posts by others that @mention an account. We handle the proxies, blocks and platform changes.

In your agent: X (Twitter) MCP server →

X (Twitter) Mentions API at a glance

Returns X (Twitter) posts by other accounts that mention an account, from its username, link or ID. Each post is the full record from X: text, author, media, views, likes, reposts, replies and exact time. The account's own posts and posts that don't name it are left out. Filter by date with since and until, and page through results with the cursor.

GET /v1/x/profile_mentions

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 23 typed fields null when unknown
  • 20 posts per page, the search engine's ranking (most relevant first)
  • handle is all it needs, e.g. NASA

Send one request. Get up to 20 posts back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

$ npm install socialtap
handle = NASA
GET /v1/x/profile_mentionsTry in
const params = new URLSearchParams({
  handle: "NASA",
});
const res = await fetch(`https://socialtap.dev/v1/x/profile_mentions?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, page, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/x/profile_mentionsDocs

One schema on 22 platforms.

The response reference lists every field, its type and when it is null. See the full schema.

  • Null means unknown

    A field X doesn't show is null, never zero or an empty string, so a real zero always means zero.

  • What it accepts

    X account whose mentions to find: a username with or without the @ (NASA, @NASA), a numeric user ID (11348282), or a profile link (x.com/NASA or twitter.com/NASA, with or without a tab such as /media, mobile.twitter.com, x.com/i/user/11348282, an intent link such as x.com/intent/user?screen_name=NASA).

  • Write one parser

    X, TikTok, Instagram and 19 more platforms answer in these fields, so the code that reads one reads them all.

platformstring
Platform ID (tiktok, youtube, …).
idstring
Platform-native post ID (string; Instagram shortcode, Reddit with its t3_ prefix).
urlstring
Canonical post URL.
typestring
Normalized content shape. New values may be added; treat unknown values as other.
platform_typestring
The platform's own product label, lowercase (reel, short, story, live, tweet, …).
titlestring
Headline (YouTube title, Reddit title); null on caption-only platforms.
textstring
Caption, description or body as plain text.
link_urlstring
The page the post links to: a link post's target, a pin's destination, or the page its link card or link sticker opens; null when it links to none.

What teams build with the X (Twitter) Mentions API.

  • Monitor what people say to a brand

  • Find replies and shout-outs to a creator

  • Collect customer questions sent to a support account

  • Measure reach of a campaign's mentions

Good to know before you build.

  • X has no logged-out search, so mentions come from a web search engine's index of X's post pages, in the engine's order. A post the index hasn't crawled isn't found, so this is a sample, not every mention.
  • Every result is read from X before it is returned: a post by the account itself, a repost, or one whose text doesn't name the account is left out, so a page can hold fewer posts than limit.
  • Replies to the account count as mentions, as they do in X's own notifications.
  • There is no latest order: results come in the engine's ranking. Set since to a recent date for recent mentions.
  • A post X no longer shows (deleted, protected or from a suspended account) is left out.
  • A few posts X serves only through its embed come without views, reposts, quotes and bookmarks (null).
  • An account with no mentions in the index returns an empty page; an account that doesn't exist, or that X suspended, returns not_found.
  • The index goes only so deep, so the list usually ends after a few pages (page.end_reason end).

1 credit per page. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

SourcePrice per successful pagePer 1,000 pages
Any source1 credit$0.75–$1.97
  • Cache hits are free.
  • Credits from packs and top-ups never expire.
  • A monthly plan's credits are spent first, and what is left of them ends at each renewal.
  • Prices exclude tax: sales tax is added at checkout where it applies.
  • Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

Questions about the X (Twitter) Mentions API.

More in the API reference.

Does it return every mention of an account?
No. It returns the mentions a web search engine has indexed, which favors replies and posts that got attention. X shows its full mentions only to signed-in users.
Are the account's own posts included?
No. Its own posts, reposts and posts that don't name it are removed after each post is read from X.
How much does the X (Twitter) Mentions API cost?
A page of up to 20 posts costs 1 credit. Every successful page is charged, empty pages included. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.
How do I get the next page?
Repeat the same request with cursor set to page.next_cursor from the previous response, keeping the other parameters. When page.has_more is false there are no more pages. Cursors expire after 24 hours.

Try it on an account you know.

Paste its handle or link in the playground, or copy the request into your code.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 276 endpoints
Start for free Read the docs