ChatGPTスクレイパー
UIをリバースエンジニアリングすることなく、scraper.chatgptアクターを使用して、Markdown形式の応答、検索リンク、および帰属データを含むChatGPTの回答を取得します。
リクエスト例
curl 'https://api.scrapeless.com/api/v2/scraper/request' \
--header 'Content-Type: application/json' \
--header 'x-api-token: {you_api_key}' \
--data '{
"actor": "scraper.chatgpt",
"input": {
"prompt": "Most reliable proxy service for data extraction",
"country": "JP",
"web_search": true,
"shopping": true
},
"webhook": {
"url": "http://www.youwebhook.com"
}
}'リクエストボディパラメータ
| パラメータ | 型 | 必須 | 説明 |
|---|---|---|---|
prompt | string | はい | ChatGPTに送信するプロンプト。 |
country | string | はい | 国または地域コード。 |
web_search | boolean | いいえ | ウェブ検索を有効にするかどうか。 |
shopping | boolean | いいえ | ショッピングデータを取得するかどうか。デフォルトはtrueです。有効にすると、productsフィールドに商品情報が返されます。 |
should_fetch_share_link | boolean | いいえ | 共有リンクを取得します。 |
should_fetch_html | boolean | いいえ | HTMLを取得します。 |
レスポンスフィールド
注: レスポンスにショッピングデータ(
productsフィールド)が含まれる場合、API呼び出しは基本料金の2倍で課金されます。これは、複数のソースから商品情報を抽出・処理するための追加リソースオーバーヘッドによるものです。
| パラメータ | 型 | 説明 |
|---|---|---|
prompt | string | 元のプロンプト。 |
result_text | string | ChatGPTからのMarkdown形式の応答。 |
model | string | モデル識別子(例: gpt-5-1)。 |
web_search | bool | 検索拡張が実行されたかどうかを示します。 |
links | array | 補足リンクの配列。 |
search_result | array | レスポンスに関連付けられたSERP結果。 |
search_result.attribution | string | 検索結果のソース。 |
search_result.snippet | string | ChatGPTが提供するスニペット。 |
search_result.title | string | 検索ヒットのタイトル。 |
search_result.url | string | 検索ヒットのURL。 |
content_references | array | ChatGPTの回答内に含まれる参照。 |
content_references.attribution | string | 参照のソース。 |
content_references.title | string | 参照コンテンツのタイトル。 |
content_references.url | string | 参照コンテンツのURL。 |
products | array | ChatGPTが返す商品情報。 |
products.id | string | 商品の一意の識別子。 |
products.title | string | 商品タイトル。 |
products.description | string | 商品の説明(nullの場合あり)。 |
products.price | string | 表示価格(例: $799.99)。 |
products.rating | float | 平均評価スコア。 |
products.num_reviews | int | レビュー数。 |
products.merchants | string | 販売店名(例: Sony + others)。 |
products.image_urls | array | 商品画像URLの配列。 |
products.url | string | 商品ページのURL。 |
products.offers | array | 購入オファーの配列。 |
products.offers.merchant_name | string | 販売店名。 |
products.offers.price | string | オファー価格。 |
products.offers.price_details | object | 価格の詳細内訳。 |
products.offers.price_details.base | string | 基本価格。 |
products.offers.price_details.total | string | 税金と送料を含む合計価格。 |
products.offers.available | bool | 商品の在庫状況。 |
products.offers.details | string | 配送および在庫情報。 |
products.offers.url | string | チェックアウトまたは商品ページのURL。 |
products.rating_grouped_citation | object | 評価の引用データ。 |
products.rating_grouped_citation.title | string | 引用タイトル。 |
products.rating_grouped_citation.url | string | 引用URL。 |
products.rating_grouped_citation.supporting_websites | array | 評価を裏付けるウェブサイト。 |
products.rating_grouped_citation.supporting_websites.title | string | ウェブサイトのタイトル。 |
products.rating_grouped_citation.supporting_websites.url | string | ウェブサイトのURL。 |
ads | object | ChatGPTが返す広告情報。 |
ads.type | string | 広告レスポンスタイプ(例: ads)。 |
ads.content | object | 広告のコンテンツ。 |
ads.content.type | string | 広告ユニットのタイプ(例: single_advertiser_ad_unit)。 |
ads.content.advertiser_brand | object | 広告主ブランド情報。 |
ads.content.advertiser_brand.id | string | 広告主ブランドの一意の識別子。 |
ads.content.advertiser_brand.name | string | 広告主ブランド名。 |
ads.content.advertiser_brand.url | string | 広告主ブランドのウェブサイトURL。 |
ads.content.advertiser_brand.favicon_url | string | 広告主のファビコンアイコンのURL。 |
ads.content.ad_cards | array | 広告カードの配列。 |
ads.content.ad_cards.title | string | 広告カードのタイトル。 |
ads.content.ad_cards.body | string | 広告の本文または説明。 |
ads.content.ad_cards.company_name | string | 広告主企業名。 |
ads.content.ad_cards.format | string | 広告カードのフォーマット(例: image_card_v2)。 |
ads.content.ad_cards.image_url | string | 広告画像のURL。 |
ads.content.ad_cards.cta_product_copy | string | 行動喚起(CTA)の商品コピー(nullの場合あり)。 |
ads.content.ad_cards.card_header | object | 広告カードのヘッダー情報。 |
ads.content.ad_cards.card_header.title | string | カードヘッダー内のタイトル。 |
ads.content.ad_cards.card_header.subtitle | string | カードヘッダー内のサブタイトル(例: Sponsored)。 |
ads.content.ad_cards.card_header.logo_url | string | 広告主のロゴURL。 |
ads.content.ad_cards.favicon_url | string | 広告のファビコンURL。 |
ads.content.ad_cards.target | object | 広告のターゲットリンク情報。 |
ads.content.ad_cards.target.type | string | ターゲットのタイプ(例: url)。 |
ads.content.ad_cards.target.value | string | ターゲットリンクの実際のURL値。 |
ads.content.ad_cards.target.open_externally | bool | リンクを外部で開くかどうか。 |
ads.content.carousel_cards | array | カルーセル広告カードの配列。 |
ads.content.carousel_cards.title | string | カルーセルカードのタイトル。 |
ads.content.carousel_cards.body | string | カルーセルカードの本文または説明。 |
ads.content.carousel_cards.image_url | string | カルーセルカード画像のURL。 |
ads.content.carousel_cards.target | object | カルーセルカードのターゲットリンク情報。 |
ads.content.carousel_cards.target.type | string | ターゲットのタイプ(例: url)。 |
ads.content.carousel_cards.target.value | string | カルーセルターゲットの実際のURL値。 |
ads.content.carousel_cards.target.open_externally | bool | カルーセルリンクを外部で開くかどうか。 |
map | object | ChatGPTが返すマップおよびローカルビジネスデータ。 |
map.entities | array | 解決されたエンティティのランキングリスト(例: ローカルビジネス)。 |
map.entities.category | string | エンティティカテゴリ(例: local_business)。 |
map.entities.id | string | エンティティ識別子(例: Google Place ID)。 |
map.entities.name | string | エンティティ名。 |
map.entities.latitude | float | エンティティの緯度。 |
map.entities.longitude | float | エンティティの経度。 |
map.entities.extra_params | object | エンティティの追加検索パラメータ。 |
map.entities.extra_params.address | string | エンティティの住所。 |
map.entities.extra_params.business_id | string | ビジネス識別子。 |
map.entities.extra_params.location | string | 検索位置のコンテキスト。 |
map.entities.extra_params.provider | string | データプロバイダー(例: yelp-feed, b3)。 |
map.entities.entity | object | エンティティの詳細レコード。 |
map.entities.entity.address | string | 完全な住所。 |
map.entities.entity.attributes | object | 追加属性(nullの場合あり)。 |
map.entities.entity.categories | array | エンティティのカテゴリラベル。 |
map.entities.entity.city | string | 市区町村(nullの場合あり)。 |
map.entities.entity.country_code | string | ISO国コード(例: US)。 |
map.entities.entity.country_name | string | 国名。 |
map.entities.entity.date_closed | string | 閉店日(nullの場合あり)。 |
map.entities.entity.date_opened | string | 開店日(nullの場合あり)。 |
map.entities.entity.description | string | ビジネスの説明(nullの場合あり)。 |
map.entities.entity.description_cite | string | 説明の引用元(nullの場合あり)。 |
map.entities.entity.distance_meters | float | 検索位置からの距離(メートル)(nullの場合あり)。 |
map.entities.entity.enriched_description | string | 拡張された説明(nullの場合あり)。 |
map.entities.entity.from_cache | bool | レコードがキャッシュから提供されたかどうか。 |
map.entities.entity.hours | array | 曜日ごとの営業時間。 |
map.entities.entity.hours.day | int | 曜日(0=日曜日 … 6=土曜日)。 |
map.entities.entity.hours.start | string | 24時間制HHMM形式の営業開始時間(例: 0800)。 |
map.entities.entity.hours.end | string | 24時間制HHMM形式の営業終了時間(例: 1900)。 |
map.entities.entity.id | string | エンティティ識別子。 |
map.entities.entity.image_url | string | メイン画像のURL。 |
map.entities.entity.image_urls | array | 画像URLの配列。 |
map.entities.entity.is_claimed | bool | ビジネスリストが認証済みかどうか(nullの場合あり)。 |
map.entities.entity.is_closed_permanently | bool | 永久閉店しているかどうか。 |
map.entities.entity.is_closed_temporarily | bool | 一時閉店しているかどうか。 |
map.entities.entity.is_open | bool | 現在営業中かどうか。 |
map.entities.entity.latitude | float | 緯度。 |
map.entities.entity.location | string | 位置のコンテキスト(例: Portland, OR, USA)。 |
map.entities.entity.longitude | float | 経度。 |
map.entities.entity.menu | object | メニュー情報(nullの場合あり)。 |
map.entities.entity.menu.url | string | メニューのURL。 |
map.entities.entity.name | string | ビジネス名。 |
map.entities.entity.next_open_hour | object | 次の営業時間帯。 |
map.entities.entity.next_open_hour.day | int | 次の営業日の曜日。 |
map.entities.entity.next_open_hour.start | string | 次の営業開始時間(HHMM)。 |
map.entities.entity.next_open_hour.end | string | 対応する営業終了時間(HHMM)。 |
map.entities.entity.phone | string | 電話番号。 |
map.entities.entity.popularity_score | float | 人気度スコア(nullの場合あり)。 |
map.entities.entity.price | string | 価格値(nullの場合あり)。 |
map.entities.entity.price_str | string | 価格レベルの指標(例: $, $$)(nullの場合あり)。 |
map.entities.entity.provider | string | ソースプロバイダー(例: yelp-feed, b3, bright-feed)。 |
map.entities.entity.provider_images | array | プロバイダー提供の画像(nullの場合あり)。 |
map.entities.entity.provider_logo_dark_url | string | ダークモード用プロバイダーロゴURL(nullの場合あり)。 |
map.entities.entity.provider_logo_url | string | プロバイダーロゴURL(nullの場合あり)。 |
map.entities.entity.provider_url | string | プロバイダーサイト上のエンティティURL。 |
map.entities.entity.rank | int | ランク位置(nullの場合あり)。 |
map.entities.entity.ranking_score | float | 内部ランキングスコア。 |
map.entities.entity.rating | float | 平均評価。 |
map.entities.entity.rating_scale | int | 最大評価スケール(例: 5)。 |
map.entities.entity.reconciled_thumbnails | array | プロバイダー間で統合されたサムネイル。 |
map.entities.entity.reconciled_thumbnails.image_url | string | サムネイル画像URL。 |
map.entities.entity.reconciled_thumbnails.obfuscated_provider | string | サムネイルの難読化されたプロバイダー名。 |
map.entities.entity.reservation_providers | array | 利用可能な予約プロバイダー。 |
map.entities.entity.review_count | int | レビュー数。 |
map.entities.entity.review_highlights | array | ハイライトされたレビュー抜粋(nullの場合あり)。 |
map.entities.entity.reviews | array | レビューレコード(nullの場合あり)。 |
map.entities.entity.service_providers | array | サービスプロバイダー(nullの場合あり)。 |
map.entities.entity.special_hours | array | 特別営業日/祝日の営業時間(nullの場合あり)。 |
map.entities.entity.state | string | 都道府県または地域コード(nullの場合あり)。 |
map.entities.entity.tags | array | 属性タグ(例: アクセシビリティ機能)。 |
map.entities.entity.website_url | string | 公式ウェブサイトURL。 |
map.entities.entity.yelp_menu_url | string | YelpメニューURL(nullの場合あり)。 |
map.entities.entity.zipcode | string | 郵便番号(nullの場合あり)。 |
map.raw_search_entities | array | 未加工の未ランキング検索エンティティ。各項目はmap.entitiesと同じ構造を共有します。 |
search_model_queries | object | ファンアウトクエリ。 |
search_model_queries.queries | array | ファンアウトクエリの配列。 |
share_url | string | 共有リンク。 |
follow_up_form | object | 設定を収集し推奨事項を絞り込むためにChatGPTが返すフォローアップフォーム。 |
follow_up_form.follow_up_prompt | string | 現在のフォーム選択が入力されたフォローアッププロンプト。 |
follow_up_form.follow_up_prompt_template | string | フォーム値用の{purpose}や{budget}などのプレースホルダーを含むフォローアッププロンプトテンプレート。 |
follow_up_form.questions | array | フォローアップフォーム内の質問と利用可能な選択肢。 |
follow_up_form.questions.label | string | 質問の表示テキスト(例: 1. What's your main goal?)。 |
follow_up_form.questions.name | string | プロンプトテンプレートのプレースホルダーに対応するフォームフィールド名(例: purpose)。 |
follow_up_form.questions.type | string | 質問の入力タイプ(例: 単一選択質問の場合はradio)。 |
follow_up_form.questions.options | array | 質問の利用可能なオプション。 |
follow_up_form.questions.options.label | string | オプションの表示テキスト(例: Everyday running and fitness)。 |
follow_up_form.questions.options.selected | bool | オプションが現在選択されているかどうか。 |
follow_up_form.questions.options.value | string | フォローアッププロンプトで使用されるオプション値(例: everyday)。 |
follow_up_form.submit_label | string | フォームの送信ボタンの表示テキスト(例: Find my best shoes)。 |
html | string | HTMLデータ。 |