TikTok Public Hashtag and Search Video Scraper
Pricing
from $2.99 / 1,000 hashtag videos
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
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
2 days ago
Last modified
Categories
Features
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
- Open the Actor Store page and select Try for free or open the Input tab.
- Supply either
hashtag(with or without#) orquery; at least one is required. A hashtag takes precedence when both are present. - Set
maxItemsand keep the other limits small for the first run. EnableincludeDiagnosticsonly if you want a minimal row for blocked, failed, or empty access. - 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.
| Field | Type | Required? | Default | Meaning |
|---|---|---|---|---|
query | string | Conditional | Not supplied | Public TikTok search phrase, up to 120 characters. Used when hashtag is empty. |
hashtag | string | Conditional | Not supplied | Hashtag with or without #; 1 to 100 letters, numbers, underscores, or hyphens. Takes precedence over query. |
maxItems | integer | Optional | 30 | Maximum distinct public video records to emit, from 1 to 200. |
includeDiagnostics | boolean | Optional | false | Emit one minimal {url,error,errorCode,scrapedAt} row for blocked, failed, or empty access. |
requestTimeoutSecs | integer | Optional | 20 | Bounded timeout for each public HTTP request route, from 10 to 120 seconds. |
maxRequestRetries | integer | Optional | 1 | Bounded retry count for each public HTTP request route, from 0 to 2. |
proxyConfiguration | object | Optional | Not supplied | Optional Apify Proxy or custom HTTP(S) proxy. Proxy use does not bypass access controls. |
fixturePath | string | Optional | Not supplied | QA-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.
| Field | Type | Availability | Meaning |
|---|---|---|---|
videoId | string | When published | Public TikTok video identifier. |
videoUrl | string | When published | Public TikTok video URL. |
authorName | string | When published | Public creator display name. |
authorUsername | string | When published | Public creator handle without @. |
authorUrl | string | When published | Public creator profile URL. |
description | string | When published | Public video caption or description. |
hashtags | string array | When published | Hashtags from the public caption. |
playCount | string | When published | Visible play or view count text, preserved as displayed. |
likeCount | string | When published | Visible like count text, preserved as displayed. |
commentCount | string | When published | Visible comment count text, preserved as displayed. |
shareCount | string | When published | Visible share count text, preserved as displayed. |
durationSeconds | integer | When published | Structured public duration in seconds when exposed. |
durationText | string | When published | Visible duration text when exposed. |
musicTitle | string | When published | Public sound title. |
musicAuthor | string | When published | Public sound author label. |
musicUrl | string | When published | Public TikTok music URL. |
thumbnailUrl | string | When published | Public thumbnail URL. |
searchQuery | string | When published | Query or #hashtag used for this record. |
searchType | string | When published | Search mode: hashtag or search. |
source | string | When published | Provenance source label. |
sourceUrl | string | In a video record | Public hashtag or search page URL that produced the record. |
extractionMethod | string | When published | Public route used to obtain the record, including any third-party resolver. |
position | integer | When published | Position in the observed bounded result batch. |
scrapedAt | string | Always | UTC record timestamp. |
url | string | In a diagnostic row | Requested source URL in a minimal diagnostic row. |
error | string | In a diagnostic row | Bounded diagnostic message. |
errorCode | string | In a diagnostic row | Stable 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.
| Field | Meaning |
|---|---|
status | Run outcome: success, blocked, empty, or failed. |
source | Source label recorded for the run, tiktok.com. |
sourceUrl | Public hashtag or search URL requested. |
searchType | Search mode used: hashtag or search. |
query | Search phrase used when searchType is search; omitted for hashtag runs. |
hashtag | Normalized hashtag used when searchType is hashtag; omitted for search runs. |
normalCount | Number of video cards saved. |
diagnosticCount | Diagnostic dataset rows saved; populated only for a blocked, empty, or failed run with includeDiagnostics enabled. |
transport | Transport used for the successful route, such as direct_http, proxy, or reader_fallback. |
responseFormat | Detected page format, such as embed_state_json, html, or unknown. |
readerFallback | Whether a reader fallback was used. |
responseStatus | HTTP status of the last response, when one was received. |
responseBytes | Size of the last response body in bytes, when reported. |
contentType | Content type of the last response, when reported. |
accessSignal | Access-challenge signal detected in the response, when present. |
attempts | Array of route attempts with status, transport, size, and outcome. |
completedAt | Time 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.
| Status | Meaning |
|---|---|
success | Public video cards were saved without an extraction problem. |
blocked | No cards were saved because TikTok returned an access challenge or denial. |
empty | The page loaded without an access challenge but exposed no usable public video cards. |
failed | A 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.