Search TikTok Top results

Search TikTok Top results by keyword (not videos-only — use tiktok.search.videos.list for that).

GET/v1/tiktok/search/top
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
5
querystringrequiredquery

Search query text for TikTok Top results.

min 1 chars · max 512 chars

datePostedstringoptionalquery

Optional upload date filter for video results.

one of: yesterday, this-week, this-month, last-3-months, last-6-months, all-time

sortBystringoptionalquery

Optional sort order for search results.

one of: relevance, most-liked, date-posted

regionstringoptionalquery

Optional two-letter ISO 3166-1 country code for localized search results.

cursorstringoptionalquery

Opaque pagination cursor returned by a previous response.

min 1 chars

Response fields
38

Endpoint-specific response payload.

dataquery
string

Search query that was evaluated for this response.

Matching TikTok posts (videos and photo slideshows).

dataitems[]id
string

TikTok post identifier.

min 1 chars

dataitems[]caption
stringnullable

Caption text shown for the post.

dataitems[]createdAt
stringnullable

When the post was created (ISO-8601).

dataitems[]url
stringnullable

Canonical public TikTok URL for the post.

dataitems[]thumbnailUrl
stringnullable

Thumbnail or cover image URL when available.

dataitems[]durationMs
integernullable

Duration in milliseconds when available.

≥ 0

dataitems[]mediaType
string

Whether the post is a video or a photo slideshow.

one of: video, slideshow

dataitems[]pinned
boolean

Whether TikTok marks the post as pinned in this result set.

dataitems[]isAd
boolean

Whether TikTok marks the post as an ad.

Engagement metrics for the post.

dataitems[]statsviews
integer

View count reported by TikTok for the video.

≥ 0

dataitems[]statslikes
integer

Like count reported by TikTok for the video.

≥ 0

dataitems[]statscomments
integer

Comment count reported by TikTok for the video.

≥ 0

dataitems[]statsshares
integer

Share count reported by TikTok for the video.

≥ 0

dataitems[]statssaves
integer

Save or collection count reported by TikTok for the video.

≥ 0

Media URLs for the post.

dataitems[]mediadownloadUrl
stringnullable

Downloadable video URL when available.

dataitems[]mediadownloadWithoutWatermarkUrl
stringnullable

Download URL without watermark when available.

Ordered image URLs for photo slideshow posts. Empty for videos.

dataitems[]mediaslideshowImages[]
stringoptional

Author metadata for this Top search result.

dataitems[]authorid
stringnullable

TikTok user id for the author when available.

dataitems[]authorhandle
stringnullable

TikTok handle for the author when available.

dataitems[]authordisplayName
stringnullable

Display name for the author when available.

dataitems[]authoravatarUrl
stringnullable

Avatar image URL for the author when available.

dataitems[]authorverified
boolean

Whether the author is verified on TikTok.

dataitems[]details
objectoptional

Additional TikTok-native fields for this post.

Pagination state for the current Top search page.

datapagehasMore
boolean

Whether another page is available.

datapagenextCursor
stringnullable

Cursor to pass in the next request when more pages exist; null on the last page.

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/tiktok/search/top?query=funny" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Top search results for the requested query.