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

Twitter Profiles by rest ids

APIドキュメント
https://api.sandbase.ai/v1/api/twitter/web/user-profiles-by-rest-ids

Get profiles by rest ids on Twitter. Returns the platform data as structured JSON.

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

プレイグラウンド

入力
User IDs, comma separated
出力準備完了

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

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

API README

Twitter Profiles by rest ids API

Returns profile data for several Twitter accounts in one call. You pass a comma separated list of numeric user IDs (rest_ids) and get one entry per account in users.

Use cases

  • Resolve a list of stored Twitter user IDs into current handles and display names.
  • Check whether a batch of accounts is still active or has protected tweets.
  • Look up the account creation date and Blue verification status for a set of accounts.
  • Collect avatar URLs and affiliation badges for accounts shown in a dashboard.

Request

curl -X POST "https://api.sandbase.ai/v1/api/twitter/web/user-profiles-by-rest-ids" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"rest_ids": "44196397,34743251"}'

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

Parameters

NameTypeRequiredDescription
rest_idsstringYesUser IDs, comma separated

Example response

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

{
  "users": [
    {
      "affiliates": {
        "label": {
          "badge": {
            "url": "https://pbs.twimg.com/profile_images/1955359038532653056/OSHY3ewP_bigger.jpg"
          },
          "description": "X",
          "url": {
            "url": "https://twitter.com/X",
            "urlType": "DeepLink"
          },
          "userLabelDisplayType": "Badge",
          "userLabelType": "BusinessLabel"
        }
      },
      "avatar": "https://pbs.twimg.com/profile_images/2103567689515954176/aR-Kjpp4_normal.jpg",
      "blue_verified": true,
      "business_account": null,
      "can_dm": null,
      "created_at": "Tue Jun 02 20:12:29 +0000 2009",
      "desc": null,
      "favourites": null,
      "friends": null,
      "header_image": null,
      "id": "44196397",
      "location": ""
    }
  ]
}

Response fields

FieldMeaning
users[].rest_id / users[].idThe numeric Twitter user ID as a string. Both keys hold the same value in the response.
users[].profileThe account handle (screen name) without the @ sign, such as elonmusk.
users[].nameThe display name of the account.
users[].created_atThe account creation time as a text date, for example Tue Jun 02 20:12:29 +0000 2009.
users[].blue_verifiedtrue when the account has Blue verification.
users[].protectedtrue when the account's tweets are protected.
users[].statusThe account state. Both sample accounts return active.
users[].avatarURL of the profile image.
users[].locationThe location text from the profile. It can be an empty string.
users[].affiliates.label.descriptionName of the organization shown in the affiliation badge, such as X. For accounts with no affiliation, affiliates is an empty list.

Notes

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
X (Twitter)$0.001 / 回JSON
Twitter$0.001 / 回JSON
Twitter$0.001 / 回JSON
Twitter$0.001 / 回JSON
Twitter$0.001 / 回JSON
Twitter$0.001 / 回JSON

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

質問

FAQ

Twitter Profiles by rest ids API はどのように使いますか?

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

Twitter Profiles by rest ids API の料金はいくらですか?

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

Twitter Profiles by rest ids API はどのパラメータを受け付けますか?

必須: rest_ids (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Twitter Profiles by rest ids API は何を返しますか?

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

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

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