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"
    }
}'
 

请求体参数:

参数类型是否必填描述
promptstringtrue输入的提示词。
countrystringtrue国家或地区代码。
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.urlstring链接 URL
footnotesobject脚注对象,每个脚注为一个子对象
footnotes.{{key}}string脚注键,例如:018426
footnotes.{{key}}.card_typestring脚注类型
footnotes.{{key}}.idstring脚注 ID,与脚注键相同
footnotes.{{key}}.urlstring脚注链接 URL
x_search_resultsarrayX 搜索结果
x_search_results.create_timetime创建时间
x_search_results.profile_image_urlstring头像链接
x_search_results.view_countint浏览量
x_search_results.user_namestring用户名
x_search_results.namestring名称
x_search_results.textstring内容
x_search_results.post_idstring帖子 ID