google-search
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGoogle Search (SERP)
Google Search (SERP)
Search the web through AceDataCloud's Google SERP API.
Setup: See authentication for token setup.
通过AceDataCloud的Google SERP API进行网页搜索。
设置: 请查看身份验证了解令牌设置方法。
Quick Start
快速开始
bash
curl -X POST https://api.acedata.cloud/serp/google \
-H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"query": "latest AI news", "type": "search"}'bash
curl -X POST https://api.acedata.cloud/serp/google \
-H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"query": "latest AI news", "type": "search"}'Search Types
搜索类型
| Type | Description | Returns |
|---|---|---|
| Web search (default) | Organic results, knowledge graph, rich snippets |
| Image search | Image URLs, titles, sources |
| News articles | Headlines, sources, publish dates |
| Map results | Locations, coordinates |
| Local businesses/places | Name, address, rating, reviews |
| Video results | Video URLs, thumbnails, duration |
| 类型 | 描述 | 返回内容 |
|---|---|---|
| 网页搜索(默认) | 自然搜索结果、知识图谱、富摘要 |
| 图片搜索 | 图片URL、标题、来源 |
| 新闻搜索 | 标题、来源、发布日期 |
| 地图搜索结果 | 地点、坐标 |
| 本地商家/场所 | 名称、地址、评分、评论 |
| 视频搜索结果 | 视频URL、缩略图、时长 |
Parameters
参数
json
POST /serp/google
{
"query": "your search query",
"type": "search",
"country": "us",
"language": "en",
"range": "qdr:w",
"number": 10,
"page": 1
}| Parameter | Type | Description |
|---|---|---|
| string | Search query (required) |
| string | One of: search, images, news, maps, places, videos |
| string | Country code (e.g., "us", "uk", "cn", "jp") |
| string | Language code (e.g., "en", "zh", "ja") |
| string | Time filter (see below) |
| int | Number of results per page |
| int | Page number for pagination |
json
POST /serp/google
{
"query": "your search query",
"type": "search",
"country": "us",
"language": "en",
"range": "qdr:w",
"number": 10,
"page": 1
}| 参数 | 类型 | 描述 |
|---|---|---|
| string | 搜索关键词(必填) |
| string | 可选值:search、images、news、maps、places、videos |
| string | 国家代码(例如:"us"、"uk"、"cn"、"jp") |
| string | 语言代码(例如:"en"、"zh"、"ja") |
| string | 时间筛选器(详见下文) |
| int | 每页结果数量 |
| int | 分页页码 |
Time Range Options
时间范围选项
| Value | Period |
|---|---|
| Past hour |
| Past 24 hours |
| Past week |
| Past month |
| Past year |
| 值 | 时间段 |
|---|---|
| 过去1小时 |
| 过去24小时 |
| 过去一周 |
| 过去一个月 |
| 过去一年 |
Response Structure
响应结构
Web search returns structured data including:
- : Main search results with title, link, snippet
organic_results - : Entity information panel (when available)
knowledge_graph - : Related query suggestions
related_searches
网页搜索返回的结构化数据包括:
- : 包含标题、链接、摘要的主要搜索结果
organic_results - : 实体信息面板(如有)
knowledge_graph - : 相关搜索建议
related_searches
Gotchas
注意事项
- Default search type is (web). Always specify
"search"for non-web searchestype - Country and language codes affect result localization significantly
- controls results per page, not total results — use
numberfor paginationpage - Time range () only applies to web search and news, not images or places
range - Image search returns thumbnail and full-size URLs — use full-size for downloads
- Places search works best with location-specific queries (e.g., "restaurants near Times Square")
MCP:| Hosted:pip install mcp-serp| See all MCP servershttps://serp.mcp.acedata.cloud/mcp
- 默认搜索类型为(网页搜索)。非网页搜索请务必指定
"search"参数type - 国家和语言代码会显著影响结果的本地化
- 控制每页结果数量,而非总结果数——使用
number参数进行分页page - 时间范围()仅适用于网页搜索和新闻搜索,不适用于图片或场所搜索
range - 图片搜索返回缩略图和全尺寸URL——下载请使用全尺寸URL
- 场所搜索结合地点相关关键词效果最佳(例如:"Times Square附近的餐厅")
MCP:| 托管地址:pip install mcp-serp| 查看所有MCP服务器https://serp.mcp.acedata.cloud/mcp