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"
}
}'
ボディパラメータ:
| パラメータ | タイプ | 必須 | 説明 |
|---|---|---|---|
| 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検索結果 |
web_search_results.preview | string | プレビュー |
web_search_results.title | string | タイトル |
web_search_results.url | string | URL |
footnotes | object | 脚注オブジェクト、各脚注はサブオブジェクトです |
footnotes.{{key}} | string | 脚注キー、例: 018426 |
footnotes.{{key}}.card_type | string | 脚注タイプ |
footnotes.{{key}}.id | string | 脚注ID、脚注キーと同じ |
footnotes.{{key}}.url | string | 脚注リンクURL |
x_search_results | array | X検索結果 |
x_search_results.create_time | time | 作成時刻 |
x_search_results.profile_image_url | string | 画像リンク |
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 | 投稿ID |