Grok 抓取器
请求示例:
curl 'https://api.scrapeless.com/api/v2/scraper/request' \
--header 'Content-Type: application/json' \
--header 'x-api-token: {you_api_key}' \
--data '{
"actor": "scraper.grok",
"input": {
"prompt": "Most reliable proxy service for data extraction",
"country": "US",
"mode": "MODEL_MODE_AUTO"
},
"webhook": {
"url": "http://www.youwebhook.com"
}
}'
请求体参数:
| 参数 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| prompt | string | true | 输入的提示词。 |
| country | string | true | 国家或地区代码。 |
| mode | string | true | MODEL_MODE_FAST MODEL_MODE_EXPERT MODEL_MODE_AUTO |
响应:
| 参数 | 类型 | 描述 |
|---|---|---|
conversation | object | 响应内容 |
conversation.conversation_id | string | 对话 ID |
conversation.create_time | time | 创建时间 |
conversation.modify_time | time | 最后修改时间 |
conversation.temporary | bool | 是否为临时对话 |
conversation.title | string | 对话标题 |
create_time | time | 创建时间 |
follow_up_suggestions | []string | 建议的后续问题 |
full_response | string | 响应内容 |
tool_usages | array | 工具使用情况 |
tool_usages.card_id | string | 卡片 ID |
tool_usages.tool_args | string | 工具参数 |
tool_usages.tool_name | string | 工具名称 |
user_model | string | 使用的模型 |
user_query | string | 提示词 |
web_search_results | array | 网页搜索结果 |
web_search_results.preview | string | 预览 |
web_search_results.title | string | 标题 |
web_search_results.url | string | 链接 URL |
footnotes | object | 脚注对象,每个脚注为一个子对象 |
footnotes.{{key}} | string | 脚注键,例如:018426 |
footnotes.{{key}}.card_type | string | 脚注类型 |
footnotes.{{key}}.id | string | 脚注 ID,与脚注键相同 |
footnotes.{{key}}.url | string | 脚注链接 URL |
x_search_results | array | X 搜索结果 |
x_search_results.create_time | time | 创建时间 |
x_search_results.profile_image_url | string | 头像链接 |
x_search_results.view_count | int | 浏览量 |
x_search_results.user_name | string | 用户名 |
x_search_results.name | string | 名称 |
x_search_results.text | string | 内容 |
x_search_results.post_id | string | 帖子 ID |