Skip to main content
POST
Trigger AI Flow
AI Scraper Studio supports creating scrapers with up to two product detail page (PDP) URLs from the same domain when the product pages have different page structures. Use two product pages from the same domain only when their structures differ. If both pages use the same structure, provide one URL to generate the scraper code faster.
This request body sends two product pages with different structures:
Pass the returned id to AI job progress to track the AI job until the scraper code is ready.

Authorizations

Authorization
string
header
required

Use your Bright Data API Key as a Bearer token in the Authorization header.

How to authenticate:

  1. Obtain your API Key from the Bright Data account settings at https://brightdata.com/cp/setting/users
  2. Include the API Key in the Authorization header of your requests
  3. Format: Authorization: Bearer YOUR_API_KEY

Example:

Learn how to get your Bright Data API key: https://docs.brightdata.com/api-reference/authentication

Path Parameters

collector_id
string
required

Collector ID returned by the Create Scraper Template API endpoint.

Body

application/json
description
string
required
Maximum string length: 500
Example:

"Extract product data from this page"

urls
string<uri>[]
required

Product detail page (PDP) URLs that AI Scraper Studio uses to generate the scraper. Send one URL, or up to two URLs from the same domain when the product pages have different page structures. If both pages use the same structure, send one URL to generate the scraper code faster.

Maximum array length: 2
Example:

Response

200 - application/json

AI flow triggered

id
string

Unique identifier for the AI job

queued
boolean

Indicates whether the job is queued or currently running