TikTok Public Hashtag and Search Video Scraper avatar

TikTok Public Hashtag and Search Video Scraper

Pricing

from $2.99 / 1,000 hashtag videos

Go to Apify Store
TikTok Public Hashtag and Search Video Scraper

TikTok Public Hashtag and Search Video Scraper

Scrape public TikTok hashtag or search result pages with Playwright and return visible video-card metadata, author, music, and engagement fields.

Pricing

from $2.99 / 1,000 hashtag videos

Rating

0.0

(0)

Developer

w3crawler

w3crawler

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissions

Share

TikTok Hashtag and Search Scraper reads one public TikTok hashtag or search result and returns a bounded set of source-backed video cards exposed for that query. It preserves public captions, creator identity, hashtags, visible metric text, sound labels, thumbnails, canonical video URLs, query provenance, and observed position. It does not use account cookies, log in, solve CAPTCHA challenges, or claim that a blocked page is empty.

Get started

  1. Open the Actor Store page and select Try for free or open the Input tab.
  2. Supply either hashtag (with or without #) or query; at least one is required. A hashtag takes precedence when both are present.
  3. Set maxItems and keep the other limits small for the first run. Enable includeDiagnostics only if you want a minimal row for blocked, failed, or empty access.
  4. Start the Actor, open the dataset, and export records as JSON, CSV, or Excel. Open Run summary (OUTPUT_SUMMARY) to see the search type, transport, and response metadata.

Input

Provide at least one of hashtag or query. The other fields are optional; the defaults below are ready to use. Unsupported fields and out-of-range values are rejected before requests start.

FieldTypeRequired?DefaultMeaning
querystringConditionalNot suppliedPublic TikTok search phrase, up to 120 characters. Used when hashtag is empty.
hashtagstringConditionalNot suppliedHashtag with or without #; 1 to 100 letters, numbers, underscores, or hyphens. Takes precedence over query.
maxItemsintegerOptional30Maximum distinct public video records to emit, from 1 to 200.
includeDiagnosticsbooleanOptionalfalseEmit one minimal {url,error,errorCode,scrapedAt} row for blocked, failed, or empty access.
requestTimeoutSecsintegerOptional20Bounded timeout for each public HTTP request route, from 10 to 120 seconds.
maxRequestRetriesintegerOptional1Bounded retry count for each public HTTP request route, from 0 to 2.
proxyConfigurationobjectOptionalNot suppliedOptional Apify Proxy or custom HTTP(S) proxy. Proxy use does not bypass access controls.
fixturePathstringOptionalNot suppliedQA-only relative path below test/fixtures, up to 240 characters. Fixture mode is explicit and never used as a live fallback.

Full default input; supply hashtag or query before running:

{
"maxItems": 30,
"includeDiagnostics": false,
"requestTimeoutSecs": 20,
"maxRequestRetries": 1
}

The Actor requests the public hashtag or search result through the public embed state first, then the TikWM public resolver, then the public TikTok page for the same query. It does not paginate or scroll beyond the first result set.

Output

The dataset contains one row per source-backed video card, or one minimal diagnostic row when includeDiagnostics is enabled and access is blocked, failed, or empty. Optional values are omitted when the page does not expose them.

FieldTypeAvailabilityMeaning
videoIdstringWhen publishedPublic TikTok video identifier.
videoUrlstringWhen publishedPublic TikTok video URL.
authorNamestringWhen publishedPublic creator display name.
authorUsernamestringWhen publishedPublic creator handle without @.
authorUrlstringWhen publishedPublic creator profile URL.
descriptionstringWhen publishedPublic video caption or description.
hashtagsstring arrayWhen publishedHashtags from the public caption.
playCountstringWhen publishedVisible play or view count text, preserved as displayed.
likeCountstringWhen publishedVisible like count text, preserved as displayed.
commentCountstringWhen publishedVisible comment count text, preserved as displayed.
shareCountstringWhen publishedVisible share count text, preserved as displayed.
durationSecondsintegerWhen publishedStructured public duration in seconds when exposed.
durationTextstringWhen publishedVisible duration text when exposed.
musicTitlestringWhen publishedPublic sound title.
musicAuthorstringWhen publishedPublic sound author label.
musicUrlstringWhen publishedPublic TikTok music URL.
thumbnailUrlstringWhen publishedPublic thumbnail URL.
searchQuerystringWhen publishedQuery or #hashtag used for this record.
searchTypestringWhen publishedSearch mode: hashtag or search.
sourcestringWhen publishedProvenance source label.
sourceUrlstringIn a video recordPublic hashtag or search page URL that produced the record.
extractionMethodstringWhen publishedPublic route used to obtain the record, including any third-party resolver.
positionintegerWhen publishedPosition in the observed bounded result batch.
scrapedAtstringAlwaysUTC record timestamp.
urlstringIn a diagnostic rowRequested source URL in a minimal diagnostic row.
errorstringIn a diagnostic rowBounded diagnostic message.
errorCodestringIn a diagnostic rowStable diagnostic code, such as ACCESS_BLOCK or EMPTY_RESULTS.

The example below is a real saved row from the 2026-10-25 run. The caption includes a licensing contact published in the public post itself.

{
"videoId": "7420901841338240288",
"videoUrl": "https://www.tiktok.com/@brianschwartz53/video/7420901841338240288",
"authorName": "brianschwartz53",
"authorUsername": "brianschwartz53",
"authorUrl": "https://www.tiktok.com/@brianschwartz53",
"description": "When October 1st hits 🎃 . #fyp #funny #baby #halloween #dance . To use this video in a commercial player or in broadcasts, please contact licensing@storyful.com",
"hashtags": [
"fyp",
"funny",
"baby",
"halloween",
"dance"
],
"thumbnailUrl": "https://p19-common-sign.tiktokcdn-us.com/tos-useast2a-p-0037-euttp/06d368cab67d40e0911582e98e54a23d_1727813362~tplv-tiktokx-origin.image?dr=9636&x-expires=1793131200&x-signature=%2BXnQZKQfWOLZ5sgABVFsGubappQ%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=useast5",
"searchQuery": "#dance",
"searchType": "hashtag",
"source": "tiktok.com",
"sourceUrl": "https://www.tiktok.com/tag/dance",
"extractionMethod": "tiktok_embed_state",
"position": 1,
"scrapedAt": "2026-10-25T20:54:28.297Z"
}

A diagnostic row contains only url, error, errorCode, and scrapedAt; it is written only when includeDiagnostics is true.

Run summary

Run summary is stored separately from the dataset in the run's key-value store under OUTPUT_SUMMARY. It records the hashtag or search request, the transport, the response metadata, and any access signal.

FieldMeaning
statusRun outcome: success, blocked, empty, or failed.
sourceSource label recorded for the run, tiktok.com.
sourceUrlPublic hashtag or search URL requested.
searchTypeSearch mode used: hashtag or search.
querySearch phrase used when searchType is search; omitted for hashtag runs.
hashtagNormalized hashtag used when searchType is hashtag; omitted for search runs.
normalCountNumber of video cards saved.
diagnosticCountDiagnostic dataset rows saved; populated only for a blocked, empty, or failed run with includeDiagnostics enabled.
transportTransport used for the successful route, such as direct_http, proxy, or reader_fallback.
responseFormatDetected page format, such as embed_state_json, html, or unknown.
readerFallbackWhether a reader fallback was used.
responseStatusHTTP status of the last response, when one was received.
responseBytesSize of the last response body in bytes, when reported.
contentTypeContent type of the last response, when reported.
accessSignalAccess-challenge signal detected in the response, when present.
attemptsArray of route attempts with status, transport, size, and outcome.
completedAtTime the summary was written, in ISO UTC.

Optional fields such as query, accessSignal, responseStatus, responseBytes, and contentType appear only when the selected route reports them.

StatusMeaning
successPublic video cards were saved without an extraction problem.
blockedNo cards were saved because TikTok returned an access challenge or denial.
emptyThe page loaded without an access challenge but exposed no usable public video cards.
failedA request or parse failure occurred before any usable record was saved.

Example OUTPUT_SUMMARY from the 2026-10-25 hashtag run:

{
"status": "success",
"source": "tiktok.com",
"sourceUrl": "https://www.tiktok.com/tag/dance",
"searchType": "hashtag",
"hashtag": "dance",
"normalCount": 5,
"diagnosticCount": 0,
"transport": "proxy",
"responseFormat": "embed_state_json",
"readerFallback": false,
"responseStatus": 200,
"responseBytes": 285085,
"contentType": "text/html; charset=utf-8",
"attempts": [
{
"route": "embed_state",
"transport": "proxy",
"statusCode": 200,
"responseBytes": 285085,
"contentType": "text/html; charset=utf-8",
"outcome": "ok"
}
],
"completedAt": "2026-10-25T20:54:28.553Z"
}

Coverage and limitations

The Actor reads one public hashtag or search page and returns only the cards in that response, up to maxItems. It does not scroll, paginate, or sweep every video that uses a hashtag. sourceUrl identifies the page, and position is the order observed in that batch, not a global rank. If both hashtag and query are supplied, hashtag determines the request.

Engagement values such as playCount and likeCount are kept as the visible strings, because the page may show rounded values such as 35.2K. A card can omit metrics, duration, sound, or location data. If TikTok returns an HTTP denial or access challenge, the run stops with blocked and does not switch to another source to get around the boundary; when includeDiagnostics is enabled, one minimal row records the URL, error, and error code. fixturePath is for offline QA only.

Usage and support

Cost depends on Apify compute, response time, dataset size, and optional proxy traffic. Start with a hashtag, maxItems around 30, and one request; inspect the dataset and OUTPUT_SUMMARY before scaling. See the Actor's Pricing tab for current account rates.

Use the Actor Issues page to report a problem. Include the run ID, the input used, and the run summary; do not include tokens, cookies, or private data. This Actor is not affiliated with, endorsed by, or sponsored by TikTok. Use it only for public data and in accordance with the source's terms, robots guidance, and applicable law. Public pages can contain personal information; use the output only for lawful purposes.