desearch-web-search

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Web Search By Desearch

Desearch网页搜索

Real-time web search returning structured SERP-style results with titles, links, and snippets.
实时网页搜索,返回包含标题、链接和摘要的结构化SERP风格结果。

Quick Start

快速开始

  1. Get an API key from https://console.desearch.ai
  2. Set environment variable:
    export DESEARCH_API_KEY='your-key-here'
  1. https://console.desearch.ai获取API密钥
  2. 设置环境变量:
    export DESEARCH_API_KEY='your-key-here'

Usage

使用方法

bash
undefined
bash
undefined

Basic web search

基础网页搜索

desearch.py web "quantum computing"
desearch.py web "quantum computing"

Paginated results

分页结果

desearch.py web "quantum computing" --start 10
undefined
desearch.py web "quantum computing" --start 10
undefined

Options

选项

OptionDescription
--start
Pagination offset (default: 0). Use to get the next page of results.
选项描述
--start
分页偏移量(默认值:0),用于获取下一页结果。

Response

响应结果

Example

示例

bash
desearch.py web "best sights in Georgia"
json
{
  "data": [
    {
      "title": "Cool places and fun things to do in Georgia ? : r/solotravel",
      "snippet": "I was in Georgia earlier this month. My favorite place was Mtirala National Park in Adjara. The mountains and forest were absolutely beautiful ...",
      "link": "https://www.reddit.com/r/solotravel/comments/py4wls/cool_places_and_fun_things_to_do_in_georgia/",
    },
  ]
}
bash
desearch.py web "best sights in Georgia"
json
{
  "data": [
    {
      "title": "Cool places and fun things to do in Georgia ? : r/solotravel",
      "snippet": "I was in Georgia earlier this month. My favorite place was Mtirala National Park in Adjara. The mountains and forest were absolutely beautiful ...",
      "link": "https://www.reddit.com/r/solotravel/comments/py4wls/cool_places_and_fun_things_to_do_in_georgia/",
    },
  ]
}

Notes

注意事项

  • Returns up to 10 results per page. Use
    --start
    to paginate.
  • 每页最多返回10条结果,使用
    --start
    参数进行分页。

Errors

错误信息

Status 401, Unauthorized (e.g., missing/invalid API key)
json
{
  "detail": "Invalid or missing API key"
}
Status 402, Payment Required (e.g., balance depleted)
json
{
  "detail": "Insufficient balance, please add funds to your account to continue using the service."
}
状态码401,未授权(例如:缺少/无效的API密钥)
json
{
  "detail": "Invalid or missing API key"
}
状态码402,需要付费(例如:余额不足)
json
{
  "detail": "Insufficient balance, please add funds to your account to continue using the service."
}

Resources

相关资源