Get Twitter profile

Get an X (Twitter) profile by handle or numeric user id.

GET/v1/twitter/profiles/{handle}
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
2
handlestringrequiredpath

X (Twitter) profile handle without the leading @, or a numeric user id.

bystringoptionalquery

Treat the path value as a handle or a numeric user id. Defaults to id when the value is all digits.

one of: id, handle

Response fields
82

Endpoint-specific response payload.

datalookupStatus
string

Whether the profile was resolved.

one of: found, private, not_found

Profile details when available.

dataprofileplatform
string

Social platform for this profile.

one of: twitter

dataprofilehandle
string

X screen name (handle) without the leading @.

dataprofiledisplayName
stringnullable

Display name shown on the profile.

dataprofilebio
stringnullable

Profile biography text.

dataprofileavatarUrl
stringnullable

Best available square avatar image URL.

dataprofilebannerUrl
stringnullableoptional

Profile banner image URL when available.

dataprofileverified
boolean

Whether X marks the profile with legacy verification (not necessarily paid blue).

dataprofileblueVerified
boolean

Whether the account has X blue (paid) verification.

dataprofileprofileUrl
string

Canonical public profile URL on x.com.

min 1 chars

dataprofileprivateAccount
boolean

Whether the account is protected (private).

dataprofileplatformUserId
stringoptional

Numeric X user id as a string.

dataprofileaccountCreatedAt
stringoptional

Account creation time (ISO-8601) when derivable.

dataprofilelocation
stringnullableoptional

Location string from the profile when provided.

dataprofilewebsite
stringnullableoptional

Primary outbound link (expanded URL) from the profile.

dataprofilepinnedTweetId
stringoptional

Pinned tweet id when X exposes one.

Structured verification metadata from X.

dataprofileverificationInfoisIdentityVerified
boolean

Whether X marks the account as identity-verified.

dataprofileverificationInfoverifiedSinceMsec
stringoptional

When verification became effective, as milliseconds since epoch (string from X).

Verification reason payload when X provides it.

dataprofileverificationInforeasontext
stringoptional

Human-readable verification reason text from X.

Inline entity metadata for the reason text (vendor-defined).

dataprofileverificationInforeasonentities[]
nullableoptional

Tip jar configuration when present.

dataprofiletipJarisEnabled
boolean

Whether the X tip jar is enabled.

Per-service handles when any are present.

dataprofiletipJarhandlesbandcamp
stringoptional

Bandcamp handle from tip jar.

dataprofiletipJarhandlesbitcoin
stringoptional

Bitcoin address or handle.

dataprofiletipJarhandlescashApp
stringoptional

Cash App handle.

dataprofiletipJarhandlesethereum
stringoptional

Ethereum address or handle.

dataprofiletipJarhandlesgoFundMe
stringoptional

GoFundMe handle.

dataprofiletipJarhandlespatreon
stringoptional

Patreon handle.

dataprofiletipJarhandlespayPal
stringoptional

PayPal handle.

dataprofiletipJarhandlesvenmo
stringoptional

Venmo handle.

Tweet highlights metadata when present.

dataprofilehighlightscanHighlightTweets
boolean

Whether the account may highlight tweets on the profile.

dataprofilehighlightshighlightedTweetCount
integer

Count of highlighted tweets when reported by X.

≥ 0

dataprofilebusinessAccount
objectoptional

Opaque business-account payload from X when non-empty (vendor-defined).

dataprofilecreatorSubscriptionsCount
integeroptional

Creator subscriptions count when X reports it.

≥ 0

Affiliate or business label when X provides one.

dataprofileaffiliateLabeldescription
string

Affiliate or business label text shown on the profile.

dataprofileaffiliateLabelbadgeUrl
stringoptional

Badge image URL when X provides one.

dataprofileaffiliateLabelurl
stringoptional

Destination URL for the label link.

dataprofileisBlueVerified
booleannullable

Whether X marks the account as blue-verified. Same signal as `blueVerified`.

dataprofileverifiedType
stringnullable

X verification type label when provided (for example a government or organization note).

Pinned tweet ids from X, in display order.

dataprofilepinnedTweetIds[]
stringoptional
dataprofilefavoritesCount
integernullable

Total likes (favorites) on the profile. Prefer `metrics.favourites`.

≥ 0

dataprofilecreatedAt
stringnullable

Account creation time as returned by X (raw upstream string). Prefer `accountCreatedAt` for ISO-8601.

X professional-account metadata when the account is marked professional.

dataprofileprofessionaltype
stringnullable

Professional account type from X, when present.

Professional category entries from X.

dataprofileprofessionalcategory[]
nullableoptional
dataprofileprofessionalrestId
stringnullable

Professional account rest id from X, when present.

Country codes where the profile is withheld.

dataprofilewithheldInCountries[]
stringoptional
dataprofileprofileImageShape
stringnullableoptional

Avatar crop shape reported by X, such as Circle or Square.

dataprofileverifiedSince
stringnullableoptional

When X verification became effective (ISO-8601). Invalid dates are null. Prefer this over `verificationInfo.verifiedSinceMsec`.

dataprofilepossiblySensitive
booleannullableoptional

Whether X marks the profile as possibly sensitive.

dataprofileprofileInterstitialType
stringnullableoptional

Interstitial type shown on the profile when X reports one.

dataprofilehasHiddenSubscriptions
booleannullableoptional

Whether creator subscriptions are hidden on the profile.

dataprofilehasGraduatedAccess
booleannullableoptional

Whether X reports graduated access for this account.

dataprofileisProfileTranslatable
booleannullableoptional

Whether X considers the profile text translatable.

dataprofilehasCustomTimelines
booleannullableoptional

Whether the account has custom timelines.

dataprofileisTranslator
booleannullableoptional

Whether X marks the account as a translator.

dataprofiledefaultProfile
booleannullableoptional

Whether the account still uses the default profile theme.

dataprofiledefaultProfileImage
booleannullableoptional

Whether the account still uses the default avatar.

Profile metrics when available.

datametricsfollowers
integer

Follower count from X.

≥ 0

datametricsfollowing
integer

Following (friends) count from X.

≥ 0

datametricstweets
integer

Total post (status) count from X.

≥ 0

datametricsfavourites
integer

Total favourites (likes) count from X.

≥ 0

datametricslistedCount
integeroptional

Listed count when X provides it.

≥ 0

datametricsmediaCount
integeroptional

Media item count when X provides it.

≥ 0

datametricsfastFollowersCount
integeroptional

Fast-followers count when X provides it.

≥ 0

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

metacached
booleanoptional

True when served from shared response cache. Credits still apply (full endpoint price); Age header may be present.

Code example

curl "https://api.socialfetch.dev/v1/twitter/profiles/nasa" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Twitter profile lookup result.