{
  "openapi": "3.0.1",
  "info": {
    "title": "Bing Search Scraper - SERP, Ads, PAA, News, Images & Videos",
    "description": "Scrape Bing search results for any keyword or Bing URL: organic rank, title, URL, snippet, date and sitelinks, plus ads, People Also Ask, related searches, news, images and videos. DuckDuckGo too. Any market, rank tracking, monitor mode. $0.80 per 1,000 results, no start fee.",
    "version": "0.1",
    "x-build-id": "dr8Q9vKduyuI9Mxdm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/topapi~bing-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-topapi-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/topapi~bing-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-topapi-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/topapi~bing-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-topapi-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 URLs",
            "type": "array",
            "description": "One per line: a search term (\"best crm software\") or a results URL. A Bing URL keeps its market, page and filters; a DuckDuckGo URL keeps region (kl), time (df) and SafeSearch (kp), from page 1.",
            "items": {
              "type": "string"
            }
          },
          "engine": {
            "title": "Search engine",
            "enum": [
              "bing",
              "duckduckgo",
              "both"
            ],
            "type": "string",
            "description": "Bing, DuckDuckGo, or both for the same terms. DuckDuckGo is read for web results only (DuckDuckGo lists about 25-40 results per query).",
            "default": "bing"
          },
          "verticals": {
            "title": "Bing tabs",
            "type": "array",
            "description": "Which Bing result tabs to read for every term. Web is the normal results page; News, Images and Videos give one row per article, image or video.",
            "items": {
              "type": "string",
              "enum": [
                "web",
                "news",
                "images",
                "videos"
              ],
              "enumTitles": [
                "Web (All)",
                "News",
                "Images",
                "Videos"
              ]
            },
            "default": [
              "web"
            ]
          },
          "outputMode": {
            "title": "Row shape",
            "enum": [
              "results",
              "pages"
            ],
            "type": "string",
            "description": "Flat rows are billed per result; page rows (the shape of the most-used Bing actor) are billed per results page.",
            "default": "results"
          },
          "marketCode": {
            "title": "Market (country - language)",
            "type": "string",
            "description": "The Bing market the results are for: country + language. A two-letter country code also works, e.g. \"gb\" (in the API also as country: \"gb\").",
            "default": "en-US"
          },
          "languageCode": {
            "title": "Interface language",
            "enum": [
              "",
              "ar",
              "eu",
              "bn",
              "bg",
              "ca",
              "zh-hans",
              "zh-hant",
              "hr",
              "cs",
              "da",
              "nl",
              "en",
              "en-gb",
              "et",
              "fi",
              "fr",
              "gl",
              "de",
              "gu",
              "he",
              "hi",
              "hu",
              "is",
              "it",
              "ja",
              "kn",
              "ko",
              "lv",
              "lt",
              "ms",
              "ml",
              "mr",
              "nb",
              "pl",
              "pt-br",
              "pt-pt",
              "pa",
              "ro",
              "ru",
              "sr",
              "sk",
              "sl",
              "es",
              "sv",
              "ta",
              "te",
              "th",
              "tr",
              "uk",
              "vi"
            ],
            "type": "string",
            "description": "Bing's interface language (setlang). Empty = the market's own language.",
            "default": ""
          },
          "safeSearch": {
            "title": "SafeSearch",
            "enum": [
              "moderate",
              "strict",
              "off"
            ],
            "type": "string",
            "description": "SafeSearch level for Bing web, images and videos and for DuckDuckGo. Bing News results are not affected by it.",
            "default": "moderate"
          },
          "timeRange": {
            "title": "Time range",
            "enum": [
              "",
              "day",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Only results Bing dates within this window (web, news, images, videos, DuckDuckGo). Past year does not apply to news: Bing News has no such filter. Ignored when Date from / to are set.",
            "default": ""
          },
          "dateFrom": {
            "title": "Date from",
            "type": "string",
            "description": "Bing web and DuckDuckGo results from this date, e.g. 2026-01-01 (news, images and videos are not date-filtered). Combine with Date to; empty = no lower bound."
          },
          "dateTo": {
            "title": "Date to",
            "type": "string",
            "description": "Bing web and DuckDuckGo results up to this date (news, images and videos are not date-filtered). Empty = today."
          },
          "excludeDomains": {
            "title": "Exclude domains",
            "type": "array",
            "description": "Drop results from these sites (subdomains included), e.g. \"pinterest.com\", \"youtube.com\". Positions still count them.",
            "items": {
              "type": "string"
            }
          },
          "requireQueryMatch": {
            "title": "Only results that mention the query",
            "type": "boolean",
            "description": "Keep only organic web and news results whose title, description or URL contains at least one word of the search term. Ads, images and videos are not filtered.",
            "default": false
          },
          "includeAds": {
            "title": "Include ads",
            "type": "boolean",
            "description": "Also return Bing's sponsored results (title, landing URL, advertiser, top / bottom / side) as rows with type \"ad\", billed as results. Not in monitor mode.",
            "default": false
          },
          "includeSerpFeatures": {
            "title": "Include People Also Ask, related searches and local pack",
            "type": "boolean",
            "description": "Adds People Also Ask (question, answer, source), related searches and local businesses as free rows whenever Bing shows them on the page. Not in monitor mode.",
            "default": false
          },
          "trackDomains": {
            "title": "Track domains (rank tracking)",
            "type": "array",
            "description": "Your site and competitors, e.g. \"hubspot.com\". Rows get isTracked; RUN_SUMMARY and page rows get each domain's best position (null = not found).",
            "items": {
              "type": "string"
            }
          },
          "monitorMode": {
            "title": "Monitor mode (only new or moved results)",
            "type": "boolean",
            "description": "Return only results that are new for the search or moved since the previous run (store below); no ad, PAA, related or local rows. Page rows: only pages whose results changed.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named key-value store that remembers the last positions. Use one name per project.",
            "default": "bing-search-monitor"
          },
          "monitorMinPositionChange": {
            "title": "Report moves of at least",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Monitor mode: a result counts as moved when its position changed by at least this many places since it was last delivered. 1 = every move.",
            "default": 3
          },
          "maxResultsPerQuery": {
            "title": "Results per search",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Organic results (or news / images / videos) per search term. Empty = 10 (with page rows or Max pages set: Max pages, default 1 page); 0 = as many as Max pages allows."
          },
          "maxPagesPerQuery": {
            "title": "Max pages per search",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Upper bound on result pages per term (Bing shows 2-14 results a page). Set alone, it means \"this many pages\". Empty = what Results per search needs."
          },
          "maxItems": {
            "title": "Max items (whole run)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop after this many billed rows across all searches, counting rows charged before a platform restart of the run. Empty or 0 = no cap."
          },
          "compact": {
            "title": "Compact rows (for AI agents / MCP)",
            "type": "boolean",
            "description": "Fewer fields for AI / MCP: type, query, engine, page, position, title, url, domain, description, date, isTracked (+ news, image, video, PAA, local essentials). Page rows keep arrays, results trimmed.",
            "default": false
          },
          "saveHtml": {
            "title": "Save page HTML",
            "type": "boolean",
            "description": "Page rows carry the raw results-page HTML; result rows get htmlSnapshotUrl (a copy in the run's key-value store).",
            "default": false
          },
          "saveHtmlSnapshotUrls": {
            "title": "Save HTML snapshot links",
            "type": "boolean",
            "description": "Store each results page in the run's key-value store and add its link as htmlSnapshotUrl.",
            "default": false
          },
          "maxRunSeconds": {
            "title": "Max run seconds",
            "minimum": 0,
            "maximum": 86400,
            "type": "integer",
            "description": "Stop starting new searches and pages after this many seconds; a page that arrives later is dropped, not charged. Rows already delivered are kept. Empty or 0 = no limit."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Default Apify Proxy (auto): a search's first visit goes direct (news/images/videos: each page's first try; Bing web: also 2 visitors for deeper pages); others use the proxy. A group = proxy only.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxConcurrency": {
            "title": "Searches in parallel",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many search terms run at once, capped at memory / 32 MB (8 at the default 256 MB).",
            "default": 8
          },
          "maxSessionsPerQuery": {
            "title": "Fresh sessions per search",
            "minimum": 2,
            "maximum": 12,
            "type": "integer",
            "description": "Bing web: fresh visitor sessions (IP + cookies) a term may use when Bing answers off-topic, empty or won't page, plus 2 per further page it may read (at most 3x). News / images / videos: 3 per page.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}