curl --request POST \
--url 'https://api.brightdata.com/datasets/v3/scrape?dataset_id=gd_lu702nij2f790tmv9h&include_errors=true' \
--header "Authorization: Bearer YOUR_API_KEY" \
--header "Content-Type: application/json" \
--data '{"input": [{"url": "https://www.tiktok.com/@mrbeast/video/7553300000000000000"}, {"url": "https://www.tiktok.com/@bellapoarch/video/7400000000000000000"}]}'[
{
"post_id": "7553300000000000000",
"description": "This is an example post description #fyp #viral",
"create_time": "2025-01-15T14:30:00.000Z",
"share_count": 45000,
"collect_count": 12000,
"comment_count": 8500,
"play_count": 15000000,
"video_duration": 45,
"hashtags": [
"#fyp",
"#viral"
],
"video_url": "https://v16-webapp-prime.tiktok.com/video/example.mp4",
"profile_username": "examplecreator",
"profile_url": "https://www.tiktok.com/@examplecreator",
"is_verified": true
}
]
TikTok
Collect TikTok posts by URL
Use the Bright Data Web Scraper API to collect TikTok posts by URL. Calls the POST /datasets/v3/scrape endpoint and returns a snapshot ID.
POST
/
datasets
/
v3
/
scrape
curl --request POST \
--url 'https://api.brightdata.com/datasets/v3/scrape?dataset_id=gd_lu702nij2f790tmv9h&include_errors=true' \
--header "Authorization: Bearer YOUR_API_KEY" \
--header "Content-Type: application/json" \
--data '{"input": [{"url": "https://www.tiktok.com/@mrbeast/video/7553300000000000000"}, {"url": "https://www.tiktok.com/@bellapoarch/video/7400000000000000000"}]}'[
{
"post_id": "7553300000000000000",
"description": "This is an example post description #fyp #viral",
"create_time": "2025-01-15T14:30:00.000Z",
"share_count": 45000,
"collect_count": 12000,
"comment_count": 8500,
"play_count": 15000000,
"video_duration": 45,
"hashtags": [
"#fyp",
"#viral"
],
"video_url": "https://v16-webapp-prime.tiktok.com/video/example.mp4",
"profile_username": "examplecreator",
"profile_url": "https://www.tiktok.com/@examplecreator",
"is_verified": true
}
]
Query Parameters
string
default:"gd_lu702nij2f790tmv9h"
required
The dataset ID used for this request.
Must be set to
gd_lu702nij2f790tmv9h to collect Posts by URL data.boolean
default:false
Whether to send notifications when the request is completed.
boolean
default:true
Whether to include errors in the response.
Request Body
object[]
required
[
{
"post_id": "7553300000000000000",
"description": "This is an example post description #fyp #viral",
"create_time": "2025-01-15T14:30:00.000Z",
"share_count": 45000,
"collect_count": 12000,
"comment_count": 8500,
"play_count": 15000000,
"video_duration": 45,
"hashtags": [
"#fyp",
"#viral"
],
"video_url": "https://v16-webapp-prime.tiktok.com/video/example.mp4",
"profile_username": "examplecreator",
"profile_url": "https://www.tiktok.com/@examplecreator",
"is_verified": true
}
]
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Must be gd_lu702nij2f790tmv9h for this dataset.
Send notifications when the request is completed.
Include errors in the response.
Body
application/json
Array of input objects. See Request Body below for the supported fields.
Show child attributes
Show child attributes
Response
200 - application/json
OK. See response example below the parameters.
Was this page helpful?