Claude-code-templates search
Search Google via Bright Data SERP API. Returns structured JSON results with title, link, and description. Requires BRIGHTDATA_API_KEY and BRIGHTDATA_UNLOCKER_ZONE environment variables.
install
source · Clone the upstream repo
git clone https://github.com/davila7/claude-code-templates
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/davila7/claude-code-templates "$T" && mkdir -p ~/.claude/skills && cp -r "$T/cli-tool/components/skills/web-data/search" ~/.claude/skills/davila7-claude-code-templates-search && rm -rf "$T"
manifest:
cli-tool/components/skills/web-data/search/SKILL.mdsource content
Bright Data - Google Search
Search Google and get structured JSON results using Bright Data's SERP API.
Setup
1. Get your API Key: Get a key from Bright Data Dashboard.
2. Create a Web Unlocker zone: Create a zone at brightdata.com/cp by clicking "Add" (top-right), selecting "Unlocker zone".
3. Set environment variables:
export BRIGHTDATA_API_KEY="your-api-key" export BRIGHTDATA_UNLOCKER_ZONE="your-zone-name"
Usage
bash scripts/search.sh "query" [cursor]
Parameters:
(required): Search termquery
(optional): Page number for pagination (0-indexed, default: 0)cursor
Examples:
# Basic search bash scripts/search.sh "climate change" # Get page 2 of results bash scripts/search.sh "climate change" 1
Output Format
Returns JSON with structured
organic array:
{ "organic": [ { "link": "https://example.com/article", "title": "Article Title", "description": "Brief description of the page..." } ] }
Dependencies
- For API requestscurl
- For JSON processingjq