# Bing Search Scraper (`datahamster/bing-search-scraper`) Actor

Bing search scraper for SEO and rank tracking: the results page for any keyword with each organic result's position, title, real URL, displayed URL, snippet and date, plus total results, per country and language. Priced per SERP page. Rank tracker mode alerts when your domain moves.

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

## Pricing

from $2.40 / 1,000 results pages

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

Bing search scraper for SEO and rank tracking: give it keywords and get Bing's results page for each one, with the
query, page, total results estimate and every organic result's position, title, real destination URL, displayed
URL, snippet and date. Set a domain and it turns into a Bing rank tracker that alerts you when that domain moves.

**Try it:** the prefilled example returns 2 results pages (20 organic results) in about 5 seconds and costs about $0.006. Results cost $3.00 per 1,000 SERPs.

Coverage: Bing serves automated visitors page 1 only, usually 7 to 10 organic results per query. Requests for page 2
and beyond come back as page 1 again; the actor detects that and stops, so a repeated page is never pushed or
charged. Ads, images, news and People also ask boxes are not included.

Cheaper than the leader on every plan up to Platinum: $3.00 vs $4.50 per 1,000 SERPs on the free plan, and no
per-run start fee. You pay per results page in both output formats.

### What you get

One row per results page (the default `serp` format). Real data from the example dataset (the prefilled run):

| query | page | totalResultsEstimate | organicResults (first 3 of 10) |
|---|---|---|---|
| best project management software | 1 | 15,000 | 1 forbes.com, 2 pcmag.com, 3 top10.com |
| crm software | 1 | 53,000 | 1 forbes.com, 2 pcmag.com, 3 crm.org |

Each `organicResults` item has `position`, `title`, `url` (the real destination, decoded from Bing's `bing.com/ck/a`
click redirect), `displayedUrl`, `snippet`, `date` and `domain`. The row also has `id`, `url` (the results page),
`resultType`, `country`, `language`, `searchUrl`, `checkedAt` and `scrapedAt`.

Set `outputFormat` to `rows` for spreadsheets: one flat row per organic result with the same fields. Billing stays one
result per results page, so the flat format costs the same.

### Use cases

- **Bing rank tracking.** Put your keywords in, set `trackDomain`, save a task in monitor mode and schedule it daily.
  You get a row only when your position changes.
- **SERP research.** See who ranks on Bing for a phrase, with their snippet and the page they rank with.
- **Market checks.** Run the same keywords for US, DE or GB and compare what local searchers see.

### Rank tracker in monitor mode

```json
{
  "mode": "monitor",
  "monitorStateId": "my-bing-ranks",
  "queries": ["project management software", "kanban board"],
  "trackDomain": "example.com",
  "webhookUrl": "https://your-endpoint.example.com/hook"
}
```

With `trackDomain` each keyword is one row (one result): the domain's best organic position, or `found: false` when a
real results page does not list it. Positions count every organic result as Bing shows it, nothing is filtered out.
A keyword whose page is filler (see Limits) and does not list the domain returns no row and is not charged.
Each monitor run charges one `monitor-check` event, and a keyword is returned (billed as one `change`) only when its
position differs from the previous run. Without `trackDomain`, monitor mode returns a results page whenever any URL
on it entered, left or moved. Monitor mode always uses the `serp` format.

### Related actors

- [Website to Markdown](https://apify.com/datahamster/website-to-markdown): turn the result URLs into clean Markdown.
- [YouTube Search Scraper](https://apify.com/datahamster/youtube-search-scraper): the same keyword research on YouTube.
- [Google News Feed](https://apify.com/datahamster/google-news-feed): fresh news articles for a keyword.
- [Google Trends Scraper](https://apify.com/datahamster/google-trends-scraper): how interest in your keywords moves.

### Input

| Field | Meaning | Default |
|---|---|---|
| `queries` | Search phrases, one per line | `["best project management software"]` |
| `country` | Two-letter market | `US` |
| `language` | Bing interface language (`setlang`) | `en` |
| `outputFormat` | `serp` (one row per results page) or `rows` (one row per organic result) | `serp` |
| `pagesPerQuery` | Result pages per query, 1 to 10; Bing currently serves page 1 only (see Coverage) | `1` |
| `trackDomain` | Domain to track; one row per query with its rank | empty |
| `strictQueryMatch` | Drop Bing's filler for queries it has nothing for | `true` |
| `maxItems` | Results pages (billed results) per run in total | `200` (prefilled 20) |
| `tier` | Proxy tier | `auto` |
| `mode`, `monitorStateId`, `webhookUrl`, `telegramBotToken`, `telegramChatId` | Monitor mode and alerts | `scrape` |

### How it works

1. Each query is sent to `bing.com/search` with your language and country, with a real browser TLS fingerprint and
   no cookies or login.
2. Organic results are read from the page; Bing's click-tracking links are decoded locally into the real URLs.
3. Further pages follow the page's own Next link. If Bing returns page 1 again, the query stops.
4. A captcha or error page is retried on a stronger proxy tier. A run where every request was refused ends as
   **blocked**, never as an empty "no results".

### Pricing

| Event | Price |
|---|---|
| result | $0.003 per results page ($3.00 per 1,000), or per keyword with `trackDomain` |
| monitor-check | $0.005 per monitor run |
| change | $0.003 per changed page or keyword in monitor mode |

Store discounts: SILVER plan -10%, GOLD and above -20% on every event. Platform usage is billed by Apify on top.
A page that holds only filler (see Limits) is never pushed and never charged. Pages Bing repeats instead of page 2
are never pushed or charged either. Countries other than US add about $0.0005 of residential proxy usage per query
to the platform usage.

### Limits

- Bing shows its own "no results" block for some queries and locales (the run then returns nothing for that query,
  free). For many nonsense queries it lists unrelated popular sites instead. A page counts as filler only when at most
  one of its results matches the query loosely (typos, abbreviations such as "fb" for facebook.com and brand names
  all count as matches) and Bing showed no "Including results for" notice. With `strictQueryMatch` on, a filler page
  is dropped whole and the query is listed under `skippedQueries` in the run's `ADAPTER_STATS` record. Results of a
  real page are never filtered one by one.
- Deeper pages: in tests on 2026-11-05 Bing repeated page 1 for page 2 on every proxy tier, so `pagesPerQuery` above 1
  currently adds one extra request per query (a little platform usage) and no results. `ADAPTER_STATS.offsetIgnored`
  counts the times this happened in your run.
- Bing sets the market from the visitor's IP. Countries other than US use a residential proxy in that country,
  which is slower and adds about $0.0005 of proxy usage per query to the platform usage.
- Positions count organic results only, the way rank trackers do; ads and answer boxes are not counted.
- `date` is the label Bing shows (e.g. "Sep 25, 2026" or "3 days ago"), in the language of the page.

### FAQ

**Why did a run return nothing?** The `RUN_SUMMARY` record in the run's key-value store has `emptyReason`. A bot
check is reported as `blocked`; queries Bing had nothing real for are in `ADAPTER_STATS.skippedQueries`.
In `RUN_SUMMARY`, `pushed` counts billed results (results pages, or keywords with `trackDomain`) and `rowsPushed`
counts dataset rows, which differ in the `rows` format.

**Do I need a Bing API key?** No. The actor reads the public results page.

### Changelog

- 0.1: initial release. One row per results page with decoded URLs and total results estimate, optional flat rows
  format at the same price, Next-link pagination with repeat detection, filler filter, per-country residential exit,
  domain rank tracker and monitor mode.

***

If this actor saved you time, a short review on its Store page helps other people find it. Missing a field? Open an
issue on the **Issues** tab.

# Actor input Schema

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

What to type into Bing, one query per line, e.g. "best project management software". Each query is searched separately; its rows carry the query and the rank.

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

Two-letter market, e.g. "US", "DE", "GB". Bing picks the market from the visitor's IP, so any country other than US runs through a residential proxy in that country.

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

Interface language code sent as Bing's setlang, e.g. "en", "de", "pt-BR".

## `pagesPerQuery` (type: `integer`):

How many result pages to try per query. Bing currently serves automated visitors page 1 only (7 to 10 organic results) and answers page 2 with page 1 again; the actor then stops without pushing or charging the repeat. Keep 1 unless Bing starts serving deeper pages.

## `trackDomain` (type: `string`):

Optional, e.g. "example.com" (subdomains count). Then each query returns ONE row: the best organic position of that domain, or found=false. Combine with monitor mode to get an alert only when the rank moves.

## `outputFormat` (type: `string`):

serp = one row per results page with an organicResults list. rows = one flat row per organic result. Billing is one result per results page in both formats. Monitor mode always uses serp.

## `strictQueryMatch` (type: `boolean`):

true = when Bing has nothing for the query and fills the page with unrelated popular sites (at most one result matching the query even loosely, no autocorrect notice), that page is dropped whole: never pushed, never charged. Results of a real page are never filtered. false = keep everything Bing shows.

## `tier` (type: `string`):

auto: US runs without a proxy and climbs to datacenter, then residential only on a bot check; other countries use a residential exit in that country. Pin a tier to force it.

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

Stop the whole run after this many results pages (billed results), across all queries. With trackDomain, one per keyword.

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

scrape = full results; monitor = only new/changed items since the previous run of this task

## `monitorStateId` (type: `string`):

Optional state id when not running as a saved task (monitor mode)

## `webhookUrl` (type: `string`):

POST a change summary here in monitor mode

## `telegramBotToken` (type: `string`):

Optional: bot token for monitor-mode change summaries

## `telegramChatId` (type: `string`):

Optional: chat id that receives monitor-mode summaries

## Actor input object example

```json
{
  "queries": [
    "best project management software",
    "crm software"
  ],
  "country": "US",
  "language": "en",
  "pagesPerQuery": 1,
  "outputFormat": "serp",
  "strictQueryMatch": true,
  "tier": "auto",
  "maxItems": 20,
  "mode": "scrape"
}
```

# Actor output Schema

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

All pushed rows (dataset, JSON)

## `resultsTable` (type: `string`):

Dataset in the Console viewer

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

RUN_SUMMARY record

# 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",
        "crm software"
    ],
    "country": "US",
    "language": "en",
    "pagesPerQuery": 1,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("datahamster/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": [
        "best project management software",
        "crm software",
    ],
    "country": "US",
    "language": "en",
    "pagesPerQuery": 1,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("datahamster/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": [
    "best project management software",
    "crm software"
  ],
  "country": "US",
  "language": "en",
  "pagesPerQuery": 1,
  "maxItems": 20
}' |
apify call datahamster/bing-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datahamster/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/L0Kq26ZKdtxK9SdMS/builds/sfF9wpXLq6Y4V7SRd/openapi.json
