Gemini 爬虫
scraper.gemini 用于提取 Gemini 的响应,以便您以结构化的引用元数据归档 Google AI 的输出内容。
请求示例
curl 'https://api.scrapeless.com/api/v2/scraper/request' \
--header 'Content-Type: application/json' \
--header 'x-api-token: {you_api_key}' \
--data '{
"actor": "scraper.gemini",
"input": {
"prompt": "Recommended attractions in New York",
"country": "US"
},
"webhook": {
"url": "http://www.youwebhook.com"
}
}'请求体参数
| 参数 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
prompt | string | 是 | 发送给 Gemini 的提示词。 |
country | string | 是 | 国家或地区代码。 |
响应字段
| 参数 | 类型 | 描述 |
|---|---|---|
result_text | string | Markdown 格式的响应内容。 |
prompt | string | 原始提示词。 |
citations | array | 引用元数据。 |
citations.favicon | string | 网站图标(Favicon)URL。 |
citations.highlights | array | 来源文本中的高亮片段。 |
citations.snippet | string | 引用片段。 |
citations.title | string | 被引用页面的标题。 |
citations.url | string | 被引用页面的 URL。 |
citations.website_name | string | 网站名称。 |