Gemini スクレイパー
scraper.gemini は Gemini の回答を抽出し、構造化された引用メタデータとともに返します。
リクエスト例
curl '{api_host}/api/v2/scraper/request' \
--header 'Content-Type: application/json' \
--header 'x-api-token: {you_api_key}' \
--data '{
"actor": "scraper.gemini",
"input": {
"prompt": "Recommended attractions in New York",
"country": "US"
},
"webhook": {
"url": "http://www.youwebhook.com"
}
}'Body パラメーター
| パラメーター | 型 | 必須 | 説明 |
|---|---|---|---|
prompt | string | はい | Gemini へ送信する prompt。 |
country | string | はい | 国・地域コード(JP/TW 非対応)。 |
レスポンスフィールド
| フィールド | 型 | 説明 |
|---|---|---|
result_text | string | Markdown 回答。 |
prompt | string | オリジナル prompt。 |
citations | array | 引用データ。 |
citations.favicon | string | Favicon URL。 |
citations.highlights | array | 元テキストのハイライト。 |
citations.snippet | string | 引用スニペット。 |
citations.title | string | 引用タイトル。 |
citations.url | string | 引用 URL。 |
citations.website_name | string | Web サイト名。 |