web-search-with-serpapi
بواسطة lsl001006
Web & Frontend Developmentموجز
Search the web using SerpAPI with customizable engines (Google, Google AI Mode, Bing, etc.)
الوصف
ما الذي تفعله هذه المهارة
Fetches web search results through SerpAPI, supporting multiple engines including Google, Google AI Mode, Bing, Yahoo, Google Images, Google Maps, and YouTube. Accepts a query string and optional engine parameter, returning structured text results from the API response.
SerpAPI handles scraping and parsing search result pages, so you get structured data without managing browser automation or getting blocked.
متى تستخدمها
- Searching current news or events beyond an LLM's training cutoff
- Finding images via Google Images search
- Looking up local businesses or locations via Google Maps
- Running AI-mode searches for summarized answers
- Automating research queries across multiple search engines
مثال على سير العمل
User asks: 'What are the latest AI developments in 2026?'
- 1
Receive query and determine appropriate engine (google_ai_mode for summarized results)
- 2
Call serpapi_search with query='latest AI developments 2026' and engine='google_ai_mode'
- 3
Receive structured text blocks from SerpAPI response
- 4
Return parsed results to user
A list of current search results or AI-summarized answer about recent AI developments
المتطلبات
- SERPAPI_API_KEY environment variable
- SerpAPI account (serpapi.com)
التثبيت
clawhub install lsl001006/web-search-with-serpapiشغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.