Files
sim/apps/docs/content/docs/zh/tools/serper.mdx
Waleed 9a6a6fdacb improvement(docs): updated with new ss, docs script updated to copy items from main app into docs for tools (#1918)
* improvement(docs): updated script to copy over icons, cleanup unnecessary pages

* updated script with auto-icon generation

* ignore translations, only icons changed

* updated images

* updated i18n.lock

* updated images
2025-11-12 01:15:23 -08:00

58 lines
2.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Serper
description: 使用 Serper 搜索网络
---
import { BlockInfoCard } from "@/components/ui/block-info-card"
<BlockInfoCard
type="serper"
color="#2B3543"
/>
{/* MANUAL-CONTENT-START:intro */}
[Serper](https://www.serper.com/) 是一个 Google 搜索 API提供开发者以编程方式访问 Google 搜索结果的功能。它为应用程序集成 Google 搜索功能提供了一种可靠且高性能的方式,无需面对网页抓取的复杂性或其他搜索 API 的限制。
使用 Serper您可以
- **访问 Google 搜索结果**:以编程方式获取 Google 搜索结果的结构化数据
- **执行多种搜索类型**:进行网页搜索、图片搜索、新闻搜索等
- **获取丰富的元数据**从搜索结果中获取标题、摘要、URL 和其他相关信息
- **扩展您的应用程序**:通过可靠且快速的 API 构建基于搜索功能的特性
- **避免速率限制**:无需担心 IP 被封锁,持续访问搜索结果
在 Sim 中Serper 集成使您的代理能够在工作流程中利用网络搜索的强大功能。这支持需要从互联网获取最新信息的复杂自动化场景。您的代理可以制定搜索查询,检索相关结果,并使用这些信息做出决策或提供响应。此集成弥合了您的工作流程自动化与网络上广泛知识之间的差距,使您的代理无需人工干预即可访问实时信息。通过将 Sim 与 Serper 连接,您可以创建能够跟上最新信息的代理,提供更准确的响应,并为用户带来更多价值。
{/* MANUAL-CONTENT-END */}
## 使用说明
将 Serper 集成到工作流程中。可以搜索网页。需要 API 密钥。
## 工具
### `serper_search`
一个强大的网页搜索工具,通过 Serper.dev API 提供对 Google 搜索结果的访问。支持多种类型的搜索包括常规网页搜索、新闻、地点和图片每个结果都包含相关的元数据如标题、URL、摘要和特定类型的信息。
#### 输入
| 参数 | 类型 | 必需 | 描述 |
| --------- | ---- | -------- | ----------- |
| `query` | 字符串 | 是 | 搜索查询 |
| `num` | 数字 | 否 | 返回结果的数量 |
| `gl` | 字符串 | 否 | 搜索结果的国家代码 |
| `hl` | 字符串 | 否 | 搜索结果的语言代码 |
| `type` | 字符串 | 否 | 要执行的搜索类型 |
| `apiKey` | 字符串 | 是 | Serper API 密钥 |
#### 输出
| 参数 | 类型 | 描述 |
| --------- | ---- | ----------- |
| `searchResults` | 数组 | 包含标题、链接、摘要和特定类型元数据(新闻的日期、地点的评分、图片的 imageUrl的搜索结果 |
## 注意事项
- 分类:`tools`
- 类型:`serper`