X User Profile API
Get X User Profile via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Compare 5 implementations (anyapi, JustOneAPI, LiteScrape and ScrapeCreators), pass parameters such as handle, and retrieve structured data including identifier, returned avatar url field, returned bio field, returned cover url field, and returned created utc field for content research and account lookup, and integration reference.
- Selected price
- $0.00188 / callPublished pricing
- Sellers / APIs
- 5 / 5
- Requests · 30d
- 0Selected implementation · last 30 days
- Success rate · 30d
- —No requests in this period
X User Profile API
Prepare your request, then continue with your agent.
Selected price
$0.00188 / call
- Provider
- API
- Pricing
On this page
Overview
X Twitter — Profile API
Retrieve a Twitter user's profile by handle, including account metadata and statistics with the X API. Provide handle in query. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | query: handle, cache_max_age |
| Selected implementation | scrapecreators · Twitter — Profile |
| Billing | Follow the selected implementation pricing, billing unit, quantity and charge rules |
What You Can Build
- Content research and account lookup: Keep source records connected to their content and account identifiers.
- Integration reference: Use the selected request format and keep source identifiers with the returned result.
Documented Response Fields
| Field | Meaning |
|---|---|
id |
Identifier |
__typename |
Returned typename field |
affiliates_highlighted_label.label.badge |
Returned badge field |
affiliates_highlighted_label.label.description |
Description |
affiliates_highlighted_label.label.url |
Returned URL |
affiliates_highlighted_label.label.userLabelDisplayType |
Returned user label display type field |
affiliates_highlighted_label.label.userLabelType |
Returned user label type field |
business_account |
Returned business account field |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the supported inputs and set any required query value shown in the template.
- Check the HTTP response and business result before reading optional fields.
curl \
'https://api.openany.si/v1/agent-apis/scrapecreators/v1/twitter/profile?handle=Austen' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'
Request and Response Examples
The response is a published documentation reference; its values may be historical. The request is an independent calling template. Use current returned identifiers and optional fields for your target resource.
Published X Twitter — Profile API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
| Twitter Profile · POST · View API reference | $0.00022 / call | —Select to load statistics | —successP50— | |
| Twitter User Profile API (V1) · GET · View API reference | $0.015385 / call | —Select to load statistics | —successP50— | |
| X Profile · POST · View API reference | $0.00015 / call | —Select to load statistics | —successP50— | |
Current Twitter — Profile · GET · View API reference | $0.00188 / call | 0 | —successP50— | |
| Public X (Twitter) profile by handle or numeric id · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— |
- Unit price
- $0.00188
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 6. Price update time: not supplied.
Total $0.188
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/scrapecreators/v1/twitter/profile- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
handle | URL query parametersquery | string | Yes | Twitter handle |
cache_max_age | URL query parametersquery | string | No | If we have a response in the cache that is this many days old or newer, return the cached response (0 credits, with "cached": true and a "cached_at" timestamp). Otherwise, scrape a live result (1 credit). [See the Caching page for details.](https://docs.scrapecreators.com/caching) enum: "1d", "3d", "7d", "14d", "30d" |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
__typenamestringaffiliates_highlighted_labelobjectlabelobjectbadgeobjecturlstring
descriptionstringurlobjecturlstringurlTypestring
userLabelDisplayTypestringuserLabelTypestring
business_accountobjectcreator_subscriptions_countintegercredits_chargedintegercredits_remainingintegerhas_hidden_subscriptions_on_profilebooleanhighlights_infoobjectcan_highlight_tweetsbooleanhighlighted_tweetsstring
idstringis_blue_verifiedbooleanis_profile_translatablebooleanlegacyobjectcreated_atstringdefault_profilebooleandefault_profile_imagebooleandescriptionstringentitiesobjectdescriptionobjecturlsobject[]display_urlstringexpanded_urlstringindicesinteger[]urlstring
urlobjecturlsobject[]display_urlstringexpanded_urlstringindicesinteger[]urlstring
fast_followers_countintegerfavourites_countintegerfollowers_countintegerfriends_countintegerhas_custom_timelinesbooleanis_translatorbooleanlisted_countintegerlocationstringmedia_countintegernamestringnormal_followers_countintegerpinned_tweet_ids_strstring[]possibly_sensitivebooleanprofile_banner_urlstringprofile_image_url_httpsstringprofile_interstitial_typestringscreen_namestringstatuses_countintegertranslator_typestringurlstringverifiedbooleanwithheld_in_countriesunknown[]
legacy_extended_profileobjectprofile_image_shapestringrest_idstringsuccessbooleantipjar_settingsobjectbandcamp_handlestringbitcoin_handlestringcash_app_handlestringethereum_handlestringgofundme_handlestringis_enabledbooleanpatreon_handlestringpay_pal_handlestringvenmo_handlestring
user_seed_tweet_countintegerverification_infoobjectis_identity_verifiedbooleanreasonobjectdescriptionobjectentitiesobject[]from_indexintegerrefobjecturlstringurl_typestring
to_indexinteger
textstring
verified_since_msecstring
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 2
Review these request fields before running. Keep the published provider and request method unchanged.
handle- Twitter handle
cache_max_age- If we have a response in the cache that is this many days old or newer, return the cached response (0 credits, with "cached": true and a "cached_at" timestamp). Otherwise, scrape a live result (1 credit). [See the Caching page for details.](https://docs.scrapecreators.com/caching)
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/scrapecreators/v1/twitter/profile?handle=Austen' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "__typename": "User", "affiliates_highlighted_label": { "label": { "badge": { "url": "https://pbs.twimg.com/profile_images/1542996246477938688/PR4UFtE6_bigger.jpg" }, "description": "Bloom Institute of Technology", "url": { "url": "https://twitter.com/bloomtech", "urlType": "DeepLink" }, "userLabelDisplayType": "Badge", "userLabelType": "BusinessLabel" } }, "business_account": {}, "creator_subscriptions_count": 3, "credits_charged": 1, "credits_remaining": 1000000, "has_hidden_subscriptions_on_profile": false, "highlights_info": { "can_highlight_tweets": true, "highlighted_tweets": "482" }, "id": "VXNlcjoyMjE4MzgzNDk=", "is_blue_verified": true, "is_profile_translatable": false, "legacy": { "created_at": "Wed Dec 01 19:13:23 +0000 2010", "default_profile": false, "default_profile_image": false, "description": "CEO https://t.co/m6TigM5azr & https://t.co/NuPTghEZ1I (part of @bloomtech). We help teams maximize productivity using AI. Will tweet as I wish and suffer the consequences.", "entities": { "description": { "urls": [ { "display_url": "GauntletAI.com", "expanded_url": "http://GauntletAI.com", "indices": [ 4 ], "url": "https://t.co/m6TigM5azr" } ] }, "url": { "urls": [ { "display_url": "gauntletai.com", "expanded_url": "http://gauntletai.com", "indices": [ 0 ], "url": "https://t.co/nCe0AdT8D4" } ] } }, "fast_followers_count": 0, "favourites_count": 80812, "followers_count": 377608, "friends_count": 1051, "has_custom_timelines": true, "is_translator": false, "listed_count": 3959, "location": "Austin, TX", "media_count": 3843, "name": "Austen Allred", "normal_followers_count": 377608, "pinned_tweet_ids_str": [ "1882816395400073367" ], "possibly_sensitive": false, "profile_banner_url": "https://pbs.twimg.com/profile_banners/221838349/1622098809", "profile_image_url_https": "https://pbs.twimg.com/profile_images/1608281295918096385/D2kh-M28_normal.jpg", "profile_interstitial_type": "", "screen_name": "Austen", "statuses_count": 46114, "translator_type": "regular", "url": "https://t.co/nCe0AdT8D4", "verified": false, "withheld_in_countries": [] }, "legacy_extended_profile": {}, "profile_image_shape": "Circle", "rest_id": "221838349", "success": true, "tipjar_settings": { "bandcamp_handle": "", "bitcoin_handle": "", "cash_app_handle": "", "ethereum_handle": "", "gofundme_handle": "", "is_enabled": false, "patreon_handle": "", "pay_pal_handle": "", "venmo_handle": "" }, "user_seed_tweet_count": 0, "verification_info": { "is_identity_verified": false, "reason": { "description": { "entities": [ { "from_index": 54, "ref": { "url": "https://twitter.com/bloomtech", "url_type": "ExternalUrl" }, "to_index": 64 } ], "text": "This account is verified because it's an affiliate of @bloomtech on X. Learn more" }, "verified_since_msec": "1473330227634" } } }