Piloterr

X Profile Info (twitter)

GET
/v2/x/profile/info

X Profile Info API: fetch public X/Twitter profile data (bio, followers, verification, avatars) from a username or URL via browser rendering.

Credit cost: 2 credits per call

Autorização

ApiKeyAuth
headerx-api-key<token>

Your API key. Include it in the x-api-key header for every request.

Parâmetros de consulta

query*string

X profile to look up. Accepts a username, @handle, or profile URL.

Examples:

elonmusk
@example-user
https://x.com/example-user

Notes:

  • Legacy twitter.com URLs are supported.
  • Rejected (400): search URLs, status/tweet URLs, invalid handles.
  • X Search is not supported by this API.
return_page_source?boolean

When true, return the raw HTML page source as {"result": "..."} instead of structured JSON. Defaults to false.

fields?string

Comma-separated list of response fields to return, with dot notation for nested fields (e.g. name,location.city).

is_async?boolean

Run the request as a background job: the API answers 202 with a job_id to poll on GET /v1/jobs/{id}.

Defaultfalse
soft_fail?boolean

Return HTTP 200 even when the request fails; the error is in the error field of the body.

Defaultfalse

Corpo da resposta

Successful response

application/json
  1. response
url?string
name?string
user_id?string
location?unknown
username?string
verified?boolean
created_at?string
description?string
tweet_count?integer
followers_count?integer
following_count?integer
profile_image_url?string
profile_banner_url?string
profile_image_url_normal?string
Example Request
curl -X GET 'https://api.piloterr.com/v2/x/profile/info?query=string'
Example Response
{  "url": "https://x.com/example-user",  "name": "Alex Martin",  "user_id": "00000000",  "location": null,  "username": "example-user",  "verified": true,  "created_at": "2009-06-02T20:12:29.000Z",  "description": "Example profile.",  "tweet_count": 104989,  "followers_count": 240609640,  "following_count": 1366,  "profile_image_url": "https://pbs.twimg.com/placeholder/example-user.jpg",  "profile_banner_url": "https://pbs.twimg.com/placeholder/example-user.jpg",  "profile_image_url_normal": "https://pbs.twimg.com/placeholder/example-user.jpg"}