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

ボディパラメータ:

パラメータタイプ必須説明
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_resultsarrayWeb検索結果
web_search_results.previewstringプレビュー
web_search_results.titlestringタイトル
web_search_results.urlstringURL
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