bocha-search

Performs AI-augmented web searches via the Bocha API and returns structured results.

46.4k|10.3k|Updated Aug 7, 2022
One-click install
npx skills add https://github.com/zhayujie/chatgpt-on-wechat --skill bocha-search
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bocha-search
Source: https://github.com/zhayujie/chatgpt-on-wechat/tree/main/skills/bocha-search
Command: npx skills add https://github.com/zhayujie/chatgpt-on-wechat --skill bocha-search

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires curl, and includes scripts (resource) components.

What problem does it solve?

Users often need current information from the web but manual searches are slow and fragmented. This Skill provides a fast, AI-friendly interface to query the web and receive structured results optimized for downstream AI processing.

Core Features & Use Cases

  • AI-augmented web search: Queries the Bocha API and returns web pages, images, and detailed metadata suitable for AI reasoning.
  • Structured responses: Data formatted similarly to Bing Search API for easy integration into workflows.
  • Use Case: Monitor latest news on a topic, verify facts, or gather sources for research and writing.

Quick Start

Use the Bocha search script to perform a sample query. For example: bash "<base_dir>/scripts/search.sh" "latest AI news" bash "<base_dir>/scripts/search.sh" "Python tutorials" 20 oneWeek true

Frequently Asked Questions about bocha-search

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform AI-augmented web searches for real-time information retrieval?

AI-augmented web searches query the Bocha API using curl to retrieve current information, returning structured metadata suitable for AI reasoning and downstream processing.

What is the best way to get structured web search results for news monitoring and research tasks?

Structured web search results formatted similarly to the Bing Search API provide detailed metadata, making them ideal for monitoring latest news, verifying facts, or gathering research sources.

Do I need a specific API key and curl installed to use Bocha web search?

Yes, you need curl installed for network requests and a BOCHA_API_KEY configured in your environment to authenticate and access the Bocha API for web searches.

Can I retrieve images and web pages together using web search for AI processing?

Yes, querying the Bocha API returns web pages, images, and detailed metadata together, providing structured responses optimized for downstream AI processing and reasoning.

How do I execute a web search query with parameters like result count and time range?

Execute the search shell script with your query string followed by parameters like result count, time range, and a boolean flag to customize your web search results.

Are there limitations when using curl for web search instead of other data retrieval methods?

Using curl for web search requires handling network requests and environment variables manually, which may add setup complexity compared to higher-level HTTP libraries in integrated workflows.