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.00015 / 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.00015 / call
- Provider
- API
- Pricing
On this page
Overview
X Profile API
Retrieve a public X profile, including its bio, follower counts and profile images. Provide username in body. 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: timeout; body: body |
| Selected implementation | litescrape · X 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 |
|---|---|
profile.id |
Identifier |
profile.name |
Name |
profile.affiliates_count |
Returned affiliates count field |
profile.bio_urls[] |
Returned bio urls field |
profile.created_at |
Creation timestamp |
profile.description |
Description |
profile.followers_count |
Returned followers count field |
profile.following_count |
Returned following count field |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the JSON body and supported fields shown in the request template.
- Check the HTTP response and business result before reading optional fields.
curl \
'https://api.openany.si/v1/agent-apis/litescrape/api/x/profile' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"username": "OpenAI"
}'
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 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— | |
Current X Profile · POST · View API reference | $0.00015 / call | 0 | —successP50— | |
| Twitter — Profile · GET · View API reference | $0.00188 / call | —Select to load statistics | —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.00015
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: 4. Price update time: not supplied.
Total $0.015
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/litescrape/api/x/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 |
|---|---|---|---|---|
username | JSON request bodybody | string | Yes | X username, with or without a leading @. Profile URLs are not accepted. pattern: ^[A-Za-z0-9_]{1,15}$ |
timeout | URL query parametersquery | number | No | Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget. maximum: 90 |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
profileobjectaffiliates_countintegerbio_urlsstring[]created_atstringdescriptionstringfollowers_countintegerfollowing_countintegeridstringis_blue_verifiedbooleanis_identity_verifiedbooleanlikes_countintegerlocationstringmedia_countintegernamestringpinned_post_idsstring[]posts_countintegerprofile_banner_urlstringprofile_image_urlstringprotectedbooleanurlstringusernamestringverification_reasonstringverifiedbooleanverified_since_msecstringverified_typestringwebsitestring
submit_feedback_for_this_response_herestring
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.
timeout- Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.
body- Get a public X profile, including its bio, follower counts and profile images.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/litescrape/api/x/profile' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "username": "OpenAI" }'Check the response
Sample response · Documented HTTP 200
Sample response{ "profile": { "affiliates_count": 7, "bio_urls": [ "http://openai.com/jobs" ], "created_at": "Sun Dec 06 22:51:08 +0000 2015", "description": "OpenAI’s mission is to ensure that artificial general intelligence benefits all of humanity. We’re hiring: https://t.co/dJGr6LgzPA", "followers_count": 5422759, "following_count": 4, "id": "4398626122", "is_blue_verified": true, "is_identity_verified": false, "likes_count": 2525, "location": "", "media_count": 743, "name": "OpenAI", "pinned_post_ids": [ "2107894997538525580" ], "posts_count": 2179, "profile_banner_url": "https://pbs.twimg.com/profile_banners/4398626122/1777662919", "profile_image_url": "https://pbs.twimg.com/profile_images/1885410181409820672/ztsaR0JW_normal.jpg", "protected": false, "url": "https://x.com/OpenAI", "username": "OpenAI", "verification_reason": "This account is verified because it's an official organization on X. Learn more", "verified": true, "verified_since_msec": "1507188387580", "verified_type": "Business", "website": "https://openai.com" }, "submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token" }