Skip to main content
POST
/
datasets
/
v3
/
scrape
Discover by Keyword
curl --request POST \
  --url https://api.brightdata.com/datasets/v3/scrape \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": [
    {
      "search_keyword": "<string>",
      "num_of_posts": 123,
      "what_to_collect": "<string>"
    }
  ]
}
'
[
  {
    "post_id": "7500000000000000000",
    "description": "Easy pasta recipe you need to try #cooking #recipes #foodtok",
    "create_time": "2025-02-10T09:15:00.000Z",
    "share_count": 3200,
    "collect_count": 8900,
    "comment_count": 1500,
    "play_count": 5200000,
    "video_duration": 60,
    "hashtags": [
      "#cooking",
      "#recipes",
      "#foodtok"
    ],
    "video_url": "https://v16-webapp-prime.tiktok.com/video/example.mp4",
    "profile_username": "homechef",
    "profile_url": "https://www.tiktok.com/@homechef",
    "is_verified": false
  }
]

Query Parameters

dataset_id
string
default:"gd_lu702nij2f790tmv9h"
required
The dataset ID used for this request.
Must be set to gd_lu702nij2f790tmv9h to collect Discover by Keyword data.
type
string
default:"discover_new"
Must be set to discover_new.
discover_by
string
default:"keyword"
Must be set to keyword.
notify
boolean
default:false
Whether to send notifications when the request is completed.
include_errors
boolean
default:true
Whether to include errors in the response.

Request Body

input
object[]
required
An array of input objects.

Example

{
  "input": [
    {
      "search_keyword": "cooking recipes",
      "num_of_posts": 20
    }
  ]
}
[
  {
    "post_id": "7500000000000000000",
    "description": "Easy pasta recipe you need to try #cooking #recipes #foodtok",
    "create_time": "2025-02-10T09:15:00.000Z",
    "share_count": 3200,
    "collect_count": 8900,
    "comment_count": 1500,
    "play_count": 5200000,
    "video_duration": 60,
    "hashtags": [
      "#cooking",
      "#recipes",
      "#foodtok"
    ],
    "video_url": "https://v16-webapp-prime.tiktok.com/video/example.mp4",
    "profile_username": "homechef",
    "profile_url": "https://www.tiktok.com/@homechef",
    "is_verified": false
  }
]