# Bing Search Scraper (SERP Results, Rank Tracking) (`locaihost/bing-search`) Actor

Bing web search results by keyword: position, title, link, snippet, date and sitelinks for 47 markets, with rank change since your last run and an only-new mode. One free summary row per query. $2.50 per 1,000 results.

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

## Pricing

from $1.38 / 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.
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 (SERP Results, Rank Tracking)

Get Bing's organic web results for any keyword: position, title, link, snippet, date and sitelinks, in 47 markets. Each run remembers where every link ranked, so the next run shows what moved up, what dropped and what is new.

### How do I start?

Paste this into the input (JSON tab) and press Start:

```json
{
    "queries": ["best crm for small business"],
    "market": "en-US"
}
```

One query takes about 10 to 20 seconds and returns Bing's first results page, about 10 results, plus one free summary row.

### What does each row contain?

| Field | What it is |
|---|---|
| `query` | The query from your input |
| `position` | 1-based position on Bing's results page |
| `page` | The Bing results page the row came from (1) |
| `title`, `url`, `displayedUrl` | The result as Bing shows it |
| `domain`, `siteName` | The link's domain, and the site name Bing shows next to it |
| `description` | The snippet |
| `date` | The date Bing shows in front of the snippet, when it shows one |
| `sitelinks` | Extra links Bing shows under the result (title and url) |
| `previousPosition`, `positionChange` | Where the same link ranked in your previous run of this query, market and filters, and how far it moved (positive means up) |
| `market`, `language`, `searchUrl`, `scrapedAt` | Where and when it was read |

Example result row:

```json
{
    "type": "result",
    "query": "best crm for small business",
    "position": 3,
    "page": 1,
    "title": "The 10 Best CRM Software for Small Business",
    "domain": "example.com",
    "description": "Compare the top CRM tools for small teams by price, features and ease of use...",
    "date": "3 days ago",
    "sitelinks": [],
    "previousPosition": 5,
    "positionChange": 2,
    "market": "en-US",
    "language": "en"
}
```

### Free rows, never charged

Every query also gets one summary row (`type: "summary"`), free: the result count Bing states, how many results were found and returned, pages read, results skipped as already seen, the top domains with their counts, the run it was compared with, and a note on how the query ended. Use the **Query summaries** view to see them on their own. Queries Bing has no results for still get their summary row, so you can see what came back empty.

### What makes it different?

- **Rank changes built in.** From the second run on, every row carries `previousPosition` and `positionChange`. Schedule it daily to track your pages or a competitor's without keeping your own history.
- **Only new results.** Turn on **Only new results** for scheduled runs and each run returns only links it has not returned before for that query, market and filters.
- **Top 10, many keywords.** Each query returns Bing's first results page, the positions that get the clicks. Paste up to 1,000 keywords in one run.
- **Real local results.** Each search runs from an address in the market's country, so results match what people there see.
- **Filters.** Limit to one website, to results published in the last day, week or month, set SafeSearch, or change the interface language.

### What does it cost?

$2.50 per 1,000 results, with one paid event, "result", charged once per result row. Summary rows are free, and a query with no results costs nothing. Larger Apify plans pay less per result (shown on the Pricing tab).

The run stops cleanly at your maximum charge and keeps everything read so far.

**Free Apify plan:** up to 500 rows and up to 25 queries per run. Any paid Apify plan removes both limits.

### Which inputs can I use?

| Input | What it does |
|---|---|
| `queries` | Keywords, one per line (up to 1,000). A pasted Bing results link works too. |
| `market` | Bing market, e.g. `en-US`, `en-GB`, `de-DE`, `ja-JP` (47 to choose from). A two-letter country such as `de` also works. |
| `onlyNew` | Return only results not returned by an earlier run of the same query, market and filters. |
| `site` | Only results from this website, e.g. `example.com`. |
| `freshness` | `any`, `day`, `week` or `month`. |
| `safeSearch` | `strict`, `moderate` or `off`. |
| `language` | Interface language code; defaults to the market's language. |

### How do I track rankings over time?

1. Save your input as a task with your keywords and market.
2. Add a daily schedule to the task.
3. Each run's rows show `positionChange` against the run before. The summary row's `comparedWithRunAt` says which run that was.

Changing the market or any filter starts a separate history, so a site-limited run never mixes with an open one.

### What happens when something goes wrong?

- Bad input (an unknown market, no queries) ends the run with a message and charges nothing.
- If Bing refuses some searches, the run keeps the results it read and says which queries to re-run.
- If the run's time limit is near, it stops early, saves everything and says which queries were not finished.

### Can I call it from an agent or my own code?

Yes. It works through the Apify API, the Apify MCP server and the Apify client libraries, with the same input as above. A one-query run returns in well under a minute.

### Is it legal to collect Bing results?

The Actor reads public search results pages, the same ones anyone sees without signing in, and collects no personal data beyond what appears in public results. You are responsible for how you use the data and for following the laws that apply to you.

### Questions or problems?

Open an issue on the Issues tab and we will answer within a day. If the Actor helped, a rating on the Store helps other people find it.

# Changelog

This Actor's version history is a separate document: https://apify.com/locaihost/bing-search/changelog.md

# Actor input Schema

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

What to search on Bing, one per line. Paste up to 1,000. A pasted Bing results link counts as its query.

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

The Bing market searched from: results are what a visitor in that country sees. Two-letter countries such as gb or de also work through the API.

## `onlyNew` (type: `boolean`):

Skip results this Actor already returned for the same query, market and filters in an earlier run. Skipped results are counted in the free summary row and never charged. Good for a daily schedule.

## `site` (type: `string`):

Limit every query to one domain, such as example.com. Leave empty to search the whole web.

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

Only pages Bing dates within this period.

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

Bing's adult-content filter.

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

Interface language code such as en, de, es or pt-BR. Leave empty for the market's own language.

## Actor input object example

```json
{
  "queries": [
    "best crm for small business",
    "project management software",
    "solar panel installers austin"
  ],
  "market": "en-US",
  "onlyNew": false,
  "freshness": "any",
  "safeSearch": "moderate"
}
```

# Actor output Schema

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

Every organic result: query, position, title, link, domain, snippet, date and change since the last run.

## `summaries` (type: `string`):

One free row per query: Bing's total, results found and returned, pages read, top domains and a note on how it ended.

## `summary` (type: `string`):

Counts per query, anything that failed, and cost.

# 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 crm for small business"
    ],
    "market": "en-US"
};

// Run the Actor and wait for it to finish
const run = await client.actor("locaihost/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 crm for small business"],
    "market": "en-US",
}

# Run the Actor and wait for it to finish
run = client.actor("locaihost/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 crm for small business"
  ],
  "market": "en-US"
}' |
apify call locaihost/bing-search --silent --output-dataset

```

## MCP server setup

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