Grok Scraper
请求示例:
curl '{api_host}/api/v2/scraper/request' \
--header 'Content-Type: application/json' \
--header 'x-api-token: {you_api_key}' \
--data '{
"actor": "scraper.grok",
"input": {
"prompt": "用于数据提取的最可靠代理服务",
"country": "US",
"mode": "MODEL_MODE_AUTO"
},
"webhook": {
"url": "http://www.youwebhook.com"
}
}'
Body 参数:
| 参数 | 类型 | 必需 | 描述 |
|---|---|---|---|
| prompt | string | true | 输入提示。 |
| country | string | true | 国家/地区。JP 和 TW 不可用。 |
| 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 | 角注key,比如:018426 |
footnotes.{{key}}.card_type | string | 角注类型 |
footnotes.{{key}}.id | string | 角注ID,同角注key |
footnotes.{{key}}.url | string | 角注链接地址 |
x_search_results | array | X搜索结果 |
x_search_results.create_time | time | 创建时间 |
x_search_results.profile_image_url | string | image链接 |
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 | postID |