{
  "openapi": "3.0.1",
  "info": {
    "title": "Bing Search Scraper - Web & News Results, No API Key",
    "description": "Scrape Bing search results without an API key: the top web results of any query (title, link, snippet, date, result count) and Bing News with source, date and image, up to 200 articles per search. 40 markets. Export to Excel, CSV or API.",
    "version": "0.1",
    "x-build-id": "tQYV1gVwYdUfIk2ld"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pshivam~bing-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pshivam-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/pshivam~bing-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-pshivam-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/pshivam~bing-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-pshivam-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 queries",
            "type": "array",
            "description": "What to search for, one per line, exactly as you would type it in Bing: best crm software, site:example.com contact, \"data engineer\" salary. Every query is searched in every type below.",
            "items": {
              "type": "string"
            }
          },
          "searchTypes": {
            "title": "Search types",
            "type": "array",
            "description": "Web gives the first page of Bing's results (10 links). News gives Bing News articles with their source and date, up to 200 for a search. Choose both to get both for every query.",
            "items": {
              "type": "string",
              "enum": [
                "web",
                "news"
              ],
              "enumTitles": [
                "Web results",
                "News results"
              ]
            },
            "default": [
              "web"
            ]
          },
          "resultsPerQuery": {
            "title": "Results per query",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many results to take from each search (each query and type). Web gives at most 10: Bing shows only its first page to Apify's servers. News gives up to 200.",
            "default": 10
          },
          "market": {
            "title": "Market (country and language)",
            "enum": [
              "en-US",
              "en-GB",
              "en-CA",
              "en-AU",
              "en-IN",
              "en-NZ",
              "en-IE",
              "en-ZA",
              "en-SG",
              "de-DE",
              "de-AT",
              "de-CH",
              "fr-FR",
              "fr-CA",
              "fr-BE",
              "es-ES",
              "es-US",
              "es-MX",
              "es-AR",
              "es-CO",
              "it-IT",
              "pt-BR",
              "pt-PT",
              "nl-NL",
              "nl-BE",
              "sv-SE",
              "da-DK",
              "nb-NO",
              "fi-FI",
              "pl-PL",
              "cs-CZ",
              "tr-TR",
              "ru-RU",
              "ja-JP",
              "ko-KR",
              "zh-CN",
              "zh-TW",
              "zh-HK",
              "ar-SA",
              "he-IL"
            ],
            "type": "string",
            "description": "The country and language of the search, as in Bing's own market setting. It changes which results Bing ranks first and the language of its pages. Bing gives Apify's servers the best matches for en-US, en-GB, fr-FR, nl-NL and de-DE; for some other markets many results of a search have nothing to do with the query.",
            "default": "en-US"
          },
          "freshness": {
            "title": "Only news from",
            "enum": [
              "hour",
              "day",
              "week",
              "month"
            ],
            "type": "string",
            "description": "Only news of the last hour, day, week or month (Bing's date filter). It applies to news results only: Bing's date filter does nothing for web results read from Apify's servers. Leave empty for all."
          },
          "newsSortBy": {
            "title": "News order",
            "enum": [
              "relevance",
              "date"
            ],
            "type": "string",
            "description": "The order of news results. Newest first is best for watching a topic. Leave empty for Bing's order."
          },
          "onlyNew": {
            "title": "Only new records",
            "type": "boolean",
            "description": "Skip results that earlier runs of this same input already returned, so you get and pay for new ones only. The first run works as usual and remembers what it returned, in your key-value store 'bing-search-scraper-only-new'.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 10000000,
            "type": "integer",
            "description": "Stop after this many results in total. You are charged per result.",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Requests at the same time",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many searches (and news pages) are read at the same time.",
            "default": 3
          },
          "secondsBetweenRequests": {
            "title": "Seconds between requests",
            "minimum": 0,
            "maximum": 60,
            "type": "number",
            "description": "Pause between requests. Bing refuses an address that asks too fast: the Actor then lets it rest and lengthens the pause.",
            "default": 0.3
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "The Actor reads with its own address and uses this proxy only while Bing refuses that address (a new address for every request). Apify Proxy is used when your account has it; pick another proxy group or your own proxies here. Turn the proxy off to wait instead.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}