Google AI Mode スクレイパー
scraper.aimode は Google AI Mode の回答をミラーリングし、レンダリング済み HTML、元の URL、引用詳細を含めて提供します。
リクエスト例
curl '{api_host}/api/v2/scraper/request' \
--header 'Content-Type: application/json' \
--header 'x-api-token: {you_api_key}' \
--data '{
"actor": "scraper.aimode",
"input": {
"prompt": "Recommended attractions in New York",
"country": "US"
},
"webhook": {
"url": "http://www.youwebhook.com"
}
}'Body パラメーター
| パラメーター | 型 | 必須 | 説明 |
|---|---|---|---|
prompt | string | はい | Google AI Mode へ送る prompt。 |
country | string | はい | 国・地域コード(JP/TW 非対応)。 |
レスポンスフィールド
| フィールド | 型 | 説明 |
|---|---|---|
result_text | string | 回答本文。 |
result_html | string | HTML 版の回答。 |
raw_url | string | Google AI Mode の元 URL。 |
citations | array | 引用情報。 |
citations.snippet | string | 引用記事の抜粋。 |
citations.thumbnail | string | 引用記事のサムネイル。 |
citations.title | string | 引用タイトル。 |
citations.url | string | オリジナルリンク。 |
citations.website_name | string | サイト名。 |
citations.favicon | string | Favicon。 |
search_result | array | 追加の検索結果(存在する場合)。 |
search_result.snippet | string | 検索結果の抜粋。 |
search_result.thumbnail | string | 検索結果のサムネイル。 |
search_result.title | string | 検索結果タイトル。 |
search_result.url | string | 検索結果 URL。 |
search_result.website_name | string | 検索結果のサイト名。 |