Social Fetch
TikTok

Search TikTok by hashtag

Search TikTok videos by hashtag.

Use `data.page.hasMore` and `data.page.nextCursor` for pagination. Repeat the same hashtag and filters when requesting the next page.

GET/v1/tiktok/search/hashtags
1credit
x-api-key*stringheader

API key (`sfk_...`)

Parameters
4
hashtag*stringquery

Hashtag to search for. A leading # is optional.

min 1 chars · max 256 chars

regionstringoptionalquery

Optional region (country code) for the request. This sets the proxy region and does not filter results to that country only.

min 1 chars

cursorstringoptionalquery

Pagination cursor returned by a previous response.

min 1 chars

trimbooleanoptionalquery

Whether to request a smaller response with fewer fields.

Response fields
36

Endpoint-specific response payload.

datahashtag
string

Hashtag evaluated for this response, without a leading #.

dataregion
stringnullable

Region applied for this response when one was requested.

TikTok videos matching the hashtag in order. Duplicate video ids may appear when the platform returns them.

datavideos[]id
string

TikTok video identifier.

min 1 chars

datavideos[]caption
stringnullable

Caption text shown for the TikTok video.

datavideos[]createdAt
stringnullable

ISO-8601 timestamp when the video was created, when available.

datavideos[]url
stringnullable

Canonical public TikTok URL for the video.

datavideos[]thumbnailUrl
stringnullable

Best available thumbnail or cover image URL for the video.

datavideos[]durationMs
integernullable

Video duration in milliseconds, when available.

≥ 0

datavideos[]pinned
boolean

Whether the video is pinned on the profile.

datavideos[]isAd
boolean

Whether TikTok marks the video as an ad.

Engagement metrics for the video.

datavideos[]statsviews
integer

View count reported by TikTok for the video.

≥ 0

datavideos[]statslikes
integer

Like count reported by TikTok for the video.

≥ 0

datavideos[]statscomments
integer

Comment count reported by TikTok for the video.

≥ 0

datavideos[]statsshares
integer

Share count reported by TikTok for the video.

≥ 0

datavideos[]statssaves
integer

Save or collection count reported by TikTok for the video.

≥ 0

Download-related media URLs for the video.

datavideos[]mediadownloadUrl
stringnullable

Best available downloadable video URL, usually with watermark.

datavideos[]mediadownloadWithoutWatermarkUrl
stringnullable

Best available downloadable video URL without watermark.

datavideos[]details
objectoptional

Additional TikTok-native fields for this video (for example author, music, challenges, and full `video` and `statistics` objects). Keys that only duplicate the top-level fields are omitted.

Author metadata for this hashtag search result.

datavideos[]authorid
stringnullable

TikTok user id for the video author when available.

datavideos[]authorhandle
stringnullable

TikTok handle for the video author when available.

datavideos[]authordisplayName
stringnullable

Display name for the video author when available.

datavideos[]authoravatarUrl
stringnullable

Avatar image URL for the video author when available.

datavideos[]authorverified
boolean

Whether the author is verified on TikTok.

datatotalVideos
integer

Number of video rows returned in this response.

≥ 0

Pagination information for the current hashtag search page.

datapagenextCursor
stringnullable

Cursor to pass in the next request when more videos are available.

datapagehasMore
boolean

Whether another page of videos is available.

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/tiktok/search/hashtags?hashtag=trending" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Hashtag search results for the requested tag.

On this page

No Headings