# Bing Search API (bing.search)

- Canonical page: https://everyinfra.com/en/bing-api/search
- Endpoint: POST /api/v1/social with {"platform": "bing", "action": "search", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed and empty results are not charged
- Returns: list
- 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&action=search

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | The Bing search query, up to 2,048 characters. Bing syntax such as quoted phrases and minus exclusions works. One call returns the first results page, about 10 results. |
| country | not declared | no | not declared | A two-letter country code such as `us`, `de` or `jp` that sets which market Bing searches. It does not filter results by where the site is hosted. |
| language | not declared | no | not declared | A two-letter language code such as `en` or `es`. It takes effect together with `country`, searching that language-country market. |
| limit | integer (1–) | no | not declared | The most rows to return in this call, an integer of 1 or more. The default applies when you leave it out, and a call can return fewer rows. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| rank | Position on the first results page, from 1. |
| title | Title. null when the platform has no titles (for example text-only posts). |
| url | Link to the record on the platform. |
| displayed_url | The URL as Bing displays it under the title, which may contain › separators; use `url` to open the page. |
| text | Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
| date_text | The date Bing shows in front of the snippet, as written (such as Oct 24, 2026); absent when Bing shows none. |
| 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",
  "action": "search",
  "params": {
    "keyword": "python asyncio tutorial"
  }
}'
```

```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",
        "action": "search",
        "params": {
            "keyword": "python asyncio tutorial",
        },
    },
    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",
  "action": "search",
  "results": [
    {
      "rank": …,
      "title": …,
      "url": …,
      "displayed_url": …,
      "text": …,
      "date_text": …,
      "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
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
