Loading...
Loading...
SerpApi search engine results API via curl. Use this skill to scrape Google, Bing, YouTube, and other search engines.
npx skill4agent add vm0-ai/vm0-skills serpapicurlOfficial docs:https://serpapi.com/search-api
SERPAPI_API_KEYexport SERPAPI_API_KEY="your-api-key"api_keyImportant: When usingin a command that pipes to another command, wrap the command containing$VARin$VAR. Due to a Claude Code bug, environment variables are silently cleared when pipes are used directly.bash -c '...'bashbash -c 'curl -s "https://api.example.com" -H "Authorization: Bearer $API_KEY"'
SERPAPI_API_KEYhttps://serpapi.com/searchbash -c 'curl -s "https://serpapi.com/search?engine=google&q=artificial+intelligence&api_key=${SERPAPI_API_KEY}"' | jq '.organic_results[:3] | .[] | {title, link, snippet}bash -c 'curl -s "https://serpapi.com/search?engine=google&q=best+coffee+shops&location=San+Francisco,+California&gl=us&hl=en&api_key=${SERPAPI_API_KEY}"' | jq '.organic_results[:3]'locationglhlbash -c 'curl -s "https://serpapi.com/search?engine=google_images&q=sunset+beach&api_key=${SERPAPI_API_KEY}"' | jq '.images_results[:3] | .[] | {title, original, thumbnail}bash -c 'curl -s "https://serpapi.com/search?engine=google_news&q=technology&api_key=${SERPAPI_API_KEY}"' | jq '.news_results[:3] | .[] | {title, link, source, date}bash -c 'curl -s "https://serpapi.com/search?engine=google_shopping&q=wireless+headphones&api_key=${SERPAPI_API_KEY}"' | jq '.shopping_results[:3] | .[] | {title, price, source}bash -c 'curl -s "https://serpapi.com/search?engine=youtube&search_query=python+tutorial&api_key=${SERPAPI_API_KEY}"' | jq '.video_results[:3] | .[] | {title, link, channel, views}bash -c 'curl -s "https://serpapi.com/search?engine=google_maps&q=restaurants&ll=@40.7128,-74.0060,15z&api_key=${SERPAPI_API_KEY}"' | jq '.local_results[:3] | .[] | {title, rating, address}ll@40.7128,-74.0060,15zstart# First page (results 1-10)
bash -c 'curl -s "https://serpapi.com/search?engine=google&q=machine+learning&start=0&api_key=${SERPAPI_API_KEY}"' | jq '.organic_results | length'
# Second page (results 11-20)
bash -c 'curl -s "https://serpapi.com/search?engine=google&q=machine+learning&start=10&api_key=${SERPAPI_API_KEY}"' | jq '.organic_results | length'bash -c 'curl -s "https://serpapi.com/account?api_key=${SERPAPI_API_KEY}"' | jq '{plan_name, searches_per_month, this_month_usage}| Engine | Parameter | Description |
|---|---|---|
| Google Search | | Web search results |
| Google Images | | Image search |
| Google News | | News articles |
| Google Shopping | | Product search |
| Google Maps | | Local businesses |
| YouTube | | Video search |
| Bing | | Bing web search |
| DuckDuckGo | | Privacy-focused search |
| Parameter | Description |
|---|---|
| Search query (required) |
| Search engine to use |
| Geographic location for search |
| Country code (e.g., us, uk) |
| Language code (e.g., en, de) |
| Pagination offset (0, 10, 20...) |
| Number of results (max 100) |
| Safe search ( |
| Device type ( |
google_imagesgoogle_newstbmlocationglno_cache=true/account