TikTok Post Search
Searches TikTok posts by keyword with offset pagination plus sorting, publish-time, and region controls. Use it to support regional content discovery, topic research, or monitoring keyword-related videos.
/v1/tiktok/search_post_v1
$0.02
- Price
- $0.02 per successful call, Failed calls are free
- Endpoint ID
tiktok.search_post_v1
Parameters
-
keywordstring RequiredSearch keywords.
Example
咖啡 -
offsetinteger OptionalPagination offset, starting from 0 and stepping by 20.
Example
0 -
sort_typestring OptionalSorting criteria for search results.
Available Values:
RELEVANCE: Relevance (Default)MOST_LIKED: Most Liked
Example
RELEVANCE -
publish_timestring OptionalFilter posts by publishing time.
Available Values:
ALL: All TimeONE_DAY: Last 24 HoursONE_WEEK: Last 7 DaysONE_MONTH: Last 30 DaysTHREE_MONTHS: Last 90 DaysHALF_YEAR: Last 180 Days
Example
ALL -
regionstring OptionalISO 3166-1 alpha-2 country code (e.g., 'US', 'GB').
Example
US
Code samples
curl -G "https://api.mofa-ai.com/v1/tiktok/search_post_v1" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'keyword=咖啡' \
--data-urlencode 'offset=0' \
--data-urlencode 'sort_type=RELEVANCE' \
--data-urlencode 'publish_time=ALL' \
--data-urlencode 'region=US'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/tiktok/search_post_v1",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"keyword": "咖啡",
"offset": "0",
"sort_type": "RELEVANCE",
"publish_time": "ALL",
"region": "US",
},
timeout=60,
)
body = resp.json()
if body["success"]:
print(body["cost_usd"], body["data"])
else:
print(body["error"], body["message"])
const url = new URL("https://api.mofa-ai.com/v1/tiktok/search_post_v1");
url.search = new URLSearchParams({
keyword: "咖啡",
offset: "0",
sort_type: "RELEVANCE",
publish_time: "ALL",
region: "US",
});
const resp = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.MOFA_API_KEY}` },
});
const body = await resp.json();
if (body.success) console.log(body.cost_usd, body.data);
else console.error(body.error, body.message);
Example response
Request parameters {"offset": "0", "region": "US", "keyword": "咖啡", "sort_type": "RELEVANCE", "publish_time": "ALL"}
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "tiktok.search_post_v1",
"cost_usd": 0.02,
"data": {
"code": 0,
"data": {
"extra": {
"now": 1794095992000,
"logid": "2026110723595063002A444509E592EC34",
"api_debug_info": null,
"fatal_item_ids": [],
"search_request_id": "",
"server_stream_time": 1533
},
"cursor": 20,
"log_pb": {
"impr_id": "2026110723595063002A444509E592EC34"
},
"version": "v2",
"has_more": 1,
"backtrace": "",
"aweme_list": [],
"components": null,
"status_code": 0,
"feedback_type": "video",
"search_item_list": [
{
"aweme_info": {
"…": "+142",
"author": {
"…": "+77",
"cha_list": null,
"avatar_uri": "tos-alisg-avt-0068/bc313cd31dc16e42e90a910f57652770",
"aweme_count": 0,
"bold_fields": null,
"ad_cover_url": null,
"avatar_thumb": {
"uri": "tos-alisg-avt-0068/bc313cd31dc16e42e90a910f57652770",
"width": 720,
"height": 720,
"url_list": [
"https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/…",
"… +2"
],
"data_size": 0,
"url_prefix": null
},
"avatar_larger": {
"uri": "tos-alisg-avt-0068/bc313cd31dc16e42e90a910f57652770",
"width": 720,
"height": 720,
"url_list": [
"https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/…",
"… +2"
],
"data_size": 0,
"url_prefix": null
},
"avatar_medium": {
"uri": "tos-alisg-avt-0068/bc313cd31dc16e42e90a910f57652770",
"width": 720,
"height": 720,
"url_list": [
"https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/…",
"… +2"
],
"data_size": 0,
"url_prefix": null
},
"account_labels": null,
"avatar_168x168": {
"uri": "tos-alisg-avt-0068/bc313cd31dc16e42e90a910f57652770",
"width": 720,
"height": 720,
"url_list": [
"https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/…",
"… +2"
],
"data_size": 0,
"url_prefix": null
},
"avatar_300x300": {
"uri": "tos-alisg-avt-0068/bc313cd31dc16e42e90a910f57652770",
"width": 720,
"height": 720,
"url_list": [
"https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/…",
"… +2"
],
"data_size": 0,
"url_prefix": null
},
"comment_setting": 0,
"authority_status": 0,
"can_set_geofencing": null,
"commerce_user_level": 0,
"accept_private_policy": false,
"advanced_feature_info": null,
"comment_filter_status": 0,
"advance_feature_item_order": null,
"can_message_follow_status_list": [
0,
"… +3"
]
},
"anchors": null,
"banners": [
{
"key": {
"component_key": "bottom_banner_search_rs"
}
}
],
"aweme_id": "7696389829134781704",
"aigc_info": {
"created_by_ai": false,
"aigc_label_type": 0
},
"aweme_acl": {
"platform_list": null,
"share_general": {
"code": 0,
"mute": false,
"show_type": 2,
"transcode": 3
},
"download_general": {
"code": 0,
"mute": false,
"show_type": 2,
"transcode": 3
},
"press_action_list": null,
"share_action_list": null,
"share_list_status": 0,
"download_mask_panel": {
"code": 0,
"mute": false,
"show_type": 2,
"transcode": 3
}
},
"c2pa_info": {
"aigc_src": "",
"last_src": "",
"dedup_err": "",
"dedup_src": "",
"first_src": "",
"is_capcut": false,
"is_tiktok": false,
"total_err": 0,
"total_img": 0,
"total_src": 0,
"total_vid": 0,
"upload_dur": 0,
"total_audio": 0,
"last_aigc_src": "",
"first_aigc_src": "",
"c2pa_extra_data": "{\"aigc_percentage_type\":0}"
},
"allow_gift": true,
"aweme_type": 0,
"batch_index": 1,
"ai_remix_info": {
"has_entrance": false
},
"anchors_extras": "",
"author_user_id": 6700734535816037382,
"bodydance_score": 0,
"bottom_products": null,
"animated_image_info": {
"type": 0,
"effect": 0
},
"added_sound_music_info": {
"…": "+48",
"album": "",
"author": "Insert Richie",
"artists": [],
"duration": 61,
"cover_large": {
"uri": "tos-alisg-avt-0068/bc313cd31dc16e42e90a910f57652770",
"width": 720,
"height": 720,
"url_list": [
"https://p19-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/…",
"… +2"
],
"data_size": 0,
"url_prefix": null
},
"cover_thumb": {
"uri": "tos-alisg-avt-0068/bc313cd31dc16e42e90a910f57652770",
"width": 720,
"height": 720,
"url_list": [
"https://p19-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/…",
"… +2"
],
"data_size": 0,
"url_prefix": null
},
"create_time": 1791955413,
"avatar_thumb": {
"uri": "tos-alisg-avt-0068/bc313cd31dc16e42e90a910f57652770",
"width": 720,
…
Truncated for display; the full response is longer.
Try it
Sign in to call this endpoint from this page. Successful calls are billed to your balance, failed calls are free, and new accounts get $0.50 of trial credit.
More TikTok endpoints
-
User Published Posts
$0.02Retrieves posts published by a TikTok user identified by secUid, with cursor pagination and latest or popular sorting. Use it to browse a creator's posting h…
/v1/tiktok/get_user_post_v1
-
Post Details
$0.02Retrieves details for a TikTok post identified by its post ID. Use it to look up a known TikTok video before content review, reporting, or related engagement…
/v1/tiktok/get_post_detail_v1
-
User Profile
$0.02Retrieves a TikTok user profile by public username or secUid. Use it to look up a known account for creator research, profile review, or subsequent user-post…
/v1/tiktok/get_user_detail_v1
-
Post Comments
$0.02Retrieves comments for a TikTok post with cursor pagination. Use it to review audience discussion, continue through comment pages, or support comment analysi…
/v1/tiktok/get_post_comment_v1
-
Comment Replies
$0.02Retrieves replies to a specific comment on a TikTok post with cursor pagination. Use it to inspect threaded discussions and continue through reply pages for…
/v1/tiktok/get_post_sub_comment_v1