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": [
    {
      "keyword": "<string>",
      "num_of_products": 123
    }
  ]
}
'
[
  {
    "url": "https://www.tiktok.com/view/product/1731000000000000000",
    "title": "Wireless Earbuds with Charging Case",
    "price": 24.99,
    "currency": "USD",
    "rating": 4.3,
    "reviews_count": 2100,
    "seller_name": "EarTech Store",
    "seller_url": "https://www.tiktok.com/@eartechstore",
    "description": "True wireless earbuds with touch controls and 24-hour total battery life.",
    "images": [
      "https://p16-oec-ttp.tiktokcdn-us.com/example-product-1.jpeg"
    ],
    "category": "Electronics > Audio > Earbuds"
  }
]

Query Parameters

dataset_id
string
default:"gd_m45m1u911dsa4274pi"
required
The dataset ID used for this request.
Must be set to gd_m45m1u911dsa4274pi 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": [
    {
      "keyword": "wireless earbuds",
      "num_of_products": 15
    }
  ]
}
[
  {
    "url": "https://www.tiktok.com/view/product/1731000000000000000",
    "title": "Wireless Earbuds with Charging Case",
    "price": 24.99,
    "currency": "USD",
    "rating": 4.3,
    "reviews_count": 2100,
    "seller_name": "EarTech Store",
    "seller_url": "https://www.tiktok.com/@eartechstore",
    "description": "True wireless earbuds with touch controls and 24-hour total battery life.",
    "images": [
      "https://p16-oec-ttp.tiktokcdn-us.com/example-product-1.jpeg"
    ],
    "category": "Electronics > Audio > Earbuds"
  }
]