# Bing Maps Places Scraper (`shareze001/bing-maps-places`) Actor

Scrape places and businesses from Bing Maps with a search query. Returns name, address, phone, website, rating, coordinates, category, and more.

- **URL**: https://apify.com/shareze001/bing-maps-places.md
- **Developed by:** [shareze](https://apify.com/shareze001) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.30 / 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 Maps Places Scraper

Collect places and businesses from [Bing Maps](https://www.bing.com/maps) by search query — cafés, shops, services, and more — with ratings, phones, websites, and coordinates ready for export.

Uses Bing’s public `maps/overlaybfpr` listing feed — no browser required.

### Features

- Search by **query** (e.g. `coffee shops in Austin`)
- Optional **location**, **latitude/longitude** map center, and **market** (`en-US`, …)
- Caps unique places with `size`
- Returns name, address, phone, website, category, rating, hours text, image, and coordinates

### How to use

```json
{
  "query": "coffee shops in Austin",
  "size": 50,
  "market": "en-US"
}
```

#### Query + location + map center

```json
{
  "query": "cafe",
  "location": "Austin, TX",
  "latitude": 30.2672,
  "longitude": -97.7431,
  "size": 40
}
```

### Input

| Field | Required | Description |
| --- | --- | --- |
| `query` | yes | Bing Maps search phrase |
| `location` | no | Appended as `in {location}` when not already in the query |
| `latitude` / `longitude` | no | Map center (`cp`) for more local results — provide both or neither |
| `size` | no | Max unique places (default `50`) |
| `market` | no | Bing market / language, e.g. `en-US` (default `en-US`) |

### Output

Each dataset item is one place:

| Field | Description |
| --- | --- |
| `externalId` | Bing place id (`ypid:…`) |
| `name` | Display name |
| `url` | Bing Maps URL for the place |
| `address` | Street address |
| `phone` | Phone number |
| `website` | Website |
| `category` | Primary category |
| `categories` | Category labels |
| `rating` | Average rating |
| `reviewCount` | Number of reviews |
| `ratingSource` | Rating provider (e.g. Yelp) |
| `openStatus` | Open / closed status text when present |
| `openHoursText` | Short hours summary |
| `point` | Coordinates as `lon,lat` |
| `latitude` / `longitude` | Coordinates |
| `imageUrl` | Thumbnail image |
| `query` | Search query that produced the place |
| `sourceUrl` | Bing Maps search URL |

#### Example item

```json
{
  "externalId": "ypid:YN2DE145208D5EBE24",
  "name": "Houndstooth Coffee",
  "url": "https://www.bing.com/maps?q=Houndstooth%20Coffee&ypid=ypid%3AYN2DE145208D5EBE24",
  "address": "401 Congress Ave #100C, Austin, TX 78701",
  "phone": "(512) 394-6051",
  "website": "http://www.houndstoothcoffee.com/",
  "category": "Cafe",
  "categories": ["Cafe"],
  "rating": 4.0,
  "reviewCount": 518,
  "ratingSource": "Yelp",
  "openStatus": "Closed",
  "openHoursText": "Closed now, opens at 06:30",
  "point": "-97.7431,30.2672",
  "latitude": 30.2672,
  "longitude": -97.7431,
  "imageUrl": "https://www.bing.com/th?id=OLC....&pid=Local",
  "query": "coffee shops in Austin",
  "sourceUrl": "https://www.bing.com/maps?q=coffee+shops+in+Austin"
}
```

# Actor input Schema

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

Bing Maps search phrase. Example: coffee shops in Austin. Optional location can be appended separately.

## `location` (type: `string`):

City or area appended to the query when not already included. Example: Austin, TX.

## `latitude` (type: `number`):

Optional map center latitude (with longitude) for more local results.

## `longitude` (type: `number`):

Optional map center longitude (with latitude).

## `size` (type: `integer`):

Maximum unique places to return.

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

Bing market / language, e.g. en-US, en-GB, de-DE.

## Actor input object example

```json
{
  "query": "coffee shops in Austin",
  "size": 50,
  "market": "en-US"
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

# 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": "coffee shops in Austin",
    "size": 50,
    "market": "en-US"
};

// Run the Actor and wait for it to finish
const run = await client.actor("shareze001/bing-maps-places").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": "coffee shops in Austin",
    "size": 50,
    "market": "en-US",
}

# Run the Actor and wait for it to finish
run = client.actor("shareze001/bing-maps-places").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": "coffee shops in Austin",
  "size": 50,
  "market": "en-US"
}' |
apify call shareze001/bing-maps-places --silent --output-dataset

```

## MCP server setup

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

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/JbH6HyfcIWApIi8MK/builds/rD0PbkpAjflSV8fpp/openapi.json
