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
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

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 का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/twitter/web/user-profiles-by-rest-ids पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

Twitter Profiles by rest ids API की लागत कितनी है?

$0.001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

Twitter Profiles by rest ids API कौन-से parameters स्वीकार करती है?

आवश्यक: rest_ids (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

Twitter Profiles by rest ids API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक X (Twitter) developer account या API key चाहिए?

नहीं। Twitter Profiles by rest ids SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से X (Twitter) API access के लिए आवेदन करने की आवश्यकता नहीं है।