# Bing Maps Search API (bing_maps.search)

- Canonical page: https://everyinfra.com/en/bing-maps-api/search
- Endpoint: POST /api/v1/social with {"platform": "bing_maps", "action": "search", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed and empty results are not charged
- Returns: list, default 20, max 30 per call
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=bing_maps&action=search

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | What to look for on the map, a business name or category such as `coffee` or `pizza`. |
| language | not declared | no | not declared | A two-letter language code such as `en` or `de` for the returned listings. |
| latitude | not declared | no | not declared | The latitude of the map center, from -90 to 90, given together with `longitude`. Without a center Bing chooses the location, which may not be the city you want. |
| longitude | not declared | no | not declared | The longitude of the map center, from -180 to 180, given together with `latitude`. |
| page | integer | no | not declared | Which page of listings to return, starting at 1, with `limit` businesses per page (up to 20 pages). |
| limit | integer (1–30) | no | 20 | The most rows to return in this call, an integer from 1 to 30. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| rank | platform-native meaning |
| place_id | Bing Maps business ID, such as YNF9439D454244F274. |
| name | Name of the object itself, for account, product and business capabilities. |
| url | Link to the record on the platform. |
| category | Category name in the platform's own taxonomy, not normalized across platforms. |
| address | Full address, passed through as is. |
| lat | platform-native meaning |
| lng | platform-native meaning |
| phone | Contact phone number, passed through without format normalization. |
| website | External website entered by the account or business. |
| rating | Rating from the review site named in rating_source, on that site's scale; Bing does not rate businesses itself. |
| rating_scale | Maximum of rating in the same row: 5 for five-star scales, 10 for ten-point scales. Present only when the row has a rating. |
| review_count | Number of reviews on the site named in rating_source. |
| rating_source | The review site the rating comes from, such as Yelp or TripAdvisor. |
| open_state | platform-native meaning |
| hours_text | Opening-hours hint as shown, such as Open until 8 PM; absent when Bing shows none. |
| image_url | Image link. Capabilities with several images may return an image_urls array. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "bing_maps",
  "action": "search",
  "params": {
    "keyword": "coffee"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "bing_maps",
        "action": "search",
        "params": {
            "keyword": "coffee",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "bing_maps",
  "action": "search",
  "results": [
    {
      "rank": …,
      "place_id": …,
      "name": …,
      "url": …,
      "category": …,
      "address": …,
      "lat": …,
      "lng": …,
      "phone": …,
      "website": …,
      "rating": …,
      "rating_scale": …,
      "review_count": …,
      "rating_source": …,
      "open_state": …,
      "hours_text": …,
      "image_url": …,
      "platform": …
    }
  ],
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=bing_maps
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
