Pricing
from $1.00 / 1,000 requests
Go to Apify Store
X (formerly Twitter) User Details
Fetch Twitter User Details by username.
Pricing
from $1.00 / 1,000 requests
Rating
0.0
(0)
Developer
Actor stats
0
Bookmarked
1
Total users
0
Monthly active users
3 months ago
Last modified
Categories
Share
X (formerly Twitter) User Details API
Fetch Twitter User Details by username.
Features
- Instant HTTP API โ No waiting for Actor runs, get results in real-time
- Structured JSON โ Clean results
- Pay Per Request โ You only pay for successful API calls
Quick Start
Send a GET request to the Standby endpoint:
https://glavier--x-user-details.apify.actor?username=elonmusk&token={YOUR_APIFY_TOKEN}
Example Response
{"data":{"user":{"result":{"__typename":"User","affiliates_highlighted_label":{"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"}},"business_account":{},"has_graduated_access":true,"has_nft_avatar":false,"id":"VXNlcjo0NDE5NjM5Nw==","is_blue_verified":true,"is_profile_translatable":false,"legacy":{"blocked_by":false,"blocking":false,"can_dm":false,"can_media_tag":false,"created_at":"Tue Jun 02 20:12:29 +0000 2009","default_profile":false,"default_profile_image":false,"description":"","entities":{"description":{"urls":[]}},"fast_followers_count":0,"favourites_count":214936,"follow_request_sent":false,"followed_by":false,"followers_count":236091389,"following":false,"friends_count":1292,"has_custom_timelines":true,"is_translator":false,"listed_count":167763,"location":"","media_count":4380,"muting":false,"name":"Elon Musk","normal_followers_count":236091389,"notifications":false,"pinned_tweet_ids_str":["2030159267689632121"],"possibly_sensitive":false,"profile_banner_url":"https://pbs.twimg.com/profile_banners/44196397/1739948056","profile_image_url_https":"https://pbs.twimg.com/profile_images/2008546467615580160/57KcqsTA_normal.jpg","profile_interstitial_type":"","protected":false,"screen_name":"elonmusk","statuses_count":98570,"translator_type":"none","verified":false,"want_retweets":false,"withheld_in_countries":[]},"legacy_extended_profile":{},"professional":{"category":[],"professional_type":"Creator","rest_id":"1679729435447275522"},"profile_image_shape":"Circle","rest_id":"44196397","smart_blocked_by":false,"smart_blocking":false,"super_follow_eligible":true,"super_followed_by":false,"super_following":false,"verification_info":{"reason":{"description":{"entities":[{"from_index":54,"ref":{"url":"https://twitter.com/X","url_type":"ExternalUrl"},"to_index":56},{"from_index":63,"ref":{"url":"https://help.twitter.com/en/rules-and-policies/profile-labels","url_type":"ExternalUrl"},"to_index":73}],"text":"This account is verified because it's an affiliate of @X on X. Learn more"}}}}}}}
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
username | string | Yes | โ | X (formerly Twitter) username |
Authentication
Include your Apify API token in one of two ways:
Query parameter (simple):
https://glavier--x-user-details.apify.actor?username=elonmusk&token={YOUR_APIFY_TOKEN}
Authorization header (recommended):
curl"https://glavier--x-user-details.apify.actor?username=elonmusk"\-H"Authorization: Bearer {YOUR_APIFY_TOKEN}"
Pricing
This Actor uses Pay Per Event pricing. You are charged per request, not per result.
| Event | Description |
|---|---|
request | Each successful API call (non-5xx response) |
The price per request is shown on the Actor's pricing page. Requests that result in a server error (5xx) are not charged.
Integration Examples
JavaScript / Node.js
const response =awaitfetch('https://glavier--x-user-details.apify.actor?username=elonmusk',{headers:{'Authorization':'Bearer YOUR_TOKEN'}});const data =await response.json();console.log(data.results);
Python
import requestsresponse = requests.get('https://glavier--x-user-details.apify.actor',params={'username':'elonmusk'},headers={'Authorization':'Bearer YOUR_TOKEN'})data = response.json()print(data['results'])
cURL
curl"https://glavier--x-user-details.apify.actor?username=elonmusk"\-H"Authorization: Bearer YOUR_APIFY_TOKEN"
Support
For issues or feature requests, please use the Issues tab on this Actor's page.
