Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

X (Twitter) User Mentions

APIドキュメント
https://api.sandbase.ai/v1/api/twitter/user-mentions

Recent tweets that mention a user by username, with optional time range and cursor pagination.

料金
$0.003 からUSD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 3 件

プレイグラウンド

入力
The user screen name to get mentions for.
The cursor to paginate through the results. First page is empty.
On or after a specified unix timestamp in seconds. Provider reference (supplier schema): `{"format":"int64","type":"integer"}`. 範囲: 0 から 9223372036854776000 まで。
Before a specified unix timestamp in seconds. Provider reference (supplier schema): `{"format":"int64","type":"integer"}`. 範囲: 0 から 9223372036854776000 まで。
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

X (Twitter) User Mentions API

Returns recent tweets that mention a given X (Twitter) user. Each tweet includes its text, author, engagement counts, reply context and the users it mentions. The only required input is userName, the screen name without the @ sign.

Use cases

  • Track public replies and mentions of a brand or agency account such as NASA.
  • Collect mention text for sentiment or topic analysis over a chosen time window.
  • Find high-view posts that tag an account so a team can respond to them.
  • Build a feed of links shared in tweets that mention a user, using entities.urls.

Request

curl -X POST "https://api.sandbase.ai/v1/api/twitter/user-mentions" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"userName": "NASA"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
userNamestringYesThe user screen name to get mentions for.
cursorstringNoThe cursor to paginate through the results. First page is empty.
sinceTimeintegerNoOn or after a specified unix timestamp in seconds. Provider reference (supplier schema): {"format":"int64","type":"integer"}.
untilTimeintegerNoBefore a specified unix timestamp in seconds. Provider reference (supplier schema): {"format":"int64","type":"integer"}.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "has_next_page": true,
  "msg": "success",
  "next_cursor": "DAADDAABCgABHWLxy4mbQVkKAAIdYutU-ZuRPQAIAAIAAAACCAADAAAAAAgABAAAAAAKAAUdYvROi0An…",
  "status": "success",
  "tweets": [
    {
      "article": null,
      "author": {
        "affiliatesHighlightedLabel": {},
        "automatedBy": null,
        "canDm": true,
        "canMediaTag": true,
        "coverPicture": "",
        "createdAt": "Sun Oct 03 21:27:35 +0000 2021",
        "description": "",
        "entities": {
          "description": {
            "urls": []
          },
          "url": {}
        }
      },
      "bookmarkCount": 0,
      "card": {
        "binding_values": [
          {
            "key": "photo_image_full_size_large",
            "value": {
              "image_value": {
                "height": 419,
                "url": "https://pbs.twimg.com/card_img/2117520633382965248/Mw80kojC?format=jpg&name=800x…",
                "width": 800
              }
            }
          }
        ],
        "card_platform": {
          "platform": {
            "audience": {
              "name": "production"
            },
            "device": {
              "name": "iPhone",
              "version": "13"
            }
          }
        },
        "name": "summary_large_image",
        "url": "https://t.co/FZqZ4fF9Ta",
        "user_refs_results": []
      },
      "communityInfo": null,
      "conversationId": "2116999144376340883",
      "createdAt": "Tue Nov 03 07:33:54 +0000 2026",
      "displayTextRange": [
        6
      ],
      "entities": {
        "urls": [
          {
            "display_url": "tiktok.com/t/ZPLuYSyTT/",
            "expanded_url": "https://www.tiktok.com/t/ZPLuYSyTT/",
            "indices": [
              6
            ],
            "url": "https://t.co/FZqZ4fF9Ta"
          }
        ],
        "user_mentions": [
          {
            "id_str": "11348282",
            "indices": [
              0
            ],
            "name": "NASA",
            "screen_name": "NASA"
          }
        ]
      },
      "extendedEntities": {},
      "id": "2117520631306862937",
      "inReplyToId": "2117516836212462064"
    }
  ]
}

Response fields

FieldMeaning
tweets[]List of tweets that mention the requested user, newest first in the sample.
tweets[].id / tweets[].url / tweets[].twitterUrlTweet ID and the links to the tweet on x.com and twitter.com.
tweets[].textFull text of the tweet, including the leading @mentions and shortened t.co links.
tweets[].createdAtTime the tweet was posted, as a string like Tue Nov 03 07:33:54 +0000 2026.
tweets[].likeCount / tweets[].replyCount / tweets[].retweetCount / tweets[].quoteCount / tweets[].bookmarkCount / tweets[].viewCountEngagement counts for the tweet.
tweets[].isReply / tweets[].inReplyToId / tweets[].inReplyToUsernameShows whether the tweet is a reply, and gives the ID and username of the tweet or user it answers.
tweets[].conversationIdID of the first tweet in the conversation thread this tweet belongs to.
tweets[].entities.user_mentions[]Users mentioned in the tweet, with id_str, name and screen_name.
tweets[].entities.urls[]Links in the tweet, with the short url, the expanded_url and the display_url.
has_next_page / next_cursorhas_next_page says whether more results exist. next_cursor is the value to send as cursor for the next page.

Notes

  • Pass userName as the plain screen name, for example NASA.
  • For the first page, leave cursor empty. For the next page, send the next_cursor value as cursor while has_next_page is true.
  • Use sinceTime (on or after) and untilTime (before) as unix timestamps in seconds to limit the time range.
  • To read a full conversation for a tweet, pass its id to Twitter Post Comments or X / Twitter Tweet Thread.

Pricing

Billed at the actual cost of each call, about $0.003 for the request above. Failed calls are not charged.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
X (Twitter)1回あたり $0.003 からJSON
X (Twitter)1回あたり $0.00054 からJSON
Twitter1回あたり $0.0006 から非同期 JSON
X (Twitter)1回あたり $0.0001 からJSON
X (Twitter)1回あたり $0.0036 からJSON
X (Twitter)1回あたり $0.00045 からJSON

ガイド:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared

質問

FAQ

X (Twitter) User Mentions API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/twitter/user-mentions に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

X (Twitter) User Mentions API の料金はいくらですか?

1回あたり $0.003 から、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

X (Twitter) User Mentions API はどのパラメータを受け付けますか?

必須: userName (string)。 任意: cursor (string), sinceTime (integer) と untilTime (integer)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

X (Twitter) User Mentions API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

X (Twitter) の開発者アカウントまたは API key は必要ですか?

いいえ。X (Twitter) User Mentions は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。X (Twitter) の API アクセスを別途申請する必要はありません。