{
  "openapi": "3.0.1",
  "info": {
    "title": "Bing Search Scraper",
    "description": "Bing Search Scraper SD - Bing Search Scraper is a logged-out tool that extracts Bing web search results for any keyword or Bing URL, page after page: rank, title, URL, display URL, snippet, date, sitelinks, thumbnail, plus optional ads, related searches and People also ask.",
    "version": "1.0",
    "x-build-id": "Dxt9Z4lysGng7ghRS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~bing-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-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/neuro-scraper~bing-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-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/neuro-scraper~bing-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-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",
        "properties": {
          "queries": {
            "title": "Search terms or Bing URLs",
            "type": "array",
            "description": "One search per line: a keyword (\"python web framework comparison\", \"site:apify.com scraper\") or a Bing search URL copied from the address bar (https://www.bing.com/search?q=apify&mkt=de-DE) - a URL keeps its own market, language and Date filter.",
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Single search term (optional)",
            "type": "string",
            "description": "One more keyword, added to the list above (for tasks that pass a single query). Example: web scraping tools",
            "default": ""
          },
          "maxItems": {
            "title": "Max results per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum organic results per search term. Bing's own Next-page link is followed page after page (about 6-14 organic results per page) until this number, Max pages or the end of the results. Ads, related searches and People also ask rows come on top.",
            "default": 30
          },
          "maxPagesPerQuery": {
            "title": "Max pages per search",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Stop each search after this many Bing result pages even if Max results is not reached. Example: 5",
            "default": 20
          },
          "market": {
            "title": "Market",
            "enum": [
              "",
              "en-US",
              "es-US",
              "en-GB",
              "en-CA",
              "fr-CA",
              "en-AU",
              "en-NZ",
              "en-IN",
              "en-ID",
              "en-MY",
              "en-PH",
              "en-ZA",
              "de-DE",
              "de-AT",
              "de-CH",
              "fr-FR",
              "fr-BE",
              "fr-CH",
              "nl-NL",
              "nl-BE",
              "it-IT",
              "es-ES",
              "es-MX",
              "es-AR",
              "es-CL",
              "pt-BR",
              "da-DK",
              "fi-FI",
              "no-NO",
              "sv-SE",
              "pl-PL",
              "ru-RU",
              "tr-TR",
              "ja-JP",
              "ko-KR",
              "zh-CN",
              "zh-HK",
              "zh-TW"
            ],
            "type": "string",
            "description": "Bing market (mkt parameter): the language and region Bing ranks for. Empty = Bing decides from the IP address.",
            "default": "en-US"
          },
          "language": {
            "title": "Interface language",
            "type": "string",
            "description": "Bing interface language (setlang parameter): labels such as dates come in this language. Empty = the market's language. Examples: en, de, fr, es, ja, pt-br",
            "default": ""
          },
          "country": {
            "title": "Country",
            "enum": [
              "",
              "US",
              "GB",
              "CA",
              "AU",
              "NZ",
              "IE",
              "IN",
              "SG",
              "MY",
              "PH",
              "ID",
              "ZA",
              "DE",
              "AT",
              "CH",
              "FR",
              "BE",
              "NL",
              "IT",
              "ES",
              "PT",
              "DK",
              "FI",
              "NO",
              "SE",
              "PL",
              "CZ",
              "RO",
              "HU",
              "GR",
              "TR",
              "IL",
              "SA",
              "AE",
              "JP",
              "KR",
              "TW",
              "HK",
              "TH",
              "VN",
              "MX",
              "BR",
              "AR",
              "CL",
              "CO",
              "PE"
            ],
            "type": "string",
            "description": "Search from this country: sets Bing's cc parameter AND routes the Apify proxy through this country (Bing localises results by IP). Empty = the proxy setting below decides (United States by default).",
            "default": ""
          },
          "safeSearch": {
            "title": "SafeSearch",
            "enum": [
              "moderate",
              "strict"
            ],
            "type": "string",
            "description": "Bing SafeSearch level (adlt parameter). 'Off' is not offered (no adult content).",
            "default": "moderate"
          },
          "timeFilter": {
            "title": "Date (freshness)",
            "enum": [
              "any",
              "day",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Only results from this period - the entry of Bing's own Date menu, read from the result page on every run (one extra page per search).",
            "default": "any"
          },
          "includeAds": {
            "title": "Include ads",
            "type": "boolean",
            "description": "Also output the sponsored results Bing shows on each page (type 'ad'; top, middle or bottom block). The landing URL is decoded from the ad link - ad links are never opened.",
            "default": false
          },
          "includeSerpFeatures": {
            "title": "Include related searches and People also ask",
            "type": "boolean",
            "description": "Also output Bing's related searches (type 'related_search') and People also ask questions with their source page (type 'people_also_ask') from each page.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Parallel searches",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many search terms run at the same time (each in its own Bing session and proxy IP).",
            "default": 2
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Bing localises results by IP and answers some requests with a silent decoy page; residential IPs with cookie sessions were measured to work (decoys are detected and retried on a new IP). United States residential by default.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}