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 参数:

参数类型必需描述
promptstringtrue输入提示。
countrystringtrue国家/地区。JP 和 TW 不可用。
modestringtrueMODEL_MODE_FAST MODEL_MODE_EXPERT MODEL_MODE_AUTO

响应:

参数类型描述
conversationobject响应内容
conversation.conversation_idstring对话 ID
conversation.create_timetime创建时间
conversation.modify_timetime最后修改时间
conversation.temporarybool这是否是临时对话
conversation.titlestring对话标题
create_timetime创建时间
follow_up_suggestions[]string后续问题建议
full_responsestring响应内容
tool_usagesarray工具使用
tool_usages.card_idstring卡片 ID
tool_usages.tool_argsstring工具参数
tool_usages.tool_namestring工具名称
user_modelstring使用的模型
user_querystring提示
web_search_resultsarray网络搜索结果
web_search_results.previewstring预览
web_search_results.titlestring标题
web_search_results.urlstringURL
footnotesobject角注对象,每一个角注都是子对象
footnotes.{{key}}string角注key,比如:018426
footnotes.{{key}}.card_typestring角注类型
footnotes.{{key}}.idstring角注ID,同角注key
footnotes.{{key}}.urlstring角注链接地址
x_search_resultsarrayX搜索结果
x_search_results.create_timetime创建时间
x_search_results.profile_image_urlstringimage链接
x_search_results.view_countint浏览数
x_search_results.user_namestring用户名
x_search_results.namestring名称
x_search_results.textstring内容
x_search_results.post_idstringpostID