{
  "openapi": "3.0.1",
  "info": {
    "title": "Bing Search Scraper",
    "description": "Bing Search Scraper scrapes Bing web search results in bulk: organic results, ads, People also ask, related searches and total result count for any keyword or Bing URL, in 110 markets. Export JSON, CSV or Excel, or use the API.",
    "version": "0.1",
    "x-build-id": "AsgRXcfKbNeWkM6Rc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fastdataapi~bing-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fastdataapi-bing-search-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/fastdataapi~bing-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fastdataapi-bing-search-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/fastdataapi~bing-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fastdataapi-bing-search-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "queries"
        ],
        "properties": {
          "queries": {
            "title": "🔎 Search terms or URLs",
            "type": "array",
            "description": "Search terms (one per line) or full Bing search URLs (https://www.bing.com/search?q=...). Filters in a URL (for example a date filter, market or start offset) are kept. Several entries run in one go.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "🔢 Max result pages per search",
            "minimum": 1,
            "type": "integer",
            "description": "Most result pages to return for each search term or URL (each search gets its own count: 3 searches × 10 = up to 30 pages). Each page is one row with up to 10 organic results plus the ads, People also ask and related searches shown with them; a search with fewer results stops at its last page. Free plan: up to 20 result pages per run (all searches together) and 200 per month; paid plans have no limit.",
            "default": 10
          },
          "marketCode": {
            "title": "📍 Market",
            "enum": [
              "",
              "ar-DZ",
              "es-AR",
              "en-AU",
              "de-AT",
              "en-BD",
              "fr-BE",
              "nl-BE",
              "es-BO",
              "pt-BR",
              "bg-BG",
              "en-CA",
              "fr-CA",
              "es-CL",
              "zh-CN",
              "es-CO",
              "es-CR",
              "hr-HR",
              "en-CY",
              "cs-CZ",
              "da-DK",
              "es-DO",
              "es-EC",
              "ar-EG",
              "et-EE",
              "fi-FI",
              "sv-FI",
              "fr-FR",
              "de-DE",
              "en-GH",
              "el-GR",
              "es-GT",
              "en-HK",
              "zh-HK",
              "hu-HU",
              "is-IS",
              "bn-IN",
              "en-IN",
              "gu-IN",
              "hi-IN",
              "kn-IN",
              "ml-IN",
              "mr-IN",
              "pa-IN",
              "ta-IN",
              "te-IN",
              "en-ID",
              "ar-IQ",
              "en-IE",
              "he-IL",
              "it-IT",
              "en-JM",
              "ja-JP",
              "ar-JO",
              "ar-KW",
              "lv-LV",
              "ar-LB",
              "lt-LT",
              "de-LU",
              "fr-LU",
              "en-MY",
              "ms-MY",
              "es-MX",
              "ar-MA",
              "fr-MA",
              "nl-NL",
              "en-NZ",
              "en-NG",
              "nb-NO",
              "en-PK",
              "es-PE",
              "en-PH",
              "pl-PL",
              "pt-PT",
              "es-PR",
              "ar-QA",
              "ro-RO",
              "ru-RU",
              "ar-SA",
              "sr-RS",
              "en-SG",
              "zh-SG",
              "sk-SK",
              "sl-SI",
              "en-ZA",
              "ko-KR",
              "ca-ES",
              "es-ES",
              "eu-ES",
              "gl-ES",
              "nl-SR",
              "sv-SE",
              "de-CH",
              "fr-CH",
              "it-CH",
              "zh-TW",
              "en-TZ",
              "th-TH",
              "en-TT",
              "ar-TN",
              "tr-TR",
              "uk-UA",
              "ar-AE",
              "en-AE",
              "en-GB",
              "en-US",
              "es-US",
              "es-UY",
              "es-VE",
              "vi-VN",
              "en-ZW"
            ],
            "type": "string",
            "description": "The Bing market (country and language) to search in; results are localized to it. Empty = the market in a search URL, else United States (en-US).",
            "default": ""
          },
          "languageCode": {
            "title": "🌍 Language",
            "enum": [
              "",
              "af",
              "sq",
              "ar",
              "hy",
              "bn",
              "eu",
              "be",
              "bg",
              "ca",
              "zh-hans",
              "zh-hant",
              "hr",
              "cs",
              "da",
              "nl",
              "en",
              "en-gb",
              "et",
              "fil",
              "fi",
              "fr",
              "gl",
              "ka",
              "de",
              "el",
              "gu",
              "he",
              "hi",
              "hu",
              "is",
              "id",
              "it",
              "ja",
              "kn",
              "kk",
              "km",
              "ko",
              "lo",
              "lv",
              "lt",
              "mk",
              "ms",
              "ml",
              "mr",
              "mn",
              "ne",
              "nb",
              "fa",
              "pl",
              "pt-br",
              "pt-pt",
              "pa",
              "ro",
              "ru",
              "sr",
              "si",
              "sk",
              "sl",
              "es",
              "sw",
              "sv",
              "ta",
              "te",
              "th",
              "tr",
              "uk",
              "ur",
              "vi",
              "cy",
              "zu"
            ],
            "type": "string",
            "description": "Language of the Bing interface and preferred result language. Empty = the market's own language.",
            "default": ""
          },
          "fetchResultsTotal": {
            "title": "✅ Get total result count",
            "type": "boolean",
            "description": "Fill resultsTotal with Bing's estimated number of results (\"About N results\") for each search. Adds one quick extra request per search.",
            "default": true
          },
          "saveHtml": {
            "title": "✅ Save page HTML",
            "type": "boolean",
            "description": "Put the raw HTML of each result page into the row's html field. Makes rows much larger.",
            "default": false
          },
          "saveHtmlSnapshotUrls": {
            "title": "✅ Save page HTML as a file",
            "type": "boolean",
            "description": "Store the HTML of each result page in the run's key-value store and put its link in htmlSnapshotUrl.",
            "default": false
          },
          "maxRetries": {
            "title": "🔁 Max retries",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many times a result page is tried before the search moves on. Blocked requests are also retried on a new connection.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy",
            "type": "object",
            "description": "Optional proxy to start with. If Bing blocks the requests, the actor switches to a residential proxy automatically."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}