Twitter (X) User Profile

https://api.sandbase.ai/v1/api/twitter/web/user-profile

Get a Twitter / X user profile by screen name or user ID: name, bio, follower and following counts, post and media counts, verification and creation date.

Price
$0.0015USD / callFirst 100 calls per day free (shared per organization)
Method
POST
Response
JSON
Parameters
0 required · 2 optional
Production route

Try the model

Playground

Open playground
Input
User ID, for example: 44196397, if the user ID is used, the username will be ignored, only one of them can be selected.
Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk
OutputExample
Responseoutputs · 548 B · 26 lines
[
  {
    "data": {
      "affiliates": null,
      "avatar": null,
      "blue_verified": null,
      "business_account": null,
      "created_at": null,
      "desc": null,
      "friends": null,
      "header_image": null,
      "id": null,
      "location": null,
      "media_count": null,
      "name": null,
      "pinned_tweet_ids_str": null,
      "profile": null,
      "protected": null,
      "rest_id": null,
      "status": "notfound",
      "statuses_count": null,
      "sub_count": null,
      "verification_type": null
    }
  }
]

Examples

Select an example to load its inputs and result into the playground.

Model card

Specifications

Pricing

Base price
$0.0015 / run
Daily free calls
First 100 calls per day free (shared per organization)

Request & response

Method
POST
Request body
application/json
Response
application/json
Execution
sync

Parameters

rest_id
integer · optional
screen_name
string · optional

Access

Provider
Twitter
API
Platform API
Base URL
https://api.sandbase.ai
Endpoint
/v1/api/twitter/web/user-profile
Authentication
Bearer API key

API README

Twitter (X) User Profile API

Pass an X screen name (or numeric user ID) and get the account's public profile and counts.

Use cases

  • Vet influencers and partners.
  • Track follower growth.
  • Resolve handles to stable user IDs.

Request

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

Parameters

NameTypeRequiredDescription
rest_idintegerNoUser ID, for example: 44196397, if the user ID is used, the username will be ignored, only one of them can be selected.
screen_namestringNoScreen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twi…

Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

{
  "blue_verified": true,
  "desc": "Making the seemingly impossible, possible. ✨",
  "id": "11348282",
  "media_count": 28179,
  "name": "NASA",
  "rest_id": "11348282",
  "status": "active",
  "statuses_count": 74382,
  "sub_count": 92374842,
  "verification_type": "Government"
}

Related APIs

  • Twitter (X) Search: Search Twitter / X posts by keyword and get tweets with text, author, time and engagement counts (likes, retweets, replies, views).
  • Twitter (X) Trending Topics: Get trending topics on Twitter / X by country: trend names with their category context, for the United States, Japan, India, the UK and other markets.
  • Twitter Tweet Detail: Get a single tweet (X post) by ID: full text, author, media, and like, retweet, reply, quote, bookmark and view counts.

Start building

Send your first request

Platform API endpoint with unified authentication and usage tracking.

Production API
Platform API endpoint
https://api.sandbase.ai/v1/api/twitter/web/user-profile
Authorization header
Authorization: Bearer $SANDBASE_API_KEY
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/api/twitter/web/user-profile" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "screen_name": "NASA"
}
SANDBASE_JSON
)
printf '%s\n' "$result"

Explore more

Related APIs

All APIs
APIPriceResponseReleased
Twitter$0.0015 per callJSONJul 31, 2026
Twitter$0.0015 per callJSONJul 31, 2026
Twitter$0.0015 per callJSONJul 31, 2026
Twitter$0.0015 per callJSONJul 31, 2026
Twitter$0.0015 per callJSONJul 31, 2026
Twitter$0.0015 per callJSONJul 31, 2026

Questions

FAQ

How do I use the Twitter (X) User Profile API?

Send a POST request to https://api.sandbase.ai/v1/api/twitter/web/user-profile with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

How much does the Twitter (X) User Profile API cost?

$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

What parameters does the Twitter (X) User Profile API accept?

No parameters are required. Optional: rest_id (integer) and screen_name (string). The Parameters table and the Playground on this page list every field.

What does the Twitter (X) User Profile API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

Do I need a Twitter developer account or API key?

No. Twitter (X) User Profile runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Twitter API access separately.