Bing AI Mode Scraper
scraper.bingaimode を使用して、Bing AI Modeからの回答(Markdown形式および生の回答コンテンツ)、引用元、広告を取得できます。レンダリングされたHTMLをリクエストすることも可能です。
リクエスト例
curl 'https://api.scrapeless.com/api/v2/scraper/request' \
--header 'Content-Type: application/json' \
--header 'x-api-token: {you_api_key}' \
--data '{
"actor": "scraper.bingaimode",
"input": {
"prompt": "Most reliable proxy service for data extraction",
"country": "US"
},
"webhook": {
"url": "http://www.youwebhook.com"
}
}'リクエストボディパラメータ
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes | Bing AI Modeに送信するプロンプト。 |
country | string | Yes | 国または地域コード。 |
should_fetch_html | boolean | No | レンダリングされたHTMLを返すかどうか。 |
レスポンスフィールド
| Parameter | Type | Description |
|---|---|---|
content_md | string | Markdown形式の回答本文。 |
content_raw | string | 生の回答コンテンツ。 |
prompt | string | 元のプロンプト。 |
sources | array | 引用元リスト。 |
sources.domain | string | 引用元のドメイン。 |
sources.title | string | 引用元のタイトル。 |
sources.favicon_id | string | 引用元のファビコンID。 |
sources.snippet | string | 引用スニペット。 |
sources.url | string | 引用元のURL。 |
sources.cited_count | int | 引用回数。 |
sources.index | int | 引用コンテンツのインデックス。 |
ads | array | 推奨広告。 |
ads.badge | string | 広告バッジ(例:SALE、PRICE DROP)。 |
ads.bing_ad_url | string | Bing広告リンク。 |
ads.description | string | 広告の説明。 |
ads.img | string | 広告画像。 |
ads.orig_price | string | 元の価格。 |
ads.price | string | 現在の価格。 |
ads.promotion | string | 販売者のプロモーション詳細(例:$19.99 sale; Expires in 2 days)。 |
ads.rating | string | 5段階評価。 |
ads.review_count | string | レビュー数。 |
ads.seller | string | 小売業者(例:Amazon.com)。 |
ads.title | string | 広告タイトル。 |
ads.url | string | 広告の遷移先リンク。 |
html | string | should_fetch_html でリクエストされたレンダリング済みHTML。 |