TikTok Search Hashtag API
Scrape TikTok Search Hashtag data with one API call. Searches TikTok for videos under a specific hashtag. Returns matching videos with engagement metrics and author info. `post.ext.region` is the ISO country TikTok registers each video to, when the source sends one.
Last updated October 2026Maintained by the SocialCrawl team
Returns TikTok videos posted under a given hashtag, each with caption, view, like, comment and share counts, author details, and a thumbnail.
Use it to track one tag such as a campaign or challenge; use search when you want a free text keyword rather than a tag.
Searching 68 platforms in parallel
What can you do with the Search Hashtag API?
The Search Hashtag endpoint gives you structured TikTok data with computed fields in a single request. No scraping infrastructure to build or maintain.
Example Request
curl -H "x-api-key: YOUR_API_KEY" \
"https://www.socialcrawl.dev/v1/tiktok/search/hashtag?hashtag=fyp&label=sponsored&trim=true"import requests
response = requests.get(
"https://www.socialcrawl.dev/v1/tiktok/search/hashtag",
params={
'hashtag': 'fyp',
'label': 'sponsored',
'trim': 'true',
},
headers={"x-api-key": "YOUR_API_KEY"},
)
data = response.json()const response = await fetch(
"https://www.socialcrawl.dev/v1/tiktok/search/hashtag?hashtag=fyp&label=sponsored&trim=true",
{
headers: { "x-api-key": "YOUR_API_KEY" },
},
);
const data = await response.json();Parameters worth sending
label=sponsoredMarks each post that is paid or sponsored, at no extra credits; intent and niche are free too.trim=trueSame price, lighter payload: drops the bulky raw fields.
Parameters
| Parameter | Required | Description |
|---|---|---|
| hashtag | Yes | Hashtag to search for without the # symbol |
| region | No | Region the proxy will be set to. Note: this isn't going to grab you all tiktoks from this region, you're just setting the proxy there. |
| cursor | No | Cursor to get more videos. Get 'cursor' from previous response. |
| trim | No | Accepted for compatibility; the response is already the canonical shape, so this flag has no effect. |
| label | No | Optional CSV of SocialCrawl labels to add to every post. Without this param every page already carries sponsored, intent and niche, free; label= adds the labels you name to them (the defaults keep running). sponsored, intent and niche are free when asked for too; mention, quality, intent with offer=, and injection add 1 credit per started 25 newly judged posts. judgments=off (or label=none) turns the default labels off. sponsored: is the post a paid or gifted promotion (p, 0 to 1), did it carry a disclosure marker such as #ad or 광고 (disclosed), is it likely paid with no marker (undisclosed), and which of the accounts it mentions does it promote (brand, or null). These are signals to review, never a finding. mention (needs brand=): is the post about that brand rather than something that shares its name (about_brand, 0 to 1), how it feels about the brand on five levels (sentiment_level 0 to 4 and sentiment_score 0 to 1, null when the post is not about the brand), is it sarcastic, which aspect it talks about (taste_or_quality, price_or_value, availability_or_delivery, health_or_safety, advertising_or_campaign, customer_service, none), and did the author buy or use it (first_hand). intent: what the author is mainly doing (label: asking_for_recommendation, comparing_options, switching_away, complaining, promoting, news_or_discussion, other, or null when unsure, with confidence), whether they read as a potential buyer rather than a seller (buyer, seller), how pressing the need is (urgency, 0 to 3), and, when you pass offer=, whether your offer would plausibly help them (fits_offer). niche: which of the 33 niches of the published taxonomy sc-niche-v1 the caption belongs to, or personal_no_niche, or other (label, confidence, taxonomy), with label null when the caption is too thin to tell or the pick is unsure. It reads the caption only, not the video. quality: how much checkable detail the caption carries (fact_density 0 to 3), whether it mainly asks for likes, replies, shares, follows or tags (engagement_bait, 0 to 1), whether it is written to provoke anger as a way to get engagement (rage_bait, 0 to 1; about the writing, never the side taken), whether it only repeats someone else's news or view (secondhand, 0 to 1), and what the post is mainly doing (post_aim: inform, opinion, sell, entertain, provoke, other). exclude=engagement_bait drops posts whose engagement_bait is 0.8 or higher. injection flags text that addresses an AI system and tries to direct it (flagged, p); it never drops or rewrites a row. A post that could not be judged carries labels: null. Posts already labelled for anyone are free, and so is a cached page. data.labels reports what was judged and billed. |
| exclude | No | Optional CSV (engagement_bait), only with label=quality. Drops posts whose engagement_bait probability is 0.8 or higher and lists their ids in data.labels.dropped_ids. A post that could not be judged is never dropped. |
| brand | No | Required by label=mention, ignored otherwise. The brand or product the posts are judged against, up to 300 characters, for example brand=Buldak. Without it label=mention is skipped with the warning label_mention_needs_brand and is not billed. |
| brand_description | No | Optional, with label=mention. One plain sentence saying what the brand is, for example brand_description=Samyang's spicy instant noodle brand. Use it when the name is also an ordinary word or another company's name. |
| offer | No | Optional, with label=intent. One or two plain sentences saying what you sell, up to 300 characters, for example offer=A web design agency that builds websites for small businesses. Adds fits_offer to every post; without it fits_offer is null. |
| judgments | No | Optional, on (the default) or off. By default every row gains free SocialCrawl judgments (computed.labels, and computed.relevance on search endpoints), reported in data.labels (mode default) and data.relevance (origin default), each with a status (complete, partial or skipped) and pending: the rows still being judged when the page was sent, which carry null now and are filled on your next call or cached read. Default judgments never add credits, never change an existing field, and never drop or reorder a row. off returns the page exactly as before, with none of those keys. label=none does the same. (on | off) |
| dry_run | No | Optional. When 1, return a cost preview for this labelled or relevance-filtered request without fetching the page or judging any row. data.estimate reports rows_expected, rows_cached, label_credits_min, label_credits_max and base_credits. 0 credits charged. (1) |
| label_evidence | No | Optional, only with label=. When 1, every labelled row also carries computed.labels_evidence.<preset> = { quote, sentence_index }: the sentence in the row that most clearly shows the label, copied verbatim. Absent or null when no single sentence shows it. (1) |
| fit | No | Optional. When goal, keep the rows and fields needed for the goal you pass in goal= (plus any that are uncertain, and the first and last), and replace the rest with a stub. data.held_back lists the held ids and a recall id that re-reads the full page from cache at no extra charge. Without this param the page is unchanged. (goal) |
| goal | No | Required by fit=goal. What you are trying to do, in your own words, up to 300 characters. |
| fit_tokens | No | Optional, only with fit=goal. Soft cap on how much of the page to keep, in tokens. Uncertain blocks and the first and last block are kept even if they exceed it. |
| since | No | Only rows published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. Rows older than it are left off each page. This list is not in date order, so the walk does not stop at the date: keep following `next_cursor`, and each page costs what a page costs even when every row on it is filtered out. A row with no date is kept. `published_after`, `start_date`, `from_date`, `publish_time` (`yesterday`, `this-week`, `this-month`, `last-3-months`, `last-6-months`) and `max_age_days` are accepted and applied as `since`. |
| until | No | Only rows published on or before this date: YYYY-MM-DD (that whole UTC day is included) or an ISO 8601 timestamp. Newer rows are left off each page and the walk does not stop, so older pages follow. A row with no date is kept. `published_before`, `end_date` and `to_date` are accepted and applied as `until`. |
| min_views | No | Keep only rows with at least this many views (`post.engagement.views`). A row whose view count is unknown is discarded, so every returned row meets the floor. Filtering runs on our side after each page is fetched, so every page walked is billed as usual; `data.walk.discarded` counts what was removed and why. |
| max_age_days | No | Keep only rows published within this many days (`post.published_at`), 1 to 3650. A row with no date is discarded. Filtering runs on our side after each page is fetched, so every page walked is billed as usual; `data.walk.discarded` counts what was removed and why. |
| sort_rows | No | `views`: return the kept rows ordered by view count, highest first, across every page walked. Rows without a view count go last. (views) |
| max_pages | No | 1 to 5 (default 1). Walk up to this many pages in one call and return the rows from all of them (after any filter). Each page walked is billed exactly as one call to this endpoint (a cached page is free) and counts against your rate limit. The walk stops early at the last page, or when the request's time budget runs low; `data.walk.stopped` says why (`end`, `max_pages`, `time_budget`, `page_error`) and `data.next_cursor` continues from where it stopped. |
| seen | No | An id you choose (1 to 64 letters, digits, `.`, `_` or `-`). Rows your account already received under the same `seen` id are removed from the page, and the page price falls with the share of repeats: page credits x new rows / rows on the page, rounded up, so a page of nothing but repeats is free. Only the page's own price is discounted: credits for joined data (`include=`) are charged only for rows you have not received, and are never discounted. The memory lasts 24 hours from the last call that used the id, holds row ids only, and is private to your account. Use one id across a set of related searches; `data.walk.repeats` counts what was removed. |
What does the TikTok Search Hashtag API return?
Every response follows one unified schema. Here is a real, unmodified response body, so you can see the exact fields you get back before spending a credit.
Example response
{
"success": true,
"platform": "tiktok",
"endpoint": "/v1/tiktok/search/hashtag",
"data": {
"items": [
{
"post": {
"id": "7691965619624955158",
"url": "https://www.tiktok.com/@user_5a907c/video/7691965619624955158",
"content": {
"text": "Sample comment text (redacted).",
"media_urls": "https://v45.tiktokcdn-eu.com/6c391a49e871648ab0dad81d004f5e44/6ac0ae60/video/tos/no1a/tos-no1a-ve-0068c001-no/o4IVfgGuQsMID1MWeiAAIJILHVflEG5fhAeNgW/?a=1233&bti=Ojs2NGYpQHM6OjZALjU2OmQvcCMxNDNg&&bt=1127&ft=ERfCrmZWD0~u12NvyJ6qzIxRMj8Zi3_45SY&mime_type=video_mp4&rc=Njg3PDo4aDw2OGU4OWQ7NUBpanZpa205cnZvZDMzbzczNUBhMzE1LmI2NTUxYzM0LTE2YSNlYi00MmRrY3NhLS1kMTFzcw%3D%3D&vvpl=1&l=202610020727164014D92F5CFFFEE6A7C6&btag=e000b5000&sp_exp=hash_v0",
"thumbnail_url": "https://p16-common-sign.tiktokcdn-eu.com/tos-no1a-p-0037-no/oMGNMfIVH4eThfggiIflWiAIGeAlLsD5uMzVVQ~tplv-tiktokx-origin.image?dr=1347&refresh_token=db533537&x-expires=1791010800&x-signature=M3EGUpoNs99DxsJgPmk%2FuzeZ6qc%3D&t=bacd0480&ps=933b5bde&shp=d05b14bd&shcp=c0f880ed&idc=no1a&biz_tag=tt_video&s=CHALLENGE_AWEME&sc=cover",
"duration_seconds": 11.4
},
"author": {
"username": "user_5a907c",
"display_name": "user_befc5a",
"avatar_url": "https://example.com/avatars/user_6cedcd.png",
"verified": false
},
"engagement": {
"views": 118,
"likes": 22,
"comments": 10,
"shares": 4,
"saves": 0
},
"flags": {
"nsfw": null,
"spoiler": null,
"pinned": false,
"deleted": false
},
"published_at": "2026-10-02T07:15:20.000Z",
"ext": {
"music_id": "7691965654240447254",
"author_id": "user_79a34d",
"download_count": 0,
"published_at_epoch": 1790925320
}
},
"computed": {
"engagement_rate": 0.305085,
"language": null,
"content_category": "other",
"estimated_reach": 142,
"labels": null
}
},
{
"post": {
"id": "7691966126997261590",
"url": "https://www.tiktok.com/@user_21333d/video/7691966126997261590",
"content": {
"text": "Sample comment text (redacted).",
"media_urls": "https://v45.tiktokcdn-eu.com/498de562048c7f6ca92c064e96db06fc/6ac0ae5f/video/tos/no1a/tos-no1a-ve-0068c001-no/oQ4fjTAfeAQOWNFjgGGqmoGEWIWQLRazfrCIsx/?a=1233&bti=Ojs2NGYpQHM6OjZALjU2OmQvcCMxNDNg&&bt=952&ft=ERfCrmZWD0~u12NvyJ6qzIxRMj8Zi3_45SY&mime_type=video_mp4&rc=Njc2Zjs7OGRkOzwzNmdpZEBpMzxrdnY5cmZvZDMzbzczNUAuMmFiXjVfXjAxYF5fYzFeYSNlZ29jMmRjZ3NhLS1kMTFzcw%3D%3D&vvpl=1&l=202610020727164014D92F5CFFFEE6A7C6&btag=e000b5000&sp_exp=hash_v0",
"thumbnail_url": "https://p16-common-sign.tiktokcdn-eu.com/tos-no1a-p-0037-no/ogqlQfTRAGICzAc4EWaGeLoxNWQljQmfGrf43I~tplv-tiktokx-origin.image?dr=1347&refresh_token=160061dd&x-expires=1791010800&x-signature=88ZkwZ4tua5igBfzDV%2BN6jXcvC0%3D&t=bacd0480&ps=933b5bde&shp=d05b14bd&shcp=c0f880ed&idc=no1a&biz_tag=tt_video&s=CHALLENGE_AWEME&sc=cover",
"duration_seconds": 10.35
},
"author": {
"username": "user_21333d",
"display_name": "user_3fdbeb",
"avatar_url": "https://example.com/avatars/user_3fba9d.png",
"verified": false
},
"engagement": {
"views": 191,
"likes": 40,
"comments": 0,
"shares": 0,
"saves": 4
},
"flags": {
"nsfw": null,
"spoiler": null,
"pinned": false,
"deleted": false
},
"published_at": "2026-10-02T07:17:17.000Z",
"ext": {
"music_id": "7285850014168533802",
"author_id": "user_4de9c2",
"download_count": 0,
"published_at_epoch": 1790925437,
"on_screen_texts": [
"pov: It’s a FRIDAY morning , it’s cold asf, had the best sleep , best dream , but somehow woke up with back pain and have no motivation to go to work/school\n"
]
}
},
"computed": {
"engagement_rate": 0.209424,
"language": null,
"content_category": "other",
"estimated_reach": 229,
"labels": null
}
}
],
"next_cursor": "sc2.eyJzIjoiaCIsImMiOiJzYzEuZXlKaklqb2lNakFpTENKeklqcGJJamMyT1RFNU5qVTJNVGsyTWpRNU5UVXhOVGdpTENJM05qa3hPVFkyTVRJMk9UazNNall4TlRrd0lpd2lOelk0T0RFM01qQXlOamN5TURJeE1ERTVOaUlzSWpjMk9URTVOalV5TVRBME16STNPRFUyT0RZaUxDSTNOamcxT0RNd09UTTFPVGsyTVRVM01qRTNJaXdpTnpNeU1qUTNPREV3Tmprek1Ua3lOREkxTlNJc0lqYzJOVGM1TlRRd01URXpPREk1TkRJNU9Ea2lMQ0kzTmpreE9UWTFOelF4TXprNE1ERTVNek14SWl3aU56WTVNVGsyTnpZeU1qWXhPRGcwTkRRek9DSXNJamMyT1RFNU5qWTFNVEF3TnpFek1UazRNekFpTENJM05qa3hPVFkxT0RJMk5UTTBNRGd6T0RZeUlpd2lOelk1TVRrMk5EYzBNVGt3TXpnMk16QTNNeUlzSWpjMk9URTVOamN4TURVNU1UUXhOakkwTlRRaUxDSTNOamt4T1RZMU16SXdNVFEzTXpnNU56RTRJaXdpTnpZNU1UazJOVGMzTXpjNU1EWXlPVEUwTWlJc0lqYzJPVEU1TmpZNE16WXpNek0yTWpnMk9UUWlYWDAifQ",
"total": null,
"labels": {
"presets": [
"sponsored",
"intent"
],
"rows": 16,
"labelled": 3,
"cached": 1,
"skipped": 1,
"unjudged": 0,
"dropped": 0,
"dropped_ids": [],
"extra_credits": 0,
"methodology_version": "labels/1",
"mode": "default",
"status": "partial",
"pending": 12,
"pending_ids": [
"7691965619624955158",
"7691966126997261590"
]
},
"dropped": 0
},
"credits_used": 1,
"request_id": "req_example000000",
"cached": false,
"pagination": {
"next_cursor": "sc.eyJ2IjoyLCJjIjoic2MyLmV5SnpJam9pYUNJc0ltTWlPaUp6WXpFdVpYbEtha2xxYjJsTmFrRnBURU5LZWtscWNHSkphbU15VDFSRk5VNXFWVEpOVkdzeVRXcFJOVTVVVlhoT1ZHZHBURU5KTTA1cWEzaFBWRmt5VFZSSk1rOVVhek5OYWxsNFRsUnJkMGxwZDJsT2VsazBUMFJGTTAxcVFYbE9hbU41VFVSSmVFMUVSVFZPYVVselNXcGpNazlVUlRWT2FsVjVUVlJCTUUxNlNUTlBSRlV5VDBSWmFVeERTVE5PYW1jeFQwUk5kMDlVVFRGUFZHc3lUVlJWTTAxcVJUTkphWGRwVG5wTmVVMXFVVE5QUkVWM1RtcHJlazFVYTNsT1JFa3hUbE5KYzBscVl6Sk9WR00xVGxSUmQwMVVSWHBQUkVrMVRrUkpOVTlFYTJsTVEwa3pUbXByZUU5VVdURk9lbEY0VFhwck5FMUVSVFZOZWsxNFNXbDNhVTU2V1RWTlZHc3lUbnBaZVUxcVdYaFBSR2N3VGtSUmVrOURTWE5KYW1NeVQxUkZOVTVxV1RGTlZFRjNUbnBGZWsxVWF6Uk5la0ZwVEVOSk0wNXFhM2hQVkZreFQwUkpNazVVVFRCTlJHZDZUMFJaZVVscGQybE9lbGsxVFZSck1rNUVZekJOVkd0M1RYcG5NazE2UVROTmVVbHpTV3BqTWs5VVJUVk9hbU40VFVSVk5VMVVVWGhPYWtrd1RsUlJhVXhEU1ROT2FtdDRUMVJaTVUxNlNYZE5WRkV6VFhwbk5VNTZSVFJKYVhkcFRucFpOVTFVYXpKT1ZHTXpUWHBqTlUxRVdYbFBWRVV3VFdsSmMwbHFZekpQVkVVMVRtcFpORTE2V1hwTmVrMHlUV3BuTWs5VVVXbFlXREFpZlEiLCJlIjoidGlrdG9rL3NlYXJjaC9oYXNodGFnIiwicCI6ImN1cnNvciJ9",
"has_more": true,
"page_size": 16
},
"credits_remaining": 9999,
"source": "captured",
"captured_at": "2026-10-02T07:27:19.420Z",
"redacted": true
}Live sample illustrating the unified response shape. Field values reflect the record you query.
How does the TikTok Search Hashtag API work?
Send a GET request with your API key and get back clean, structured JSON in our unified schema. Supported computed fields are populated when the source provides the required inputs.
Method
GET
Response
JSON
How do you scrape social media data in seconds?
The fastest social media scraping API for developers. Scrape profiles, posts, comments, and analytics from 68 platforms covering 10B+ monthly active users.
One schema, every platform
Query 68 platforms with identical response structures. Write your integration once.
Computed fields, not just scraped
When an endpoint supports these metrics and the source provides the required inputs, the normalized record includes engagement_rate, estimated_reach, content_category, and language. Ready to use.
See your data before you code
Visual Data Explorer. Paste any URL, get rich result cards, sortable tables, CSV export.
import requests
response = requests.get(
'https://www.socialcrawl.dev/v1/tiktok/profile',
params={'handle': 'charlidamelio'},
headers={'x-api-key': 'sc_YOUR_API_KEY'}
)
data = response.json(){
"success": true,
"platform": "tiktok",
"data": {
"author": {
"username": "charlidamelio",
"followers": 152400000
},
"engagement": {
"likes": 12400000000,
"engagement_rate": 0.087
},
"metadata": {
"language": "en",
"content_category": "lifestyle"
}
}
}Have a question? We got answers
Find answers to frequently asked questions about SocialCrawl's API, pricing, and capabilities.
Contact usHow do I search TikTok by hashtag with an API?
Do I include the # symbol in the hashtag parameter?
How do I paginate through all videos for a hashtag?
Does region filter results to a country?
How much does the TikTok Hashtag API cost?
Ask AI about SocialCrawl
Ready to scrape TikTok Search Hashtag data?
Get your API key and start pulling TikTok data in under 60 seconds.
