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:
| Parameter | Type | Required | Description |
|---|---|---|---|
| prompt | string | true | The input prompt. |
| country | string | true | Country/Region. JP and TW are not available. |
| mode | string | true | MODEL_MODE_FAST MODEL_MODE_EXPERT MODEL_MODE_AUTO |
Responses:
| Parameter | Type | Description |
|---|---|---|
conversation | object | Response content |
conversation.conversation_id | string | Conversation ID |
conversation.create_time | time | Creation time |
conversation.modify_time | time | Last modified time |
conversation.temporary | bool | Whether this is a temporary conversation |
conversation.title | string | Conversation title |
create_time | time | Creation time |
follow_up_suggestions | []string | Suggested follow-up questions |
full_response | string | Response content |
tool_usages | array | Tool usage |
tool_usages.card_id | string | Card ID |
tool_usages.tool_args | string | Tool arguments |
tool_usages.tool_name | string | Tool name |
user_model | string | Model used |
user_query | string | Prompt |
web_search_results | array | Web search results |
web_search_results.preview | string | Preview |
web_search_results.title | string | Title |
web_search_results.url | string | URL |
footnotes | object | Footnotes object, each footnote is a sub-object |
footnotes.{{key}} | string | Footnote key, e.g.: 018426 |
footnotes.{{key}}.card_type | string | Footnote type |
footnotes.{{key}}.id | string | Footnote ID, same as footnote key |
footnotes.{{key}}.url | string | Footnote link URL |
x_search_results | array | X search results |
x_search_results.create_time | time | Creation time |
x_search_results.profile_image_url | string | Image link |
x_search_results.view_count | int | View count |
x_search_results.user_name | string | Username |
x_search_results.name | string | Name |
x_search_results.text | string | Content |
x_search_results.post_id | string | Post ID |