# Bing Search Scraper · Ads + related searches · $1/1K (`mlg14/bing-search-scraper`) Actor

Collect Bing search results for SEO rank tracking, SERP monitoring and link discovery: organic listings, ads, visible questions and related searches by keyword or Bing URL, in any market and language. $1/1K results.

- **URL**: https://apify.com/mlg14/bing-search-scraper.md
- **Developed by:** [MLG Data](https://apify.com/mlg14) (community)
- **Categories:** SEO tools, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## 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

Scrape Bing search results for one phrase or a list of phrases and export the visible listings to CSV, JSON, or spreadsheet-compatible data. This Bing search scraper also collects visible question prompts, related searches, and ads when they appear on the results page, providing a practical Bing search data feed for ranking research and link discovery.

Each dataset item is one visible result. Organic listings have a decoded destination URL, page number, position, title, displayed URL, and excerpt. Records also identify the search market and language so batches from different runs can be joined safely. The actor accepts keywords and full Bing search URLs; for a URL, it reads the `q` search phrase and applies the market and language settings from the input.

### What data can you extract from Bing?

The output is a flat series of records. `resultType` tells you whether a row is an organic listing, an ad, a question, or a related search. Fields that do not apply to a given type are `null` or an empty array. A question row, for example, normally has a `question` value and no destination URL. An organic row normally has a URL and description.

| Field | Description | Example |
| --- | --- | --- |
| `searchQuery` | Phrase used to load the results page | `python tutorial` |
| `page` | One-based page number within the phrase | `1` |
| `searchUrl` | Actual results-page URL | `https://www.bing.com/search?q=python+tutorial&mkt=en-US&setlang=en` |
| `marketCode` | Requested market code | `en-US` |
| `languageCode` | Requested result language | `en` |
| `resultsTotal` | Approximate count displayed on the page, if present | `26100` |
| `resultType` | `organic`, `paid`, `peopleAlsoAsk`, or `relatedQuery` | `organic` |
| `position` | One-based position among results of the same type on the page | `2` |
| `title` | Visible result heading or question | `The Python Tutorial — Python 3.14.7 documentation` |
| `url` | Destination link, decoded from a search redirect when possible | `https://docs.python.org/3/tutorial/index.html` |
| `displayedUrl` | URL label displayed on the result | `https://docs.python.org › tutorial` |
| `description` | Visible result excerpt | `This tutorial introduces the reader informally...` |
| `date` | Date text found at the start of an excerpt, if any | `22 hours ago` |
| `iconUrl` | Listing icon link if included in the page | `https://th.bing.com/...` |
| `emphasizedKeywords` | Bold words in the excerpt | `[]` |
| `siteLinks` | Extra links displayed inside a listing | `[]` |
| `question` | Question text for a question record | `What is Python used for?` |
| `answer` | Answer text only when already visible in the page | `null` |
| `html` | Full source page when `saveHtml` is enabled | `null` by default |
| `htmlSnapshotUrl` | Stored source-page link when snapshots are enabled | `null` by default |

The destination URL can differ from the text shown in `displayedUrl`. Search pages often route clicks through a redirect URL; the actor decodes the target where possible so the result is useful as a link list. The displayed label remains available for auditing what a visitor saw. `resultsTotal` is only a rough number shown by the search page, not a promise that every result can be reached.

### How to scrape Bing

1. Enter one search phrase per line in **Search queries or URLs**. You may paste a full `bing.com/search?q=...` URL instead of a phrase. The actor extracts its query phrase.
2. Choose a market such as `en-US` or `de-DE`. Set a language code if the market's first language is not the one you want.
3. Leave **Pages per query** at one for quick ranking checks. Increase it when you need later pages. The actor follows the visible Next control and stops if the site repeats a page.
4. Set **Maximum records** when you need a predictable dataset size. This cap counts all result types, including questions and related searches.
5. Run the actor and download the dataset in the format your workflow needs. Inspect `resultType` before treating every row as a web listing.

A one-page run is the simplest way to monitor the first ten organic listings for several phrases. The number of total rows can be larger than ten per phrase if the page includes related searches, question prompts, or ads. It can be smaller if fewer listings are visible.

### Input

| Parameter | Type | Default | Description |
| --- | --- | --- | --- |
| `queries` | Multiline string | Required | One phrase or Bing search URL per line; duplicate phrases are processed once. |
| `maxPagesPerQuery` | Integer | `1` | Maximum visible pages to follow for each phrase, capped at 200 by the input. |
| `marketCode` | String | `en-US` | Search market passed to the results page. |
| `languageCode` | String | Blank | Result language; blank uses the language part of `marketCode`. |
| `maxItems` | Integer | `0` | Maximum emitted records across all phrases and result types. Zero means no dataset cap. |
| `saveHtml` | Boolean | `false` | Include full page HTML in every record from that page. |
| `saveHtmlSnapshotUrls` | Boolean | `false` | Store one HTML snapshot per page and include its retrieval link in each record. |
| `proxyConfiguration` | Object | Default connection | Connection settings. Leave the default for most runs. |

Example input for a small ranking batch:

```json
{
  "queries": "python tutorial\njavascript guide\nitalian recipes",
  "maxPagesPerQuery": 1,
  "marketCode": "en-US",
  "languageCode": "en",
  "maxItems": 100,
  "saveHtml": false,
  "saveHtmlSnapshotUrls": true
}
```

The search URL input form is useful when a phrase is already stored as a link in another system. Only its `q` parameter is retained. Other parameters in that URL do not override the actor's market or language input. This keeps a batch consistent even when copied links contain old page numbers, session identifiers, or interface parameters. To run the same phrase for two markets, use separate runs with different market settings.

`maxItems` is a hard stop for dataset records. If the cap is reached during a page, some later items from that page will not be emitted. For a complete first-page comparison across phrases, set it above the expected row count or leave it at zero. The actor also stops when the run's event budget is reached.

### Output example

The following is an organic item from a completed three-query run. Long snapshot links and excerpts are shortened here for display; the dataset keeps the full values.

```json
{
  "searchQuery": "python tutorial",
  "page": 1,
  "searchUrl": "https://www.bing.com/search?q=python+tutorial&mkt=en-US&setlang=en",
  "marketCode": "en-US",
  "languageCode": "en",
  "resultsTotal": 26100,
  "html": null,
  "htmlSnapshotUrl": "https://api.apify.com/v2/key-value-stores/kk1KxM6cfn3zL2nBG/records/search_f4a20f1918533fe7_1.html",
  "resultType": "organic",
  "position": 2,
  "title": "The Python Tutorial — Python 3.14.7 documentation",
  "url": "https://docs.python.org/3/tutorial/index.html",
  "displayedUrl": "https://docs.python.org › tutorial",
  "description": "This tutorial introduces the reader informally to the basic concepts and features of the Python language and system. …",
  "date": "22 hours ago",
  "iconUrl": null,
  "emphasizedKeywords": [],
  "siteLinks": [],
  "question": null,
  "answer": null
}
```

A completed validation run with the example phrases produced 30 rows. Every row had a search phrase, page number, type, title, destination URL, description, and snapshot URL. The exact rankings and text can change between runs because search results change and page modules vary by query, market, and connection.

### Use cases

- **Rank tracking:** Save the first page for a fixed phrase list and compare `url` and `position` across scheduled runs. Keep `marketCode` and `languageCode` with every row so comparisons stay within the same locale.
- **Content discovery:** Build a list of destination pages for a subject. Filter to `resultType = organic`, then use the decoded URL and visible excerpt to decide which pages deserve a closer look.
- **Search-page audits:** Check whether a query shows questions, related searches, or visible ads alongside ordinary listings. The `resultType` column makes these modules easy to count separately.
- **Topic planning:** Collect related-query rows from several seed phrases. Review the visible suggestion text as candidate topics and deduplicate by phrase before starting another batch.
- **Market comparisons:** Run the same phrase list with different market and language settings, then compare the resulting destinations and titles. Use identical inputs except for locale settings to make the differences easier to interpret.
- **Result quality checks:** Store page snapshots for a sample of runs. A snapshot lets a reviewer inspect the exact HTML that produced a record when a title, date, or displayed link looks unusual.

### How much does it cost to scrape Bing?

The configured price is **$0.001 per emitted record**, or **$1 per 1,000 records**. A record can be an organic listing, visible ad, question, or related search. Price is based on emitted rows rather than phrases or fetched pages. The total depends on how many modules the search page displays and where `maxItems` stops the run.

For example, a batch of 30 rows costs about **$0.03** in result charges. A larger batch of 500 rows costs about **$0.50**. At 5,000 rows, result charges are about **$5.00**. These are arithmetic examples at the current configured rate, not guarantees of how many rows a phrase will return. The platform shows the final charge and any applicable usage for each run.

Use a small sample first if you plan a large schedule. A single phrase can return ten organic rows plus other page modules; another phrase may return only listings. A fixed row cap can control the maximum number of billed result events, but the actor may still request a page before it knows how many records are present.

### Tips for best results

Keep a separate phrase list for each market. A single run applies one market and one language to every phrase, which makes its output straightforward to compare. If you monitor rank over time, save the exact input alongside each dataset and use the same phrase spelling each time. Small changes in wording can produce substantially different result pages.

Start with one page per phrase. This mode uses a direct page request and is usually faster than following multiple pages in a browser. The validated three-query example finished with 30 records. For later pages, increase `maxPagesPerQuery` only for phrases where a deeper result list matters. Bing may repeat page one after a Next click; the actor identifies the repeated destination set, changes connection once, and stops if it still cannot obtain a distinct page.

Prefer a moderate `maxItems` value when exploring a new phrase set. It controls result charges and output size, though a page can contain additional question or suggestion rows. If you only need links, filter the dataset to organic records after the run. Paid, question, and related-query rows remain useful context but should not be mixed into organic rank calculations.

Enable `saveHtmlSnapshotUrls` for an audit trail without copying the entire HTML into every dataset row. The snapshot is stored once per page, while every row from that page receives the same retrieval link. Enable `saveHtml` only when your downstream process specifically needs the raw markup inside each row; it can make exports much larger.

### Limits

Search results are dynamic. Titles, snippets, icons, and ranking positions can change between requests. The displayed result total is approximate and may be absent. Date labels can be relative, such as `22 hours ago`, or can be missing altogether. The actor preserves the visible date text rather than converting it into a calendar timestamp.

The first page typically contained ten organic listings in the pages used to validate this actor. That is an observed pattern, not a guaranteed count. Questions and related searches appeared only for some probe phrases. Ads did not appear in those samples, so paid-result extraction is best treated as opportunistic until tested against a page that actually shows ads. Some question panels are lazy loaded; their answer text will be empty unless already present in the received page.

Pagination is the main reliability limit. In a three-page validation attempt, Bing repeated the first-page listing set after the Next control. A second connection produced a different first-page layout but still did not yield three distinct pages. The actor stops when pages repeat, avoiding falsely labeled page-two or page-three records. It cannot promise a requested page depth even when the result total appears large. For broad coverage, split the research into more specific phrases rather than assuming deep pages are accessible.

The actor accepts public search pages only. It does not sign in, open destination websites, or collect content from the pages linked by the results. It also does not turn a search-page total into a complete index of all matching documents. Output is limited to modules visible in the returned page source.

### FAQ

#### Is scraping public search results permitted?

This actor reads public results pages. Review the site's terms and the rules that apply to your use, especially for redistribution and personal data. Avoid using result links or excerpts to build profiles of individuals without a lawful basis. If you need an authoritative legal answer for a specific use case, seek appropriate advice.

#### Do I need to configure a proxy?

No. The default connection settings are supplied for the run. The actor starts with a datacenter connection and may change connection when a page is blocked or repeated. Custom settings are available in `proxyConfiguration` for users who need them.

#### How fast is a run?

It depends on the phrase count and page depth. The validated three-query, one-page run completed in roughly 20 seconds of hosted runtime. A deeper attempt took longer because it used browser navigation and a connection change. Large batches should be tested on a small sample before scheduling.

#### Can I schedule and monitor repeated runs?

Yes. Save the exact input and schedule it at the interval you need. Compare datasets by query, market, language, `resultType`, and position. Snapshot links can help investigate a rank change or a page that displayed an unusual module.

#### Can I export the results to a spreadsheet?

Yes. The dataset can be exported as CSV or a spreadsheet-compatible file. Organic rank analysis usually starts by filtering `resultType` to `organic`. Keep page and position as numeric columns so sorting preserves the visible order.

#### Why is a field empty?

Some fields apply only to one result type, and Bing does not show every detail on every listing. For example, a question has no destination URL until a linked answer is present; an organic result may lack an icon or date. `resultsTotal` can be missing even when listings are present.

#### Why did a three-page request return only one page?

Bing sometimes returns the same first-page listings after the Next control. The actor detects the repeat and stops rather than labeling duplicates as later pages. More specific search phrases can expose different results, but they are separate queries and should be compared accordingly.

### Use with AI agents (MCP)

Add this actor to any MCP client (Claude, Cursor, VS Code, n8n...) with one URL:

`https://mcp.apify.com?tools=mlg14/bing-search-scraper`

An agent receives one record per visible Bing result: organic listings with title, destination URL, position and excerpt, plus ads, questions and related searches marked by `resultType`. Keep `maxItems` at 20-50 so a run finishes in under 3 minutes.

**Prompt 1:** "Get the first page of Bing results for 'python tutorial' in the US."

```json
{
  "queries": "python tutorial",
  "maxPagesPerQuery": 1,
  "marketCode": "en-US",
  "maxItems": 30
}
```

**Prompt 2:** "Check which domains rank on Bing in Germany for 'projektmanagement software' and 'crm software'."

```json
{
  "queries": "projektmanagement software\ncrm software",
  "maxPagesPerQuery": 1,
  "marketCode": "de-DE",
  "languageCode": "de",
  "maxItems": 40
}
```

**Prompt 3:** "Collect the first two Bing result pages for 'best running shoes' including ads and related searches."

```json
{
  "queries": "best running shoes",
  "maxPagesPerQuery": 2,
  "marketCode": "en-GB",
  "maxItems": 50
}
```

### Integrations

The default dataset can be retrieved through the run interface or an API, then used in scheduled jobs, webhooks, automation flows, and spreadsheet imports. For a recurring report, keep one row per result, filter by `resultType`, and join successive runs using the phrase, market, language, and destination URL. Store the run time in your own reporting table to preserve a clear history of ranking changes.

### Support

Open an issue on the Issues tab; we reply within 24h and add fields on request.

# Actor input Schema

## `queries` (type: `string`):

Search phrases or public bing.com/search URLs, one per line; for a URL only its q phrase is used. Example: "python tutorial\njavascript guide". Use one line per keyword you want to rank-check.

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

How many results pages to follow per phrase, 1 to 200. Example: 1 for the first page only, 3 for the first three pages. Use 1 for quick ranking checks; the run stops early when results end.

## `marketCode` (type: `string`):

Bing market code that decides regional results. Example: en-US, en-GB, de-DE or tr-TR. Use the market of the audience whose rankings you want to see; keep en-US for global English results.

## `languageCode` (type: `string`):

Two-letter result language code. Example: en, de or tr. Leave empty to use the language part of marketCode; set it when the market and the language you want differ.

## `maxItems` (type: `integer`):

Hard limit on records saved across all phrases and result types (listings, questions, related searches, ads). Example: 100. Set 0 for no limit; use a small value for a first test run.

## `saveHtml` (type: `boolean`):

Attach the full results-page HTML to every record. Example: true to parse the page yourself. Allowed values: true or false. Use true only for custom parsing; leave false for normal runs, the dataset gets much larger.

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

Proxy settings for Bing requests. Keep the default Apify datacenter proxy; the actor escalates automatically if Bing blocks a request.

## `saveHtmlSnapshotUrls` (type: `boolean`):

Store each results page as an HTML snapshot and add its retrieval link to every record. Example: true to keep proof of what Bing showed. Allowed values: true or false. Leave false otherwise.

## Actor input object example

```json
{
  "queries": "python tutorial\njavascript guide",
  "maxPagesPerQuery": 1,
  "marketCode": "en-US",
  "languageCode": "en",
  "maxItems": 0,
  "saveHtml": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "saveHtmlSnapshotUrls": false
}
```

# Actor output Schema

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

All scraped items in the default dataset.

# 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": `python tutorial
javascript guide`,
    "marketCode": "en-US",
    "languageCode": "en"
};

// Run the Actor and wait for it to finish
const run = await client.actor("mlg14/bing-search-scraper").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": """python tutorial
javascript guide""",
    "marketCode": "en-US",
    "languageCode": "en",
}

# Run the Actor and wait for it to finish
run = client.actor("mlg14/bing-search-scraper").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": "python tutorial\\njavascript guide",
  "marketCode": "en-US",
  "languageCode": "en"
}' |
apify call mlg14/bing-search-scraper --silent --output-dataset

```

## MCP server setup

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

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/k3wIDAn7YiWRdVZRM/builds/prdXDVTkcVvwiohMe/openapi.json
