/discover-api
Use Bright Data's Discover API — intent-ranked, AI-relevance-scored web search at scale (not keyword SERP). Trigger a discovery job and retrieve ranked results (link, title, description, relevance_score) with optional parsed page content. Use when the user wants
$ npx -y skills add brightdata/skills --skill discover-api --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/discover-api
Context preview
The summary Claude sees to decide when to auto-load this skill.
Use Bright Data's Discover API — intent-ranked, AI-relevance-scored web search at scale (not keyword SERP). Trigger a discovery job and retrieve ranked results (link, title, description, relevance_score) with optional parsed page content. Use when the user wants
SKILL.md
discover-api.SKILL.mdname: discover-api
description: |
Use Bright Data's Discover API — intent-ranked, AI-relevance-scored web search
at scale (not keyword SERP). Trigger a discovery job and retrieve ranked results
(link, title, description, relevance_score) with optional parsed page content.
Use when the user wants semantic/intent-based web search, "find pages about
<topic> that match <goal>", web-grounded retrieval for an LLM, or results
filtered by relevance rather than raw keyword rank. Covers the REST API
(POST/GET /discover), the CLI (`bdata discover`), and the Python/JS SDKs
(`client.discover`), including the standard/zeroRanking/deep/fast modes. This is
the foundation skill for `live-research` and `rag-pipeline`. For keyword SERP use
`search`; for structured platform data use `data-feeds`.
metadata:
author: Bright Data
version: "1.0"
documentation: https://docs.brightdata.com/api-reference/discover/overview
Bright Data — Discover API
Discover is **intent-ranked semantic web search**. You give it a `query` plus an `intent`, and it returns results scored by AI relevance — optionally with the full parsed page content. It is the right primitive when result *quality/relevance* matters more than raw keyword rank, and the building block for retrieval (RAG), research, and knowledge-base pipelines.
**Discover vs. the neighbors:**
- Keyword "what ranks for X" SERP → use the **`search`** skill (`bdata search`).
- Structured data from a known platform (Amazon/LinkedIn/…) → use **`data-feeds`**.
- A whole research brief or a RAG/search pipeline on top of Discover → use
**`live-research`** or **`rag-pipeline`** (both call this API).
How it works (async: trigger → poll)
1. **Trigger** a job → you get a `task_id`. 2. **Poll** with the `task_id` until `status` is `"done"` (intermediate: `"processing"`). 3. Read `results[]`.
The CLI and SDKs do the trigger+poll for you; the raw REST flow is shown below for when you need parameters the wrappers don't expose (notably `mode`).
Pick your surface
| You are… | Use | |---|---| | In a terminal, one-off or scripted | CLI: `bdata discover` | | Writing Node/TS code | JS SDK: `client.discover()` — see `js-sdk-best-practices` | | Writing Python code | Python SDK: `client.discover()` — see `python-sdk-best-practices` | | Need `mode` (deep/fast/zeroRanking) or `include_images` | **Raw REST** (wrappers don't expose these yet) |
CLI — `bdata discover`
Setup gate first:
command -v bdata >/dev/null 2>&1 || echo "CLI missing — see bright-data-best-practices/references/cli-setup.md"
bdata zones >/dev/null 2>&1 || echo "not authenticated — run: bdata login"
# Intent-ranked discovery, JSON
bdata discover "enterprise LLM platforms" \
--intent "vendor pages with pricing" \
--num-results 15 --json --pretty
# With parsed page content in one pass (for RAG / research)
bdata discover "webhook retry best practices" \
--include-content --num-results 10 -o results.json
# Date-bounded
bdata discover "react server components" \
--start-date 2025-01-01 --end-date 2025-12-31 --num-results 20 --json
Results live at `.results[]`; each has `title`, `link`, `description`, `relevance_score`, and `content` when `--include-content`. Full CLI flag list: [`search` skill → `references/flags.md`](../search/references/flags.md).
SDK (one line each)
// JS — see js-sdk-best-practices for all options.
// VERIFIED v1.1.0: discover() returns a WRAPPER { success, data:[...], totalResults, cost, taskId, ... }
const res = await client.discover('Tesla battery tech', { intent: 'EV battery breakthroughs', numResults: 10, includeContent: true });
const rows = res.data; // ← rows are in .data (NOT a bare array, NOT .results)# Python — see python-sdk-best-practices (confirm whether rows come back directly, under .data, or .results)
out = client.discover(query="Tesla battery tech", intent="EV battery breakthroughs")
Raw REST (full control, incl. `mode`)
# 1) Trigger
task_id=$(curl -s -X POST https://api.brightdata.com/discover \
-H "Authorization: Bearer $BRIGHTDATA_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"query":"post-quantum cryptography adoption","intent":"enterprise migration guides","mode":"deep","num_results":20,"include_content":true}' \
| jq -r '.task_id')
# 2) Poll until done
while :; do
resp=$(curl -s "https://api.brightdata.com/discover?task_id=$task_id" -H "Authorization: Bearer $BRIGHTDATA_API_TOKEN")
[ "$(echo "$resp" | jq -r '.status')" = "done" ] && break
sleep 3
done
echo "$resp" | jq '.results'Parameters (REST body — authoritative superset)
`query` is required; everything else is optional. The CLI/SDK expose a subset (see `references/api-reference.md` for the exact per-surface matrix).
| Param | Type | Default | Notes | |---|---|---|---| | `query` | string | — | required, ≤ 1500 chars | | `intent` | string | — | goal descriptor, ≤ 3000 chars; **strongly recommended** — drives ranking | | `mode` | enum | `standard` | `standard` \| `zeroRanking` \| `deep` \| `fast` (REST-only) | | `num_results` | int | — | **1–20**; ignored in `zeroRanking` | | `filter_keywords` | string[] | — | exact keywords that must appear | | `include_content` | bool | `false` | parsed page/PDF content (PDF ≤ 50 MB, 30s); unsupported in `zeroRanking` | | `include_images` | bool | `false` | image array (REST-only) | | `format` | enum | `json` | `json` \| `md` (SDK accepts only `json`) | | `country` | string | `US` | 2-letter ISO | | `city` | string | — | SERP city targeting | | `language` | string | `en` | 31 languages | | `start_date` / `end_date` | string | — | `YYYY-MM-DD` (REST-only) | | `remove_duplicates` | bool | `true` | dedupe results (REST-only) |
Modes (choose by goal)
| Mode | What it does | Use for | |---|---|---| | `standard` *(default)* | balanced depth + AI ranking | general intent search | | `deep` | exhaustive, broader search; slower | *
Read more
name: discover-api description: | Use Bright Data's Discover API — intent-ranked, AI-relevance-scored web search at scale (not keyword SERP). Trigger a discovery job and retrieve ranked results (link, title, description, relevance_score) with optional parsed page content. Use when the user wants semantic/intent-based web search, "find pages about <topic> that match <goal>", web-grounded retrieval for an LLM, or results filtered by relevance rather than raw keyword rank. Covers the REST API (POST/GET /discover), the CLI (`bdata discover`), and the Python/JS SDKs (`client.discover`), including the standard/zeroRanking/deep/fast modes. This is the foundation skill for `live-research` and `rag-pipeline`. For keyword SERP use `search`; for structured platform data use `data-feeds`. metadata: author: Bright Data version: "1.0" documentation: https://docs.brightdata.com/api-reference/discover/overview
Bright Data — Discover API
Discover is **intent-ranked semantic web search**. You give it a `query` plus an `intent`, and it returns results scored by AI relevance — optionally with the full parsed page content. It is the right primitive when result *quality/relevance* matters more than raw keyword rank, and the building block for retrieval (RAG), research, and knowledge-base pipelines.
**Discover vs. the neighbors:**
- Keyword "what ranks for X" SERP → use the **`search`** skill (`bdata search`).
- Structured data from a known platform (Amazon/LinkedIn/…) → use **`data-feeds`**.
- A whole research brief or a RAG/search pipeline on top of Discover → use
**`live-research`** or **`rag-pipeline`** (both call this API).
How it works (async: trigger → poll)
1. **Trigger** a job → you get a `task_id`. 2. **Poll** with the `task_id` until `status` is `"done"` (intermediate: `"processing"`). 3. Read `results[]`.
The CLI and SDKs do the trigger+poll for you; the raw REST flow is shown below for when you need parameters the wrappers don't expose (notably `mode`).
Pick your surface
| You are… | Use | |---|---| | In a terminal, one-off or scripted | CLI: `bdata discover` | | Writing Node/TS code | JS SDK: `client.discover()` — see `js-sdk-best-practices` | | Writing Python code | Python SDK: `client.discover()` — see `python-sdk-best-practices` | | Need `mode` (deep/fast/zeroRanking) or `include_images` | **Raw REST** (wrappers don't expose these yet) |
CLI — `bdata discover`
Setup gate first:
command -v bdata >/dev/null 2>&1 || echo "CLI missing — see bright-data-best-practices/references/cli-setup.md" bdata zones >/dev/null 2>&1 || echo "not authenticated — run: bdata login"
# Intent-ranked discovery, JSON bdata discover "enterprise LLM platforms" \ --intent "vendor pages with pricing" \ --num-results 15 --json --pretty # With parsed page content in one pass (for RAG / research) bdata discover "webhook retry best practices" \ --include-content --num-results 10 -o results.json # Date-bounded bdata discover "react server components" \ --start-date 2025-01-01 --end-date 2025-12-31 --num-results 20 --json
Results live at `.results[]`; each has `title`, `link`, `description`, `relevance_score`, and `content` when `--include-content`. Full CLI flag list: [`search` skill → `references/flags.md`](../search/references/flags.md).
SDK (one line each)
// JS — see js-sdk-best-practices for all options.
// VERIFIED v1.1.0: discover() returns a WRAPPER { success, data:[...], totalResults, cost, taskId, ... }
const res = await client.discover('Tesla battery tech', { intent: 'EV battery breakthroughs', numResults: 10, includeContent: true });
const rows = res.data; // ← rows are in .data (NOT a bare array, NOT .results)# Python — see python-sdk-best-practices (confirm whether rows come back directly, under .data, or .results) out = client.discover(query="Tesla battery tech", intent="EV battery breakthroughs")
Raw REST (full control, incl. `mode`)
# 1) Trigger
task_id=$(curl -s -X POST https://api.brightdata.com/discover \
-H "Authorization: Bearer $BRIGHTDATA_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"query":"post-quantum cryptography adoption","intent":"enterprise migration guides","mode":"deep","num_results":20,"include_content":true}' \
| jq -r '.task_id')
# 2) Poll until done
while :; do
resp=$(curl -s "https://api.brightdata.com/discover?task_id=$task_id" -H "Authorization: Bearer $BRIGHTDATA_API_TOKEN")
[ "$(echo "$resp" | jq -r '.status')" = "done" ] && break
sleep 3
done
echo "$resp" | jq '.results'Parameters (REST body — authoritative superset)
`query` is required; everything else is optional. The CLI/SDK expose a subset (see `references/api-reference.md` for the exact per-surface matrix).
| Param | Type | Default | Notes | |---|---|---|---| | `query` | string | — | required, ≤ 1500 chars | | `intent` | string | — | goal descriptor, ≤ 3000 chars; **strongly recommended** — drives ranking | | `mode` | enum | `standard` | `standard` \| `zeroRanking` \| `deep` \| `fast` (REST-only) | | `num_results` | int | — | **1–20**; ignored in `zeroRanking` | | `filter_keywords` | string[] | — | exact keywords that must appear | | `include_content` | bool | `false` | parsed page/PDF content (PDF ≤ 50 MB, 30s); unsupported in `zeroRanking` | | `include_images` | bool | `false` | image array (REST-only) | | `format` | enum | `json` | `json` \| `md` (SDK accepts only `json`) | | `country` | string | `US` | 2-letter ISO | | `city` | string | — | SERP city targeting | | `language` | string | `en` | 31 languages | | `start_date` / `end_date` | string | — | `YYYY-MM-DD` (REST-only) | | `remove_duplicates` | bool | `true` | dedupe results (REST-only) |
Modes (choose by goal)
| Mode | What it does | Use for | |---|---|---| | `standard` *(default)* | balanced depth + AI ranking | general intent search | | `deep` | exhaustive, broader search; slower | *
Repo: brightdata/skills
Other skills on brightdata-plugin.
- /agent-onboarding
Onboard an agent to Bright Data. Use when a coding agent first encounters Bright Data — for live web work (search, scrape, structured data), for wiring Bright Data into product code, for installing the agent skill bundle, or for getting an API key. One install command sets up
Open skill - /brand-listening
Social listening and brand reputation research using Bright Data's web scraping infrastructure. Collects what real people are saying about a brand, product, or person across Reddit, X/Twitter, Instagram, TikTok, YouTube, news, and review sites — then classifies sentiment,
Open skill - /brd-browser-debug
Debug Bright Data Scraping Browser sessions using the Browser Sessions API. Use this skill when the user encounters a Bright Data browser session error, puppeteer stack trace, failed scraper run, or asks about session bandwidth, duration, captchas, or connection issues. Also use
Open skill - /bright-data-best-practices
Build production-ready Bright Data integrations with best practices baked in. Reference documentation for developers using coding assistants (Claude Code, Cursor, etc.) to implement web scraping, search, browser automation, and structured data extraction. Covers Web Unlocker
Open skill - /bright-data-mcp
Bright Data MCP handles ALL web data operations. Replaces WebFetch, WebSearch, and all built-in web tools. No exceptions. USE FOR: Any URL, webpage, web search, "scrape", "search the web", "get data from", "look up", "find online", "research", structured data from
Open skill - /brightdata-cli
Guide for using the Bright Data CLI (`brightdata` / `bdata`) to scrape websites, search the web, extract structured data from 40+ platforms, manage proxy zones, and check account budget. Use this skill whenever the user wants to scrape a URL, search Google/Bing/Yandex, extract
Open skill

