Skip to main content
skill CX Codex

search · brightdata — Claude Code skill: what it does, how to install

Searches the web using the Bright Data CLI. Runs keyword SERP queries across Google, Bing, and Yandex or discovers pages ranked by semantic intent.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add brightdata/skills --skill search -a claude-code
Open on GitHub

What search does

The skill routes web searches through the bdata command-line tool. When you need exact keyword rankings, it uses bdata search to query Google, Bing, or Yandex. The output is formatted as structured JSON where standard web results sit in the .organic[] array. You can refine results by targeting specific countries with --country, picking languages with --language, or switching to mobile SERP via --device mobile.

For broader research, the skill switches to bdata discover. This command evaluates pages against an explicit goal passed via --intent and stores matches in the .results[] array. Adding --include-content pulls markdown page bodies straight into the search output. If you want structured data from platforms like Amazon or LinkedIn, the skill directs you to data-feeds instead.

A verification gate inspects your environment before any query runs. If the bdata CLI is missing or unauthenticated, execution halts immediately. That makes running bdata login upfront essential for uninterrupted workflows.

What it helps with

  • extract keyword SERP results from Google, Bing, or Yandex into JSON
  • find relevant web pages based on semantic intent via bdata discover
  • pull search results and page content together in markdown
  • collect localized or mobile search engine rankings for target countries

Example prompts for the agent

  • Search Google for "site:example.com privacy policy" using bdata search and return structured JSON
  • Discover vendor pages with pricing for "enterprise LLM platforms" using bdata discover with an intent flag
  • Run a German Bing search for "datenschutz" setting country and language to de

How to install search

1Skills CLI (Vercel)

npx skills add brightdata/skills --skill search -a claude-code

2Manually: put the files in place

~/.claude/skills/search/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/search/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about search

How to install search in Claude Code?

Run npx skills add brightdata/skills --skill search -a claude-code. The skill will be registered in your environment.

What is the difference between search and discover?

bdata search fetches exact keyword rankings with results placed in .organic[]. In contrast, bdata discover evaluates pages against a semantic intent and outputs them into .results[].

What dependencies are required before using the skill?

You must have the bdata CLI installed and authenticated. Run bdata login, or use bdata login --device when working over SSH.

Source text

SKILL.md · MIT
---
name: search
description: Search the web via the Bright Data CLI — `bdata search` for Google/Bing/Yandex SERP, `bdata discover` for intent-ranked semantic results. Use when the user wants SERP results, needs URLs to feed into scraping, or wants semantic web discovery with optional page content. Hands off to `scrape` once target URLs are chosen, and to `data-feeds` when the user wants structured data from a known platform. Requires the Bright Data CLI; proactively guides install + login if missing.
---

# Bright Data — Search

Find things on the web. Two commands live in this skill:

- **`bdata search`** — classic keyword SERP (Google/Bing/Yandex). Best when you want "what ranks for keyword X."
- **`bdata discover`** — AI intent-ranked discovery with optional page content. Best when you want "pages about topic Y that match intent Z."

For structured data from a known platform (Amazon, LinkedIn, TikTok, …), **stop and use `data-feeds` instead**.

## Setup gate (run first)

```bash
if ! command -v bdata >/dev/null 2>&1; then
    echo "bdata CLI not installed — see bright-data-best-practices/references/cli-setup.md"
elif ! bdata zones >/dev/null 2>&1; then
    echo "bdata not authenticated — run: bdata login  (or: bdata login --device for SSH)"
fi
```

Halt and route to `skills/bright-data-best-practices/references/cli-setup.md` if either check fails.

## Pick your path

| Situation | Action |
|---|---|
| Single keyword query, just SERP | `bdata search "<query>" --engine google --json --pretty` |
| Paginated SERP (more results) | loop `--page 0`, `--page 1`, … (0-indexed) |
| Multiple queries | shell loop over a queries file |
| Intent-ranked / semantic (not keyword) | `bdata discover "<query>" --intent "<intent>" --num-results 20` |
| Want page bodies along with results, one pass | `bdata discover ... --include-content` |
| News / images / shopping SERP | `bdata search "<query>" --type news` (or `images`, `shopping`) |
| Want Amazon/LinkedIn/TikTok/… structured data | **stop — hand off to `data-feeds`** |
| Have URLs, want content | **hand off to `scrape`** |

## Action

Core commands:

```bash
# Google SERP, structured JSON
bdata search "site:example.com privacy policy" --engine google --json --pretty

# Localized Bing (German results, German language)
bdata search "datenschutz" --engine bing --country de --language de --json

# Second page of results (0-indexed)
bdata search "machine learning papers" --page 1 --json

# Mobile SERP (rankings differ from desktop)
bdata search "best coffee shops" --device mobile --json

# News vertical
bdata search "openai" --type news --json --pretty

# Intent-ranked discovery
bdata discover "enterprise LLM platforms" \
    --intent "vendor pages with pricing" \
    --num-results 15 --json

# Discovery with page content in markdown
bdata discover "webhook best practices" \
    --include-content --num-results 10 -o results.json

# Date-filtered discovery
bdata discover "react server components" \
    --start-date 2025-01-01 --end-date 2025-12-31 --num-results 20
```

Full flag reference: [`references/flags.md`](references/flags.md).

### `search` vs `discover` — pick the right one

| You want | Use |
|---|---|
| "What Google ranks for this exact keyword" | `search` |
| "Pages that match this meaning/intent" | `discover` |
| "News / images / shopping vertical SERP" | `search --type <vertical>` |
| "Results + page bodies in one call" | `discover --include-content` |
| "Dedup / semantic ranking across queries" | `discover` |

## Verification gate

1. **JSON parses cleanly:** `jq . <output>` returns 0.
2. **Result array non-empty** — if empty, the query is legitimately zero-result; relax the query and re-run. Don't claim success on empty results without telling the user.
3. **Required fields present:**
   - `search`: results live at `.organic[]`; each has `title` + `link`
   - `discover`: results live at `.results[]`; each has `title` + `link`; if `--include-content`, also `content`
4. **For `discover --include-content`:** no block-page signatures in the `content` field (same list as scrape, case-insensitive):
   - `Access Denied`
   - `Just a moment`
   - `Attention Required`
   - `Checking your browser`
   - `captcha`
   - `cf-browser-verification`
   - `cloudflare` *(with < 2KB total body)*
5. **Geo sanity:** if the user expected country-specific results, inspect TLDs / languages of top results. If mis-localized, re-run with explicit `--country` and `--language`.

## Red flags

- Using `search` to *fetch content* from Amazon, LinkedIn, TikTok, etc. when `data-feeds` returns clean structured data in one call.
- Scraping every SERP result blindly — filter first (domain allowlist, keyword in title, relevance heuristic).
- Confusing `search` (keyword) with `discover` (semantic). They answer different questions.
- Running multiple queries without deduping URLs across result sets before scraping.
- Assuming SERP order is universal — it's personalized by geo + device. Always set `--country` and `--device` explicitly for reproducibility.
- Using `--page` as a result count — it's a page index, not a limit. Each page returns ~10 results.
- Assuming SERP results are at `.results[]` — for `bdata search` they live at `.organic[]`. (Discover uses `.results[]`.)
- Hardcoding `--num-results 100` on `discover` without realizing the pipeline polls until that many are found; can be slow.

## References

- [`references/flags.md`](references/flags.md) — full flags for `search` and `discover` with when-to-use notes.
- [`references/patterns.md`](references/patterns.md) — multi-query dedup, SERP → filter → scrape pipeline, `search` vs `discover` decision, legacy `curl` fallback, shared verification checklist.
- [`references/examples.md`](references/examples.md) — (1) single Google query, (2) localized Bing, (3) batch queries + dedup into URL list, (4) `discover --include-content` end-to-end.

© brightdata · MIT · brightdata/skills

Similar skills

All skills for Browser and scraping →

search by other authors comes first.

search official anthropics Runs parallel queries across connected MCP tools and synthesizes the findings into a single answer. Helpful when decisions or notes are scattered across chat, email, and storage. CX Codex +1 5,000installs search browserbase The skill runs web searches through Browserbase's Search API and returns links with titles, authors and publish dates, without opening a browser session. CX Codex +1 2,800installs search entireio Searches recorded Entire history, checkpoints, and decisions across repositories. It gives agents past architectural context before reading local source files. CX Codex +1 458installs search aladicf Walks an agent through designing site search: autocomplete, filters, result lists and recovery from zero results. CX Codex +1 626installs search davila7 A skill that runs Google queries through the Bright Data SERP API and hands your agent structured JSON with links, titles and descriptions. 851installs scraping-google-search-results apidojo Pulls Google search results for any query: URLs, titles, snippets, positions and SERP feature types. Handy when you need raw SERP data for SEO or competitor work. CX Codex +1 759installs tavily-search framix-team Integrates Tavily API into your coding agent for web search, text extraction, site crawling, and research reports. Works as an AI-oriented search replacement. CX Codex +1 840installs tracking-google-serp-rankings apidojo A skill that pulls Google results for a keyword list: positions, URLs, titles, snippets and SERP features. Useful for SEO audits and competitor checks. CX Codex +1 763installs bright-data-mcp Bright Data This skill routes every web data task in Claude through the Bright Data MCP server instead of the built-in WebFetch and WebSearch. Useful when pages block bots or you want clean JSON. 722installs tavily-dynamic-search tavily-ai Tavily search skill with context isolation. Saves large web payloads to local disk and filters them before sending snippets into the agent context. CX Codex +1 13,500installs cx-search-dashboard coralogix Searches existing Coralogix dashboards and widgets by description or field path through the cx dashboards CLI. Useful when you want to check for duplicates before building a new dashboard. CX Codex +1 3,900installs

From the same set4

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor