# Bing Search Scraper & API: Web Results + Bing News (`telkontar44/bing-search`) Actor

Bing Search API alternative: organic web results, Bing News, related searches and People also ask as clean JSON. Any market, freshness, SafeSearch. MCP-ready.

- **URL**: https://apify.com/telkontar44/bing-search.md
- **Developed by:** [Vasyl Hartaver](https://apify.com/telkontar44) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Bing Search Scraper & API: Web Results, Bing News, Related Searches

Get **Bing search results** as clean JSON: **organic web results, Bing News, related searches, People also ask and the total-results estimate**, for any market and language. Microsoft retired the official **Bing Search API** on 11 August 2025. This Actor is a drop-in **Bing Search API alternative** for developers, SEO teams and AI agents (MCP), with no API key and no Azure account.

It reads the public bing.com results page and the Bing News RSS feed over plain HTTP. No browser, so runs are fast and cheap.

### What can this Bing scraper do?

- **Bing web search (SERP)**: title, real URL (Bing redirect links unwrapped), display URL, site name, snippet, date and position, across as many pages as you need (up to 300 results per query)
- **Bing News scraper**: headline, publisher, publish date, description, image and the real article URL. It uses the Bing News RSS feed and falls back to the HTML page
- **SERP features**: related searches, People also ask (question, answer, source URL) and the "About N results" estimate
- **Every filter the old API had**: market (`mkt`, such as `en-US` or `de-DE`), language (`setlang`), country (`cc`), freshness (past day, week or month) and SafeSearch (off, moderate or strict)
- **Bing operators work**: `site:`, `intitle:`, `filetype:`, `"exact phrase"`, `-exclude`, `OR`
- **Two output shapes**: one row per result for tables and rank tracking, or **compact** mode with one row per query and everything nested, which suits AI agents
- **Built for reliability**: a captcha or "unusual traffic" page triggers backoff and a **new proxy session**. If Bing keeps refusing, you get a free **warning row** that says why, and the other queries carry on

### Use cases

- **AI agents and RAG**: give your agent a `web_search` tool that returns Bing results with real URLs it can fetch
- **SEO rank tracking**: check where a domain ranks on Bing for a keyword list in any market. Bing is also the index behind ChatGPT search, so Bing rankings are a useful proxy for visibility in ChatGPT answers
- **News monitoring**: collect fresh Bing News headlines for brands, competitors or topics on a schedule
- **Migrating from the Bing Web Search API v7**: the fields map closely, with `name` becoming `title`, `snippet` staying `snippet` and `url` staying `url`

### What data do you get?

| `type` | One row per | Key fields |
|---|---|---|
| `web` | organic result | `position`, `title`, `url`, `displayUrl`, `snippet`, `date`, `dateText`, `source` (site name), `page` |
| `news` | news article | `position`, `title`, `url`, `snippet`, `date` (ISO), `source` (publisher), `imageUrl` |
| `serpFeatures` | web query | `totalResults`, `relatedSearches[]`, `peopleAlsoAsk[]` (`question`, `answer`, `url`) |
| `serp` | query (compact mode) | `web[]`, `news[]`, `totalResults`, `relatedSearches`, `peopleAlsoAsk`, `resultCount`, `warnings[]` |
| `warning` | problem | `code`, `message`, `context`. Always free |

Every row also has `query`, `market` and `scrapedAt`. Ads (`li.b_ad`) are never returned as organic results, and duplicates across pages are removed before `position` is assigned.

### How to scrape Bing search results

1. Click **Try for free** and open the Input tab.
2. Enter your **Search queries**, one per line.
3. Choose **What to search**: Web, News, or both.
4. Set **Max results per query**, a **Market** such as `en-US`, and optionally **Freshness**.
5. Click **Start**, then export the results to JSON, CSV or Excel, or read the dataset through the API.

### Input

| Field | Default | Notes |
|---|---|---|
| `queries` | (required) | One query per line. Operators are supported. |
| `mode` | `web` | `web`, `news` or `both` |
| `maxResultsPerQuery` | `10` | Per query and per mode, max `300`. Bing serves about 10 organic results per page. |
| `market` | `en-US` | `language-COUNTRY`, like the old API's `mkt`. Sets `mkt`, `setlang` and `cc`. |
| `language`, `country` | from `market` | Optional overrides for `setlang` and `cc` |
| `freshness` | `any` | `day`, `week` or `month`. Web uses Bing's date filter (`filters=ex1:"ez1"`, `"ez2"`, `"ez3"`). News uses `qft=interval=...` and is also filtered on the publish date. |
| `safeSearch` | `moderate` | `off`, `moderate` or `strict` (`adlt`) |
| `outputMode` | `results` | `results` gives one row per result. `compact` gives one row per query. |
| `includeSerpFeatures` | `true` | Related searches, People also ask and the result count |
| `maxPagesPerQuery` | derived | A safety cap on the number of pages per query |
| `requestDelayMs`, `maxRetries` | `1500`, `4` | Pacing, and the retry budget for captchas, 429 and 5xx |
| `proxyConfiguration` | Apify Proxy (datacenter) | Switch to **RESIDENTIAL** if you see `BLOCKED` warnings. A proxy country that matches the market gives the most local results. |

```json
{
  "queries": ["best crm for startups", "site:reddit.com notion alternatives"],
  "mode": "both",
  "market": "en-US",
  "maxResultsPerQuery": 20,
  "freshness": "month",
  "proxyConfiguration": { "useApifyProxy": true }
}
```

### Output example

**Web result:**

```json
{
  "type": "web", "query": "typescript", "position": 1,
  "title": "TypeScript: JavaScript With Syntax For Types.",
  "url": "https://www.typescriptlang.org/",
  "displayUrl": "https://www.typescriptlang.org",
  "snippet": "TypeScript extends JavaScript by adding types to the language…",
  "date": null, "dateText": null, "source": "TypeScript", "imageUrl": null,
  "page": 1, "market": "en-US", "scrapedAt": "2026-10-31T12:00:00.000Z"
}
```

**News item:**

```json
{
  "type": "news", "query": "nasa", "position": 1,
  "title": "NASA's second year-long Mars simulation mission ends today",
  "url": "https://www.engadget.com/2303277/nasa-second-year-long-mars-simulation-mission-ends-today/",
  "displayUrl": "engadget.com", "snippet": "…", "date": "2026-10-31T10:08:00.000Z",
  "source": "Engadget", "imageUrl": "https://www.bing.com/th?id=ONUT.…&pid=News", "page": 1, "market": "en-US"
}
```

**SERP features:** `{ "type": "serpFeatures", "query": "typescript", "totalResults": 41200000, "relatedSearches": ["typescript tutorial", "typescript playground"], "peopleAlsoAsk": [{ "question": "What is TypeScript used for?", "answer": "…", "url": "https://www.typescriptlang.org/" }] }`

**Compact mode** (`outputMode: "compact"`) puts it all in one row: `{ "type": "serp", "query": "typescript", "resultCount": 20, "web": [{ "position": 1, "title": "…", "url": "…", … }], "news": [], "relatedSearches": […], "peopleAlsoAsk": […], "warnings": [] }`

**Warning row** (free):

```json
{ "type": "warning", "code": "BLOCKED", "message": "web \"x\": Blocked by www.bing.com: captcha / unusual traffic page. …", "context": { "query": "x", "mode": "web", "page": 1, "market": "en-US" }, "scrapedAt": "…" }
```

The codes are `BLOCKED` (captcha after all retries), `RATE_LIMITED`, `NO_RESULTS`, `UNEXPECTED_RESPONSE` (the layout changed, or a consent page appeared), `HTTP_ERROR` and `NETWORK_ERROR`. `RUN_SUMMARY` in the key-value store has per-query counts and HTTP stats: requests, retries, captcha blocks and proxy rotations.

### Use with AI agents (MCP)

The Actor works as a search tool through the [Apify MCP server](https://mcp.apify.com). Add it by its Actor ID (shown at the top of this page), for example `https://mcp.apify.com?tools=<actor-id>`, and connect that URL in Claude, Cursor, VS Code or any MCP client.

- For a quick web search, use `{ "queries": ["…"], "outputMode": "compact", "maxResultsPerQuery": 10, "proxyConfiguration": { "useApifyProxy": true } }`. You get **one row** with `web[]` (title, url, snippet) plus related searches and People also ask, which is easy to put in context.
- For fresh news, use `{ "queries": ["…"], "mode": "news", "freshness": "day", "outputMode": "compact" }`.
- Read `warnings` (compact mode) or the `warning` rows to tell the user why something is missing, for example "Bing showed a captcha, try again in a minute".

### Pricing

**This Actor is currently free.** There is no per-result fee and no start fee. You only pay for your own Apify platform usage (compute and proxy), and small runs fit in the free plan's monthly credit. Pay-per-result pricing may be added later. If that happens, it will be announced in advance on this page and through Apify's usual notice to users. Warning rows will always stay free.

### FAQ

#### Is the Bing Search API still available?

No. Microsoft retired the Bing Search APIs (Web, News, Image and the others) on 11 August 2025 and pointed users to "Grounding with Bing" inside Azure AI Agents, which only works inside that product. This Actor gives you Bing results as plain JSON again.

#### How many results can I get per query?

Up to 300 per query and mode. Bing serves about 10 organic results per page and sometimes repeats results on deeper pages. The Actor removes the duplicates and stops when no new results appear, so very deep result sets can return fewer than you asked for.

#### Do I need a proxy?

The default Apify datacenter proxy works for most traffic. Bing sometimes answers bursts from datacenter IPs with a captcha. The Actor rotates to a new IP and backs off, and if the captcha persists it writes a `BLOCKED` warning. For large runs, use RESIDENTIAL proxies or raise `requestDelayMs`.

#### Can I get results for a specific country?

Yes. Set `market` (for example `de-DE`, `fr-FR` or `ja-JP`). For the most local results, also set the proxy country to match.

#### Does it return ads?

No. Ads are skipped. Only organic results, news, related searches and People also ask are returned.

### Limits (honest)

- **This is not an official API.** It reads the public bing.com pages, and Microsoft can change the layout without notice. A weekly live smoke run is the alarm for that, and a layout change shows up as `UNEXPECTED_RESPONSE` warnings, not as silent empty runs.
- **Result counts per page vary.** Bing may return 6-10 organic results on a page, and it ignores `count` beyond its own limit.
- **News paging is shallow.** The RSS feed returns roughly the newest 10-20 items per query, and the HTML fallback reads only the first page. Expect tens of news items per query, not hundreds.
- **People also ask** and the result-count estimate do not appear for every query, and their markup changes more often than organic results.
- **Freshness** for web results is Bing's own filter, and Bing does not date every result. `date` is filled only when Bing shows one.
- No images, videos, shopping, maps or Copilot answers.

### Responsible use

- The Actor reads **public search result pages**. It does not log in, does not solve captchas, and does not try to get around Bing's limits beyond pacing, retrying and changing IP. When Bing keeps refusing, you get a warning row.
- It is polite by default: one request at a time, at least 1.5 s apart with jitter, and backoff that honours `Retry-After`.
- Microsoft's Terms of Use restrict automated queries, and the Bing News RSS feed is licensed for personal, non-commercial use. This applies to every Bing scraper. You are responsible for checking that your use is acceptable and for respecting the copyright of the linked articles. The output holds titles, snippets and links, not full article text.
- The results contain no personal data beyond what publishers put in public headlines and snippets.

This Actor is not affiliated with or endorsed by Microsoft.

### Development

```bash
npm install
npm run typecheck && npm run lint && npm test     # offline fixtures (see test/fixtures/README.md)
npm run build && npm run smoke                    # live: 1 web query (>= 5 results), 1 news query (>= 3 items), no proxy
SMOKE_SAVE_DIR=raw npm run smoke                  # save real responses to replace the constructed fixtures
```

# Actor input Schema

## `queries` (type: `array`):

One query per line. Bing operators work: site:, intitle:, filetype:, "exact phrase", -exclude, OR.

## `mode` (type: `string`):

Web = organic Bing results. News = Bing News (RSS feed, HTML fallback). Both = both for every query.

## `maxResultsPerQuery` (type: `integer`):

Per query and per mode (web and news count separately). Bing serves about 10 organic results per page; the Actor pages until it has enough or Bing runs out. Max 300.

## `market` (type: `string`):

Bing market as language-COUNTRY, like the old API's mkt: "en-US", "en-GB", "de-DE", "fr-FR", "ja-JP", "pt-BR". Sets mkt, setlang and cc.

## `language` (type: `string`):

Optional. Overrides the language part of the market (setlang), e.g. "en" to get English UI for a German market.

## `country` (type: `string`):

Optional. Overrides the country part of the market (cc), 2 letters.

## `freshness` (type: `string`):

Limit results to the past day, week or month. Web uses Bing's own date filter; news is also filtered by publish date.

## `safeSearch` (type: `string`):

Bing SafeSearch level for adult content filtering: Off, Moderate or Strict.

## `outputMode` (type: `string`):

Results = one row per result (best for tables and rank tracking). Compact = one row per query with web\[], news\[], related searches and People also ask nested (best for AI agents / MCP).

## `includeSerpFeatures` (type: `boolean`):

Web mode: adds one serpFeatures row per query (or fills those fields in compact mode).

## `maxPagesPerQuery` (type: `integer`):

Safety cap on SERP / RSS pages per query. Empty = derived from max results.

## `requestDelayMs` (type: `integer`):

Minimum gap between requests, with jitter. Lower = faster but more captchas.

## `maxRetries` (type: `integer`):

Retries for captcha pages, 429 and 5xx. Each captcha retry uses a new proxy session (new IP).

## `proxyConfiguration` (type: `object`):

Default: Apify Proxy (datacenter), which works for most Bing traffic. Switch to RESIDENTIAL if you see BLOCKED warnings. Set a proxy country to match the market for the most local results.

## Actor input object example

```json
{
  "queries": [
    "best project management software",
    "site:github.com mcp server"
  ],
  "mode": "web",
  "maxResultsPerQuery": 10,
  "market": "en-US",
  "freshness": "any",
  "safeSearch": "moderate",
  "outputMode": "results",
  "includeSerpFeatures": true,
  "requestDelayMs": 1500,
  "maxRetries": 4,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

All rows in the run's default dataset: web and news results (or one serp row per query in compact mode), serpFeatures rows and free warning rows. JSON, CSV or Excel via the dataset API.

## `webResults` (type: `string`):

Organic Bing web results and news items in the Results view of the dataset.

## `runSummary` (type: `string`):

Per-query counters, warnings, errors and HTTP stats (requests, retries, captcha blocks, proxy rotations).

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "queries": [
        "best project management software",
        "site:github.com mcp server"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("telkontar44/bing-search").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "queries": [
        "best project management software",
        "site:github.com mcp server",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("telkontar44/bing-search").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "queries": [
    "best project management software",
    "site:github.com mcp server"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call telkontar44/bing-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,telkontar44/bing-search"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/MEwTsjgswhvuPAlp9/builds/VZAW4vhms6MxM3ZPt/openapi.json
