Twitter

Search Twitter by hashtag

Search X posts by hashtag (not free-text keyword — use twitter.search.list for that).

GET/v1/twitter/hashtags
2credits
x-api-key*stringheader

API key (`sfk_...`)

Parameters
4
hashtag*stringquery

Hashtag to search for.

min 1 chars · max 256 chars

sectionstringoptionalquery

Optional section filter for the hashtag feed. Omit to use the default `top` section.

one of: top, latest, people, photos, videos

limitoptionalquery

Optional page size. Maximum supported value is 20.

cursorstringoptionalquery

Opaque pagination cursor returned by a previous response.

min 1 chars

Response fields
69

Endpoint-specific response payload.

Posts returned for the requested hashtag.

datatweets[]id
string

Tweet id.

min 1 chars

datatweets[]url
stringnullable

Canonical public URL for the tweet when available.

datatweets[]text
string

Full tweet text when available.

datatweets[]createdAt
integer

Creation time as Unix epoch seconds.

≥ 0

datatweets[]createdAtLabel
stringnullable

Human-readable creation timestamp string when available.

datatweets[]language
stringnullable

Language code for the tweet when available.

datatweets[]conversationId
stringnullable

Conversation identifier when supplied.

min 1 chars

datatweets[]inReplyToStatusId
stringnullable

Parent post identifier when this post is a reply.

min 1 chars

datatweets[]quotedStatusId
stringnullable

Quoted post identifier when this post quotes another.

min 1 chars

datatweets[]retweetTweetId
stringnullable

Original post identifier when this post is an engagement repost.

min 1 chars

Author metadata for the tweet when available.

datatweets[]authorhandle
string

Author handle without the leading @.

min 1 chars

datatweets[]authordisplayName
stringnullable

Display name shown for the author.

datatweets[]authoravatarUrl
stringnullable

Profile image URL for the author when available.

datatweets[]authorprofileUrl
stringnullable

Canonical public profile URL for the author when available.

datatweets[]authorverified
boolean

Whether the author has legacy verification on X.

datatweets[]authorblueVerified
boolean

Whether the author has paid blue verification on X.

datatweets[]authorplatformUserId
stringoptional

Numeric X user id for the author as a string.

Engagement metrics for a tweet.

datatweets[]metricslikes
integer

Like count.

≥ 0

datatweets[]metricsretweets
integer

Retweet count.

≥ 0

datatweets[]metricsreplies
integer

Reply count.

≥ 0

datatweets[]metricsquotes
integer

Quote count.

≥ 0

datatweets[]metricsviews
integernullable

View count when available.

≥ 0

datatweets[]metricsbookmarkCount
integernullable

Bookmark count when available.

≥ 0

Media attachments returned for the tweet.

datatweets[]media[]url
string

Direct media URL when available.

min 1 chars

datatweets[]media[]type
string

Media type when Social Fetch can classify it confidently.

one of: photo, video

datatweets[]media[]thumbnailUrl
stringoptional

Poster or thumbnail URL for video media when distinguishable.

min 1 chars

datatweets[]media[]contentType
stringoptional

MIME type reported for streamed media.

min 1 chars

datatweets[]media[]bitrate
integeroptional

Bitrate in bits per second when supplied for streamed media.

≥ 0

datatweets[]media[]width
integeroptional

Width in pixels when available.

≥ 0

datatweets[]media[]height
integeroptional

Height in pixels when available.

≥ 0

datatweets[]expandedUrl
stringnullable

Expanded URL attached to the tweet when available.

datatweets[]isRetweet
boolean

Whether the tweet is marked as a retweet.

datatweets[]isReply
booleanoptional

Whether the tweet is a reply to another post.

datatweets[]isQuote
booleanoptional

Whether the tweet quotes another post.

datatweets[]source
stringnullable

Source label such as `Twitter Web App` when available.

Profiles returned for the requested hashtag.

datapeople[]platformUserId
string

Numeric X user id as a string.

min 1 chars

datapeople[]handle
stringnullable

X screen name (handle) without the leading @.

datapeople[]displayName
stringnullable

Display name shown on the profile.

datapeople[]bio
stringnullable

Profile biography text.

datapeople[]avatarUrl
stringnullable

Best available square avatar image URL.

datapeople[]bannerUrl
stringnullableoptional

Profile banner image URL when available.

datapeople[]verified
boolean

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

datapeople[]blueVerified
boolean

Whether the account has X blue (paid) verification.

datapeople[]privateAccount
boolean

Whether the account is protected (private).

datapeople[]profileUrl
string

Canonical public profile URL on x.com.

min 1 chars

datapeople[]website
stringnullableoptional

Primary outbound link from the profile when provided.

datapeople[]location
stringnullableoptional

Location string from the profile when provided.

datapeople[]accountCreatedAt
integeroptional

Account creation time as Unix epoch seconds when derivable.

≥ 0

Aggregate profile metrics from X.

datapeople[]metricsfollowers
integer

Follower count from X.

≥ 0

datapeople[]metricsfollowing
integer

Following (friends) count from X.

≥ 0

datapeople[]metricstweets
integer

Total post (status) count from X.

≥ 0

datapeople[]metricsfavourites
integer

Total favourites (likes) count from X.

≥ 0

datapeople[]metricslistedCount
integeroptional

Listed count when X provides it.

≥ 0

datapeople[]metricsmediaCount
integeroptional

Media item count when X provides it.

≥ 0

datapeople[]metricsfastFollowersCount
integeroptional

Fast-followers count when X provides it.

≥ 0

Pagination information for the current response.

datapagenextCursor
stringnullable

Cursor to pass as `cursor` in the next request when another page exists.

datapagehasMore
boolean

Whether another page can be requested.

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

Code example

curl "https://api.socialfetch.dev/v1/twitter/hashtags?hashtag=#trending" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Posts returned for the requested hashtag.