Bright Data Local Search

SkillSearch

brightdata-local-search is a skill that lets an AI agent run local web searches through the Bright Data SERP API. It uses the unfancy-search pipeline, which expands queries, retrieves SERP results, and reranks them with reciprocal rank fusion. The first keyword phrase for this item is local web searches, and results can be found by location.

Available today. Use it from your connected AI after setup.

Have access to the Bright Data SERP API.

Then ask your AI: use the Bright Data Local Search skill

What your AI can do with it

  • Run web searches that find results by location via the Bright Data SERP API
  • Expand queries before retrieval using the unfancy-search pipeline
  • Retrieve SERP results for expanded queries
  • Rerank retrieved results with reciprocal rank fusion (RRF) for relevance

Getting started

  1. Have access to the Bright Data SERP API.
  2. Add the brightdata-local-search skill to your agent's available skills.
  3. Configure the skill with the credentials needed to call the SERP API.
  4. Ask the agent to search, and it will expand the query, retrieve SERP results, and rerank them.

What this skill tells your AI

The instructions your AI receives, as published by davila7/claude-code-templates in cli-tool/components/skills/development/brightdata-local-search/SKILL.md and read by ahel’s review.

Run powerful web searches locally using Bright Data's SERP API. This skill sets up the unfancy-search pipeline — a local search engine with query expansion, multi-engine SERP retrieval, RRF reranking, deduplication, and domain clustering.

Important: This skill uses the LOCAL version only. Do not use the hosted endpoint.

Prerequisites

Setup

Step 1: Clone and Configure

git clone https://github.com/yaronbeen/unfancy-search.git
cd unfancy-search
cp .env.example .env

Step 2: Set Environment Variables

Edit .env with your credentials:

BRIGHT_DATA_API_TOKEN=your_brightdata_token
BRIGHT_DATA_SERP_ZONE=serp_api1
ANTHROPIC_API_KEY=your_anthropic_key   # Optional: enables AI query expansion

Get your Bright Data token from: https://brightdata.com (SERP API section)

Step 3: Start the Local Server

Docker (recommended):

docker compose up -d
# Server runs at http://localhost:3000

Node.js:

pnpm install
pnpm dev
# Server runs at http://localhost:3000

API Endpoints

All requests go to http://localhost:3000:

EndpointMethodDescription
/api/searchPOSTStart a search job
/api/search-status/{jobId}GETPoll for results
/api/baselinePOSTTrigger baseline collection
/api/baseline-status/{id}GETPoll baseline progress

Running a Search

Step 1: Submit Search

curl -X POST http://localhost:3000/api/search \
  -H "Content-Type: application/json" \
  -d '{"query": "your search term"}'

The response returns a jobId.

Step 2: Poll for Results

curl http://localhost:3000/api/search-status/{jobId}

Poll every 3 seconds until status is "done".

Search Parameters

ParameterTypeDefaultDescription
querystringrequiredSearch query
expandbooleanfalseEnable AI query expansion via Claude
researchbooleanfalseResearch mode (12 sub-queries for max coverage)
enginesstring[]allSERP engines to use
geostring—Geographic region filter
countnumber10Max results (up to 10)
includeDomainsstring[]—Only include results from these domains
excludeDomainsstring[]—Exclude results from these domains

Search Modes

  • Basic (expand: false): Single query, fastest, no AI cost
  • Expanded (expand: true): Claude Haiku generates 3 sub-queries for broader coverage
  • Research (research: true): 12 sub-queries for maximum coverage

Usage Examples

Basic Search from an Agent

# Start search
JOB_ID=$(curl -s -X POST http://localhost:3000/api/search \
  -H "Content-Type: application/json" \
  -d '{"query": "best practices for API rate limiting"}' | jq -r '.jobId')

# Poll until done
while true; do
  RESULT=$(curl -s http://localhost:3000/api/search-status/$JOB_ID)
  STATUS=$(echo $RESULT | jq -r '.status')
  if [ "$STATUS" = "done" ]; then
    echo $RESULT | jq '.results'
    break
  fi
  sleep 3
done

Research Mode with Domain Filtering

curl -X POST http://localhost:3000/api/search \
  -H "Content-Type: application/json" \
  -d '{
    "query": "kubernetes scaling strategies",
    "research": true,
    "excludeDomains": ["pinterest.com", "quora.com"]
  }'

Adding Search to an Existing Agent

To give your Claude Code agent search capabilities:

  1. Ensure the local server is running (docker compose up -d in the unfancy-search directory)
  2. Your agent can use curl or fetch to query http://localhost:3000/api/search
  3. Parse the ranked results to ground responses with real web data

Response Format

Results include:

  • Ranked URLs with RRF scores
  • Domain clustering (grouped by source)
  • Cost transparency (per-search expense breakdown)
  • Raw and unique result counts
  • Search duration

Troubleshooting

IssueSolution
Server won't startVerify Docker is running or Node.js 18+ installed
No results returnedCheck BRIGHT_DATA_API_TOKEN is valid and SERP API zone is active
Query expansion not workingVerify ANTHROPIC_API_KEY is set and valid
Slow responsesDisable expand mode for faster single-query searches
Port 3000 in useStop other services or modify the port in docker-compose.yml

Signals

GitHub stars
32k
Forks
4k
Last commit
Sep 2026

ahel review

  • K1binfo
    installs-packages

Automated review, not a security audit. Ruleset v1+k2.

Questions

What does this skill do?
It lets an agent run local web searches using the Bright Data SERP API, expanding queries, retrieving SERP results, and reranking them with RRF so results are relevant and location-aware.
What is the unfancy-search pipeline?
It is the search pipeline this skill uses, consisting of query expansion, SERP retrieval, and RRF reranking.
Do I need a Bright Data account?
The skill runs searches through the Bright Data SERP API, so you need access to that API to use it.
Advanced
Item type
skill
Key
brightdata-local-search
Source
github.com/davila7/claude-code-templates