rest_idsstringआवश्यक
User IDs, comma separated
https://api.sandbase.ai/v1/api/twitter/web/user-profiles-by-rest-idsGet profiles by rest ids on Twitter. Returns the platform data as structured JSON.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
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.
active or has protected tweets.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.
| Name | Type | Required | Description |
|---|---|---|---|
rest_ids | string | Yes | User IDs, comma separated |
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": ""
}
]
}
| Field | Meaning |
|---|---|
users[].rest_id / users[].id | The numeric Twitter user ID as a string. Both keys hold the same value in the response. |
users[].profile | The account handle (screen name) without the @ sign, such as elonmusk. |
users[].name | The display name of the account. |
users[].created_at | The account creation time as a text date, for example Tue Jun 02 20:12:29 +0000 2009. |
users[].blue_verified | true when the account has Blue verification. |
users[].protected | true when the account's tweets are protected. |
users[].status | The account state. Both sample accounts return active. |
users[].avatar | URL of the profile image. |
users[].location | The location text from the profile. It can be an empty string. |
users[].affiliates.label.description | Name of the organization shown in the affiliation badge, such as X. For accounts with no affiliation, affiliates is an empty list. |
rest_ids separated by commas, for example 44196397,34743251.desc, friends, statuses_count and sub_count came back as null in this sample. Call Twitter (X) User Profile or Twitter User about profile for more account details.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
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"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
rest_idsstringआवश्यकUser IDs, comma separated
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| 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
प्रश्न
https://api.sandbase.ai/v1/api/twitter/web/user-profiles-by-rest-ids पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: rest_ids (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Twitter Profiles by rest ids SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से X (Twitter) API access के लिए आवेदन करने की आवश्यकता नहीं है।