# Bing Scraper (`ivanvs/bing-scraper`) Actor

Scrape search results from Bing without any limits! Export your search result data into XML, JSON, CSV or Excel!

- **URL**: https://apify.com/ivanvs/bing-scraper.md
- **Developed by:** [Gen First](https://apify.com/ivanvs) (community)
- **Categories:** SEO tools, Automation, Lead generation
- **Features:** Limited permissions
- **Stats:** 93 total users, 4 monthly users, 100.0% runs succeeded, 4 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 1,000 search 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 Scraper

Scrape results from [Bing](https://www.bing.com/) easily with Bing Scraper.

### About

Microsoft Bing (also known simply as Bing) is a search engine owned and operated by Microsoft. The service traces its roots back to Microsoft's earlier search engines, including MSN Search, Windows Live Search, and Live Search. Bing offers a broad spectrum of search services, encompassing web, video, image, and map search products, all developed using ASP.NET.

The transition from Live Search to Bing was announced by Microsoft CEO Steve Ballmer on May 28, 2009, at the All Things Digital conference in San Diego, California. The official release followed on June 3, 2009. Bing introduced several notable features at its inception, such as search suggestions during query input and a list of related searches, known as the 'Explore pane'. These features leveraged semantic technology from Powerset, a company Microsoft acquired in 2008. Microsoft also struck a deal with Yahoo! that led to Bing powering Yahoo! Search.

Microsoft made significant strides towards open-source technology in 2016, making the BitFunnel search engine indexing algorithm and various components of Bing open source. In February 2023, Microsoft launched Bing Chat (later renamed Microsoft Copilot), an artificial intelligence chatbot experience based on GPT-4, integrated directly into the search engine. As of April 2024, Bing holds the position of the second-largest search engine.

### Why should you use it?

It provides the realtime scraping of products from Bing, without requiring any other configuration and without any limits.

### How to use it?

Bing Scraper has number of input parameters that can be used.

| Input parameter | Description                                        | Required | Default value    |
| --------------- | -------------------------------------------------- | -------- | ---------------- |
| query           | Search that you want to execute                    | `true`   | `Java Developer` |
| maxRecords      | Maximum number of results that needs to be scraped | `false`  | 100              |

#### Examples

##### Input

Scrape search results for query "Java Developer" maxium 100 results:

```json
{
  "query": "Java Developer",
  "maxRecords": 100
}
```

##### Output

```json
{
  "title": "*java Developer Jobs, Employment - Indeed",
  "url": "https://www.indeed.com/q-*java-developer-jobs.html",
  "description": "16,944 *java Developer jobs available on Indeed.com. Apply to Java Developer, Back End Developer, Full Stack Developer and more!",
  "icon": "https://th.bing.com/th/id/ODF.BbqHg8ivLIa48r3gCiVHLw?w=32&h=32&qlt=98&pcl=fffffa&o=6&cb=12&pid=1.2",
  "sitename": "Indeed"
}
```

### Bing Scraper data output

The output from Bing Scraper is stored in the dataset. After the run is finished, you can download the dataset in various data formats (JSON, CSV, XML, RSS, HTML Table).

### ❓FAQ

#### Do I need proxies to scrape search results from Bing Scraper?

Proxy for this scraper is already preconfigured for optimal performance.

### Support

For more custom/simplify outputs or Bug report please contact the developer (support (at) getmediumdata.com) or report an issue.

# Actor input Schema

## `query` (type: `string`):

Search that you want to execute

## `maxRecords` (type: `integer`):

Maximum number of records to be scraped

## Actor input object example

```json
{
  "query": "java developer",
  "maxRecords": 10
}
```

# 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 = {
    "query": "java developer",
    "maxRecords": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("ivanvs/bing-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 = {
    "query": "java developer",
    "maxRecords": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("ivanvs/bing-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 '{
  "query": "java developer",
  "maxRecords": 10
}' |
apify call ivanvs/bing-scraper --silent --output-dataset

```

## MCP server setup

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