Gemini スクレイパー
scraper.gemini Gemini の応答を抽出し、構造化された引用メタデータとともに Google AI の出力をアーカイブできるようにします。
リクエストの例
curl 'https://api.scrapeless.com/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"
}
}'ボディパラメータ
| パラメータ | 型 | 必須 | 説明 |
|---|---|---|---|
prompt | string | はい | Gemini に送信されたプロンプト。 |
country | string | はい | 国または地域コード。 |
shopping | boolean | いいえ | ショッピングデータを取得するかどうか。デフォルトは false。有効にすると、レスポンスは products フィールドに追加の商品情報(商品クラスターの背後にある販売業者のオファー、直販店のURL、価格、分割払い、在庫、配送、返品など)を含みます。 |
レスポンスフィールド
注:
shoppingが有効で、レスポンスがこの追加商品情報を返す場合、APIの呼び出しは 基本料金の2倍で課金されます。これは、複数のソースから商品情報を抽出・処理するために必要な追加リソースオーバーヘッドによるものです。
| パラメータ | 型 | 説明 |
|---|---|---|
result_text | string | Markdown 形式のレスポンス。 |
rawtext | string | 元の回答データ。 |
prompt | string | 元のプロンプト。 |
citations | array | 引用メタデータ。 |
citations.favicon | string | ファビコン URL。 |
citations.highlights | array | ソーステキストからのハイライト済みスニペット。 |
citations.snippet | string | 引用スニペット。 |
citations.title | string | 引用されたページのタイトル。 |
citations.url | string | 引用されたページのURL。 |
citations.website_name | string | ウェブサイト名。 |
related_queries | array | ファンアウトクエリの配列。 |
products | array | Google Gemini が返した商品情報。 |
products.thumbnails | array | 商品サムネイル画像URLの配列。 |
products.title | string | 製品タイトル。 |
products.url | string | 製品ページのURL。 |
products.brand | string | 商品ブランド名。 |
products.reviews | int | レビュー件数。 |
products.rating | string | 平均評価スコア。 |
products.price_range | string | 価格帯、例: $2,499.99。 |
products.stores | array | ストアオファーの配列。 |
products.stores.name | string | ストア名。 |
products.stores.link | string | ストアの商品リンク。 |
products.stores.title | string | ストアでの商品タイトル。 |
products.stores.ratings | string | 店舗の評価、例: 4.3/5。 |
products.stores.extensions | array | その他の情報(在庫、配送、返品)。 |
products.stores.price | string | ストア価格。 |
products.stores.delivery_fee | string | 配送料情報。 |
products.stores.total_price | string | 料金を含む合計価格。 |
products.about_the_product | object | 詳細な商品情報。 |
products.about_the_product.title | string | セクションタイトル。 |
products.about_the_product.link | string | 商品ページリンク。 |
products.about_the_product.displayed_link | string | 表示されるドメイン名。 |
products.about_the_product.features | array | 商品の特徴/仕様。 |
products.about_the_product.features.title | string | 特徴名。 |
products.about_the_product.features.value | string | 特徴値。 |
products.about_the_product.description | string | 商品説明。 |
products.variants | array | 商品バリエーションオプション。 |
products.variants.title | string | バリエーションカテゴリタイトル。 |
products.variants.items | array | バリエーションオプションリスト。 |
products.variants.items.name | string | バリエーションオプション名。 |
products.variants.items.selected | bool | このバリエーションが選択されているかどうか。 |
products.variants.items.availability | bool | バリエーションの利用可能状態。 |
products.ratings | array | 評価分布データ。 |
products.ratings.stars | int | 星評価レベル(1~5)。 |
products.ratings.amount | int | このレベルの評価件数。 |
products.user_reviews | array | ユーザー口コミデータ。 |
products.user_reviews.text | string | 口コミ本文。 |
products.user_reviews.source | string | 口コミ掲載プラットフォーム。 |
products.user_reviews.rating | int | ユーザー評価スコア。 |
products.user_reviews.date | string | 口コミ日付。 |
products.user_reviews.name | string | レビュアー名。 |
products.user_reviews.title | string | 口コミタイトル。 |