
Bright Data Local Search
FreeRun local web searches with Bright Data's SERP API.
Free · Opens the source repo
What Bright Data Local Search does
Bright Data Local Search enables developers to set up and execute web searches locally using the Bright Data SERP API. This skill utilizes the unfancy-search pipeline, which incorporates features such as query expansion, multi-engine SERP retrieval, and RRF reranking. It is designed for users who require a robust and customizable local search solution that can be easily integrated into their applications or workflows.
To get started, users must have a Bright Data account with SERP API access and optionally an Anthropic API key for enhanced query expansion. The setup process involves cloning the unfancy-search repository, configuring environment variables for API tokens, and running the local server via Docker or Node.js. Once the server is operational, users can interact with it through a set of defined API endpoints to submit search queries and retrieve results efficiently.
The skill supports various search modes, including basic searches for quick results and expanded searches that utilize AI to generate sub-queries for broader coverage. Users can also filter results by including or excluding specific domains, making it a versatile tool for targeted information retrieval. The results returned from the API include ranked URLs, domain clustering, and detailed information about search costs and durations, allowing for transparent usage tracking.
Bright Data Local Search is ideal for developers and researchers who need to perform extensive web searches while maintaining control over the search parameters and results. By running searches locally, users can ensure compliance with data privacy regulations and avoid potential limitations associated with hosted services.
When to use it
Use this skill when you need to perform localized web searches with customizable parameters and enhanced query capabilities.
When not to use it
This skill may not be suitable for users looking for a simple, hosted search solution or those without a Bright Data account.
What you can build with it
Integrating Search into Applications
Developers can integrate Bright Data Local Search into their applications to provide users with powerful search capabilities directly within the app.
Conducting Research with Enhanced Queries
Researchers can utilize the expanded search mode to generate multiple sub-queries, ensuring comprehensive coverage of their topics.
Customizing Search Parameters for Specific Needs
Users can customize search parameters such as geographic region and domain filtering to obtain highly relevant search results.
How to install Bright Data Local Search
View source1. Install with the skills CLI
npx skills add davila7/claude-code-templates/brightdata-local-search --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by davila7Bright Data Local Search
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
- Bright Data account with SERP API access
- Anthropic API key (for query expansion, optional)
- Docker (recommended) or Node.js 18+ with pnpm
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:
| Endpoint | Method | Description |
|---|---|---|
/api/search | POST | Start a search job |
/api/search-status/{jobId} | GET | Poll for results |
/api/baseline | POST | Trigger baseline collection |
/api/baseline-status/{id} | GET | Poll 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
| Parameter | Type | Default | Description |
|---|---|---|---|
query | string | required | Search query |
expand | boolean | false | Enable AI query expansion via Claude |
research | boolean | false | Research mode (12 sub-queries for max coverage) |
engines | string[] | all | SERP engines to use |
geo | string | — | Geographic region filter |
count | number | 10 | Max results (up to 10) |
includeDomains | string[] | — | Only include results from these domains |
excludeDomains | string[] | — | 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:
- Ensure the local server is running (
docker compose up -din the unfancy-search directory) - Your agent can use
curlorfetchto queryhttp://localhost:3000/api/search - 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
| Issue | Solution |
|---|---|
| Server won't start | Verify Docker is running or Node.js 18+ installed |
| No results returned | Check BRIGHT_DATA_API_TOKEN is valid and SERP API zone is active |
| Query expansion not working | Verify ANTHROPIC_API_KEY is set and valid |
| Slow responses | Disable expand mode for faster single-query searches |
| Port 3000 in use | Stop other services or modify the port in docker-compose.yml |
Frequently asked questions about Bright Data Local Search
Similar skills
WinMD API Search
Easily find and explore Windows desktop APIs.
WebMCPify
Transform any web app into an agent-ready platform.
Phoenix Tracing
Instrument LLM applications with OpenInference tracing.
Foundry Hosted Agent CopilotKit
Guidance for developing agentic web apps on Azure.
Power Automate Foundation
Connect AI agents to Power Automate seamlessly.
Power Automate Flow Builder
Efficiently build and deploy Power Automate flows programmatically.
