Social Fetch
Twitter

Get Twitter tweet

Returns public metadata and engagement for a single tweet on X, including author profile context and an expanded quoted tweet when present.

Operation

GET/v1/twitter/tweets
Cost: 1 credit

Headers

x-api-keystringrequired(header)

API key (`sfk_...`)

Parameters

urlstringrequired(query)

Tweet permalink or identifier.

min 1 chars · max 4096 chars

trimboolean(query)

Optional: omit author profile and tweet `core` for a smaller response.

Response fields

data
objectrequired

Endpoint-specific response payload.

datalookupStatus
stringrequired

Whether the tweet was found or unavailable.

one of: found, not_found

dataauthor
objectrequirednullable

Author profile and metrics when not trimmed; null when `trim=true` or when not found.

dataauthorprofile
objectrequired

Profile fields for the tweet author.

dataauthorprofileplatform
stringrequired

Social platform for this profile.

one of: twitter

dataauthorprofilehandle
stringrequired

X screen name (handle) without the leading @.

dataauthorprofiledisplayName
stringrequirednullable

Display name shown on the profile.

dataauthorprofilebio
stringrequirednullable

Profile biography text.

dataauthorprofileavatarUrl
stringrequirednullable

Best available square avatar image URL.

dataauthorprofilebannerUrl
stringnullable

Profile banner image URL when available.

dataauthorprofileverified
booleanrequired

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

dataauthorprofileblueVerified
booleanrequired

Whether the account has X blue (paid) verification.

dataauthorprofileprofileUrl
stringrequired

Canonical public profile URL on x.com.

min 1 chars

dataauthorprofileprivateAccount
booleanrequired

Whether the account is protected (private).

dataauthorprofileplatformUserId
string

Numeric X user id (`rest_id`) as a string.

dataauthorprofileaccountCreatedAt
integer

Account creation time as Unix epoch seconds when derivable.

≥ 0

dataauthorprofilelocation
stringnullable

Location string from the profile when provided.

dataauthorprofilewebsite
stringnullable

Primary outbound link (expanded URL) from the profile.

dataauthorprofilepinnedTweetId
string

Pinned tweet id when X exposes one.

dataauthorprofileverificationInfo
object

Structured verification metadata from X.

dataauthorprofileverificationInfoisIdentityVerified
booleanrequired

Whether X marks the account as identity-verified.

dataauthorprofileverificationInfoverifiedSinceMsec
string

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

dataauthorprofileverificationInforeason
object

Verification reason payload when X provides it.

dataauthorprofileverificationInforeasontext
string

Human-readable verification reason text from X.

dataauthorprofileverificationInforeasonentities
array

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

dataauthorprofileverificationInforeasonentities[]
nullable
dataauthorprofiletipJar
object

Tip jar configuration when present.

dataauthorprofiletipJarisEnabled
booleanrequired

Whether the X tip jar is enabled.

dataauthorprofiletipJarhandles
object

Per-service handles when any are present.

dataauthorprofiletipJarhandlesbandcamp
string

Bandcamp handle from tip jar.

dataauthorprofiletipJarhandlesbitcoin
string

Bitcoin address or handle.

dataauthorprofiletipJarhandlescashApp
string

Cash App handle.

dataauthorprofiletipJarhandlesethereum
string

Ethereum address or handle.

dataauthorprofiletipJarhandlesgoFundMe
string

GoFundMe handle.

dataauthorprofiletipJarhandlespatreon
string

Patreon handle.

dataauthorprofiletipJarhandlespayPal
string

PayPal handle.

dataauthorprofiletipJarhandlesvenmo
string

Venmo handle.

dataauthorprofilehighlights
object

Tweet highlights metadata when present.

dataauthorprofilehighlightscanHighlightTweets
booleanrequired

Whether the account may highlight tweets on the profile.

dataauthorprofilehighlightshighlightedTweetCount
integerrequired

Count of highlighted tweets when reported by X.

≥ 0

dataauthorprofilebusinessAccount
object

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

dataauthorprofilecreatorSubscriptionsCount
integer

Creator subscriptions count when X reports it.

≥ 0

dataauthorprofileaffiliateLabel
object

Affiliate or business label when X provides one.

dataauthorprofileaffiliateLabeldescription
stringrequired

Affiliate or business label text shown on the profile.

dataauthorprofileaffiliateLabelbadgeUrl
string

Badge image URL when X provides one.

dataauthorprofileaffiliateLabelurl
string

Destination URL for the label link.

dataauthormetrics
objectrequired

Aggregate counts for the tweet author.

dataauthormetricsfollowers
integerrequired

Follower count from X.

≥ 0

dataauthormetricsfollowing
integerrequired

Following (friends) count from X.

≥ 0

dataauthormetricstweets
integerrequired

Total post (status) count from X.

≥ 0

dataauthormetricsfavourites
integerrequired

Total favourites (likes) count from X.

≥ 0

dataauthormetricslistedCount
integer

Listed count when X provides it.

≥ 0

dataauthormetricsmediaCount
integer

Media item count when X provides it.

≥ 0

dataauthormetricsfastFollowersCount
integer

Fast-followers count when X provides it.

≥ 0

datatweet
objectrequirednullable

Tweet body, metrics, and optional quoted tweet; null when not found.

datatweetid
stringrequired

Tweet id (`rest_id`).

min 1 chars

datatweeturl
stringrequired

Canonical public URL for this tweet on x.com.

min 1 chars

datatweetconversationId
stringrequired

Conversation root tweet id.

min 1 chars

datatweetcreatedAt
integerrequired

Creation time as Unix epoch seconds.

≥ 0

datatweetlanguage
stringrequired

BCP 47 or X language code.

min 1 chars

datatweettext
stringrequired

Full tweet text (includes long-form when available).

datatweetisLongForm
booleanrequired

True when text was taken from note_tweet metadata instead of legacy.full_text alone.

datatweetdisplayTextRange
arrayrequired

Start/end character indices for visible text.

datatweetdisplayTextRange[]
integer

≥ 0

datatweetmetrics
objectrequired

Engagement metrics for a tweet.

datatweetmetricsviews
integerrequired

Impression count when reported by X.

≥ 0

datatweetmetricsfavorites
integerrequired

Favorite (like) count.

≥ 0

datatweetmetricsretweets
integerrequired

Native repost count.

≥ 0

datatweetmetricsreplies
integerrequired

Reply count.

≥ 0

datatweetmetricsbookmarks
integerrequired

Bookmark count.

≥ 0

datatweetmetricsquotes
integerrequired

Quote tweet count.

≥ 0

datatweetmedia
arrayrequired

Photo, video, or GIF attachments.

datatweetmedia[]
datatweetentities
objectrequired

Entities aligned with `text`.

datatweetentitieshashtags
arrayrequired

Hashtag entities.

datatweetentitieshashtags[]text
stringrequired

Hashtag text without #.

datatweetentitiesuserMentions
arrayrequired

User mention entities.

datatweetentitiesuserMentions[]handle
stringrequired

Mentioned screen name.

min 1 chars

datatweetentitiesuserMentions[]displayName
string

Display name when available.

datatweetentitiesuserMentions[]platformUserId
string

Numeric user id for the mention when available.

datatweetentitiesurls
arrayrequired

URL entities.

datatweetentitiesurls[]url
stringrequired

Short URL as it appears in text.

min 1 chars

datatweetentitiesurls[]displayUrl
stringrequired

Human-readable display host/path.

min 1 chars

datatweetentitiesurls[]expandedUrl
stringrequired

Fully expanded destination URL.

min 1 chars

datatweetentitiessymbols
arrayrequired

Symbol entities.

datatweetentitiessymbols[]text
stringrequired

Cashtag or symbol text.

min 1 chars

datatweetisReply
booleanrequired

Whether this is a reply.

datatweetinReplyToTweetId
string

Parent tweet id when replying.

datatweetinReplyToUserId
string

Parent author user id when replying.

datatweetinReplyToScreenName
string

Parent author handle when replying.

datatweetisQuote
booleanrequired

Whether this tweet quotes another.

datatweetquotedTweetId
string

Quoted tweet id when present.

datatweetisRetweet
booleanrequired

Whether this is a native repost.

datatweetretweetedTweetId
string

Original tweet id for a repost.

datatweetpossiblySensitive
booleanrequired

Whether X marks the content sensitive.

datatweeteditInfo
object

Edit metadata when applicable.

datatweeteditInfoeditTweetIds
arrayrequired

Tweet ids in this edit chain.

datatweeteditInfoeditTweetIds[]
string

min 1 chars

datatweeteditInfoeditableUntilMsec
stringrequired

Epoch milliseconds until edits are locked.

datatweeteditInfoisEditEligible
booleanrequired

Whether the tweet can still be edited.

datatweeteditInfoeditsRemaining
stringrequired

Remaining edits in the window, as reported by X.

datatweetsource
string

Client label text (for example “Twitter for iPhone”).

datatweetsourceUrl
string

Link target from the source anchor when present.

datatweetquotedTweet
object

Quoted tweet expanded one level (no further nesting on this field).

datatweetquotedTweetid
stringrequired

Tweet id (`rest_id`).

min 1 chars

datatweetquotedTweeturl
stringrequired

Canonical public URL for this tweet on x.com.

min 1 chars

datatweetquotedTweetconversationId
stringrequired

Conversation root tweet id.

min 1 chars

datatweetquotedTweetcreatedAt
integerrequired

Creation time as Unix epoch seconds.

≥ 0

datatweetquotedTweetlanguage
stringrequired

BCP 47 or X language code.

min 1 chars

datatweetquotedTweettext
stringrequired

Full tweet text (includes long-form when available).

datatweetquotedTweetisLongForm
booleanrequired

True when text was taken from note_tweet metadata instead of legacy.full_text alone.

datatweetquotedTweetdisplayTextRange
arrayrequired

Start/end character indices for visible text.

datatweetquotedTweetdisplayTextRange[]
integer

≥ 0

datatweetquotedTweetauthor
objectrequirednullable

Author snapshot; null when `trim=true` omits per-tweet author data.

datatweetquotedTweetauthorhandle
stringrequired

Author screen name without the leading @.

min 1 chars

datatweetquotedTweetauthordisplayName
stringrequirednullable

Author display name.

datatweetquotedTweetauthoravatarUrl
stringrequirednullable

Best available square avatar URL for the author.

datatweetquotedTweetauthorverified
booleanrequired

Whether X marks the author with legacy verification.

datatweetquotedTweetauthorblueVerified
booleanrequired

Whether the author has X blue (paid) verification.

datatweetquotedTweetauthorplatformUserId
string

Numeric X user id for the author as a string.

datatweetquotedTweetmetrics
objectrequired

Engagement metrics for a tweet.

datatweetquotedTweetmetricsviews
integerrequired

Impression count when reported by X.

≥ 0

datatweetquotedTweetmetricsfavorites
integerrequired

Favorite (like) count.

≥ 0

datatweetquotedTweetmetricsretweets
integerrequired

Native repost count.

≥ 0

datatweetquotedTweetmetricsreplies
integerrequired

Reply count.

≥ 0

datatweetquotedTweetmetricsbookmarks
integerrequired

Bookmark count.

≥ 0

datatweetquotedTweetmetricsquotes
integerrequired

Quote tweet count.

≥ 0

datatweetquotedTweetmedia
arrayrequired

Photo, video, or GIF attachments.

datatweetquotedTweetmedia[]
datatweetquotedTweetentities
objectrequired

Entities aligned with `text`.

datatweetquotedTweetentitieshashtags
arrayrequired

Hashtag entities.

datatweetquotedTweetentitieshashtags[]text
stringrequired

Hashtag text without #.

datatweetquotedTweetentitiesuserMentions
arrayrequired

User mention entities.

datatweetquotedTweetentitiesuserMentions[]handle
stringrequired

Mentioned screen name.

min 1 chars

datatweetquotedTweetentitiesuserMentions[]displayName
string

Display name when available.

datatweetquotedTweetentitiesuserMentions[]platformUserId
string

Numeric user id for the mention when available.

datatweetquotedTweetentitiesurls
arrayrequired

URL entities.

datatweetquotedTweetentitiesurls[]url
stringrequired

Short URL as it appears in text.

min 1 chars

datatweetquotedTweetentitiesurls[]displayUrl
stringrequired

Human-readable display host/path.

min 1 chars

datatweetquotedTweetentitiesurls[]expandedUrl
stringrequired

Fully expanded destination URL.

min 1 chars

datatweetquotedTweetentitiessymbols
arrayrequired

Symbol entities.

datatweetquotedTweetentitiessymbols[]text
stringrequired

Cashtag or symbol text.

min 1 chars

datatweetquotedTweetisReply
booleanrequired

Whether this is a reply.

datatweetquotedTweetinReplyToTweetId
string

Parent tweet id when replying.

datatweetquotedTweetinReplyToUserId
string

Parent author user id when replying.

datatweetquotedTweetinReplyToScreenName
string

Parent author handle when replying.

datatweetquotedTweetisQuote
booleanrequired

Whether this tweet quotes another.

datatweetquotedTweetquotedTweetId
string

Quoted tweet id when present.

datatweetquotedTweetisRetweet
booleanrequired

Whether this is a native repost.

datatweetquotedTweetretweetedTweetId
string

Original tweet id for a repost.

datatweetquotedTweetpossiblySensitive
booleanrequired

Whether X marks the content sensitive.

datatweetquotedTweeteditInfo
object

Edit metadata when applicable.

datatweetquotedTweeteditInfoeditTweetIds
arrayrequired

Tweet ids in this edit chain.

datatweetquotedTweeteditInfoeditTweetIds[]
string

min 1 chars

datatweetquotedTweeteditInfoeditableUntilMsec
stringrequired

Epoch milliseconds until edits are locked.

datatweetquotedTweeteditInfoisEditEligible
booleanrequired

Whether the tweet can still be edited.

datatweetquotedTweeteditInfoeditsRemaining
stringrequired

Remaining edits in the window, as reported by X.

datatweetquotedTweetsource
string

Client label text (for example “Twitter for iPhone”).

datatweetquotedTweetsourceUrl
string

Link target from the source anchor when present.

meta
objectrequired

Metadata describing the request and billing outcome.

metarequestId
stringrequired

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integerrequired

Credits charged for this request.

≥ 0

metaversion
stringrequired

Public API version that served the response.

one of: v1

Code example

Responses

Tweet details when available. Check `data.lookupStatus` for `found` vs `not_found`.

Error codes

bad_requestinsufficient_creditsinternal_errorlookup_failedtemporarily_unavailableunauthorized

On this page