Grok Scraper

Request Example:

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": "Most reliable proxy service for data extraction",
        "country": "US",
        "mode": "MODEL_MODE_AUTO"
    },
    "webhook": {
        "url": "http://www.youwebhook.com"
    }
}'
 

Body Parameters:

ParameterTypeRequiredDescription
promptstringtrueThe input prompt.
countrystringtrueCountry/Region. JP and TW are not available.
modestringtrueMODEL_MODE_FAST MODEL_MODE_EXPERT MODEL_MODE_AUTO

Responses:

ParameterTypeDescription
conversationobjectResponse content
conversation.conversation_idstringConversation ID
conversation.create_timetimeCreation time
conversation.modify_timetimeLast modified time
conversation.temporaryboolWhether this is a temporary conversation
conversation.titlestringConversation title
create_timetimeCreation time
follow_up_suggestions[]stringSuggested follow-up questions
full_responsestringResponse content
tool_usagesarrayTool usage
tool_usages.card_idstringCard ID
tool_usages.tool_argsstringTool arguments
tool_usages.tool_namestringTool name
user_modelstringModel used
user_querystringPrompt
web_search_resultsarrayWeb search results
web_search_results.previewstringPreview
web_search_results.titlestringTitle
web_search_results.urlstringURL
footnotesobjectFootnotes object, each footnote is a sub-object
footnotes.{{key}}stringFootnote key, e.g.: 018426
footnotes.{{key}}.card_typestringFootnote type
footnotes.{{key}}.idstringFootnote ID, same as footnote key
footnotes.{{key}}.urlstringFootnote link URL
x_search_resultsarrayX search results
x_search_results.create_timetimeCreation time
x_search_results.profile_image_urlstringImage link
x_search_results.view_countintView count
x_search_results.user_namestringUsername
x_search_results.namestringName
x_search_results.textstringContent
x_search_results.post_idstringPost ID