> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Bing Webmaster Tools

> Your sites in Bing Webmaster Tools: search clicks, impressions and positions by query and page, crawl stats and issues, inbound links, URL index info and Bing keyword volume.

![](https://mintcdn.com/webrouter/Wx0iBZkUGX_VAFTN/logo/data-apis/bing-webmaster.webp?fit=max\&auto=format\&n=Wx0iBZkUGX_VAFTN\&q=85\&s=a0bf6c9d50b30b75a0cdfb73e323ea31)

[Web Catalog · SEO](https://docs.webrouter.net/data-apis.md?category=seo)

Needs&#x20;

`BING_WEBMASTER_API_KEY`

Endpoints

12

Auth

Key in query

[Vendor docs](https://learn.microsoft.com/en-us/bingwebmaster/getting-started)

## Setup

| Variable | | What it is |
| - | - | - |
| `BING_WEBMASTER_API_KEY` | required | a Bing Webmaster Tools API key (Settings > API Access > Generate API Key); one key per user, valid for all of that user's verified sites |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Own-account API: only sites added and verified in the key owner's Bing Webmaster Tools.
* Answers wrap the result in a 'd' field; dates come as '/Date(1316156400000-0700)/' (milliseconds since 1970 plus a UTC offset).
* Errors answer HTTP 400 with \{ErrorCode, Message}, e.g. ErrorCode 3 InvalidApiKey.
* Search performance data is updated weekly.

## Endpoints

GET

List your sites

Every site in the account, with whether it is verified.

[Open](#bing-webmaster-sites-list)

GET

Get daily clicks and impressions

Bing search clicks and impressions for a site, per day.

[Open](#bing-webmaster-traffic-daily)

GET

Get top search queries

Clicks, impressions and average click and impression position for the site's top queries.

[Open](#bing-webmaster-queries-stats)

GET

Get top pages

Clicks, impressions and average positions for the site's top pages (the page URL is in Query).

[Open](#bing-webmaster-pages-stats)

GET

Get the queries for one page

Queries that brought traffic to one page, with clicks, impressions and positions.

[Open](#bing-webmaster-pages-queries)

GET

Get the pages for one query

Pages that ranked for one query, with clicks, impressions and positions.

[Open](#bing-webmaster-queries-pages)

GET

Get Bing keyword volume

Bing keyword statistics (search impressions) for a keyword, by country and language.

[Open](#bing-webmaster-keywords-stats)

GET

Get crawl statistics

Daily Bingbot crawl counts by status (2xx, 3xx, 4xx, 5xx, blocked by robots.txt, malware) for the last six months.

[Open](#bing-webmaster-crawl-stats)

GET

List crawl issues

URLs with crawl problems, the issue found, their HTTP code and inbound links.

[Open](#bing-webmaster-crawl-issues)

GET

Get inbound link counts

The site's pages that have inbound links, with the link count per page.

[Open](#bing-webmaster-links-counts)

GET

List inbound links to a page

The linking URLs and anchor texts for one page of the site.

[Open](#bing-webmaster-links-details)

GET

Get what Bing knows about a URL

Discovery and last-crawl dates, HTTP status, size, anchor count and child URL count of a URL in Bing's index.

[Open](#bing-webmaster-urls-info)

### List your sites

GET

`/GetUserSites`

`bing-webmaster.sites.list`

Every site in the account, with whether it is verified.

Input

No inputs.

[Vendor docs](https://learn.microsoft.com/en-us/dotnet/api/microsoft.bing.webmaster.api.interfaces.iwebmasterapi.getusersites) · Same job: [Google Search Console](https://docs.webrouter.net/data-apis/google-search-console.md#google-search-console-sites-list)

```python Python theme={null}
router.call_data_api("bing-webmaster.sites.list")
```

```text MCP theme={null}
call_data_api(endpoint="bing-webmaster.sites.list")
```

### Get daily clicks and impressions

GET

`/GetRankAndTrafficStats`

`bing-webmaster.traffic.daily`

Bing search clicks and impressions for a site, per day.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`siteUrl` required</td><td>string</td><td>query</td><td>A site verified in your Bing Webmaster Tools account, as listed by get user sites. Example `https://www.example.com/`</td></tr>
  </tbody>
</table>

[Vendor docs](https://learn.microsoft.com/en-us/dotnet/api/microsoft.bing.webmaster.api.interfaces.iwebmasterapi.getrankandtrafficstats) · Same job: [Google Search Console](https://docs.webrouter.net/data-apis/google-search-console.md#google-search-console-search-analytics-query)

```python Python theme={null}
router.call_data_api("bing-webmaster.traffic.daily", {'siteUrl': 'https://www.example.com/'})
```

```text MCP theme={null}
call_data_api(endpoint="bing-webmaster.traffic.daily", params={"siteUrl": "https://www.example.com/"})
```

### Get top search queries

GET

`/GetQueryStats`

`bing-webmaster.queries.stats`

Clicks, impressions and average click and impression position for the site's top queries.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`siteUrl` required</td><td>string</td><td>query</td><td>A site verified in your Bing Webmaster Tools account, as listed by get user sites. Example `https://www.example.com/`</td></tr>
  </tbody>
</table>

[Vendor docs](https://learn.microsoft.com/en-us/dotnet/api/microsoft.bing.webmaster.api.interfaces.iwebmasterapi.getquerystats) · Same job: [Google Search Console](https://docs.webrouter.net/data-apis/google-search-console.md#google-search-console-search-analytics-query)

```python Python theme={null}
router.call_data_api("bing-webmaster.queries.stats", {'siteUrl': 'https://www.example.com/'})
```

```text MCP theme={null}
call_data_api(endpoint="bing-webmaster.queries.stats", params={"siteUrl": "https://www.example.com/"})
```

> [!NOTE]
>
> * Updated weekly.

### Get top pages

GET

`/GetPageStats`

`bing-webmaster.pages.stats`

Clicks, impressions and average positions for the site's top pages (the page URL is in Query).

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`siteUrl` required</td><td>string</td><td>query</td><td>A site verified in your Bing Webmaster Tools account, as listed by get user sites. Example `https://www.example.com/`</td></tr>
  </tbody>
</table>

[Vendor docs](https://learn.microsoft.com/en-us/dotnet/api/microsoft.bing.webmaster.api.interfaces.iwebmasterapi.getpagestats) · Same job: [Google Search Console](https://docs.webrouter.net/data-apis/google-search-console.md#google-search-console-search-analytics-query)

```python Python theme={null}
router.call_data_api("bing-webmaster.pages.stats", {'siteUrl': 'https://www.example.com/'})
```

```text MCP theme={null}
call_data_api(endpoint="bing-webmaster.pages.stats", params={"siteUrl": "https://www.example.com/"})
```

### Get the queries for one page

GET

`/GetPageQueryStats`

`bing-webmaster.pages.queries`

Queries that brought traffic to one page, with clicks, impressions and positions.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`siteUrl` required</td><td>string</td><td>query</td><td>A site verified in your Bing Webmaster Tools account, as listed by get user sites. Example `https://www.example.com/`</td></tr>
    <tr><td>`page` required</td><td>string</td><td>query</td><td>The page URL. Example `https://www.example.com/pricing`</td></tr>
  </tbody>
</table>

[Vendor docs](https://learn.microsoft.com/en-us/dotnet/api/microsoft.bing.webmaster.api.interfaces.iwebmasterapi.getpagequerystats) · Same job: [Google Search Console](https://docs.webrouter.net/data-apis/google-search-console.md#google-search-console-search-analytics-query)

```python Python theme={null}
router.call_data_api("bing-webmaster.pages.queries", {'siteUrl': 'https://www.example.com/', 'page': 'https://www.example.com/pricing'})
```

```text MCP theme={null}
call_data_api(endpoint="bing-webmaster.pages.queries", params={"siteUrl": "https://www.example.com/", "page": "https://www.example.com/pricing"})
```

### Get the pages for one query

GET

`/GetQueryPageStats`

`bing-webmaster.queries.pages`

Pages that ranked for one query, with clicks, impressions and positions.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`siteUrl` required</td><td>string</td><td>query</td><td>A site verified in your Bing Webmaster Tools account, as listed by get user sites. Example `https://www.example.com/`</td></tr>

    <tr>
      <td>
        `query`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        The search query.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://learn.microsoft.com/en-us/dotnet/api/microsoft.bing.webmaster.api.interfaces.iwebmasterapi.getquerypagestats) · Same job: [Google Search Console](https://docs.webrouter.net/data-apis/google-search-console.md#google-search-console-search-analytics-query)

### Get Bing keyword volume

GET

`/GetKeywordStats`

`bing-webmaster.keywords.stats`

Bing keyword statistics (search impressions) for a keyword, by country and language.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q` required</td><td>string</td><td>query</td><td>The keyword. Example `running shoes`</td></tr>

    <tr>
      <td>
        `country`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Country to report for.
      </td>
    </tr>

    <tr>
      <td>
        `language`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Language to report for.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://learn.microsoft.com/en-us/dotnet/api/microsoft.bing.webmaster.api.interfaces.iwebmasterapi.getkeywordstats) · Same job: [Ahrefs](https://docs.webrouter.net/data-apis/ahrefs.md#ahrefs-keywords-overview), [DataForSEO](https://docs.webrouter.net/data-apis/dataforseo.md#dataforseo-keywords-google-ads-volume), [Google Ads](https://docs.webrouter.net/data-apis/google-ads.md#google-ads-keywords-historical-metrics), [Keywords Everywhere](https://docs.webrouter.net/data-apis/keywordseverywhere.md#keywordseverywhere-keyword-data), [Semrush](https://docs.webrouter.net/data-apis/semrush.md#semrush-keyword-overview-all-databases), [SE Ranking](https://docs.webrouter.net/data-apis/seranking.md#seranking-keywords-export)

```python Python theme={null}
router.call_data_api("bing-webmaster.keywords.stats", {'q': 'running shoes'})
```

```text MCP theme={null}
call_data_api(endpoint="bing-webmaster.keywords.stats", params={"q": "running shoes"})
```

> [!NOTE]
>
> * The reference documents the inputs but gives no request sample or value formats for country and language.

### Get crawl statistics

GET

`/GetCrawlStats`

`bing-webmaster.crawl.stats`

Daily Bingbot crawl counts by status (2xx, 3xx, 4xx, 5xx, blocked by robots.txt, malware) for the last six months.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`siteUrl` required</td><td>string</td><td>query</td><td>A site verified in your Bing Webmaster Tools account, as listed by get user sites. Example `https://www.example.com/`</td></tr>
  </tbody>
</table>

[Vendor docs](https://learn.microsoft.com/en-us/dotnet/api/microsoft.bing.webmaster.api.interfaces.iwebmasterapi.getcrawlstats)

```python Python theme={null}
router.call_data_api("bing-webmaster.crawl.stats", {'siteUrl': 'https://www.example.com/'})
```

```text MCP theme={null}
call_data_api(endpoint="bing-webmaster.crawl.stats", params={"siteUrl": "https://www.example.com/"})
```

### List crawl issues

GET

`/GetCrawlIssues`

`bing-webmaster.crawl.issues`

URLs with crawl problems, the issue found, their HTTP code and inbound links.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`siteUrl` required</td><td>string</td><td>query</td><td>A site verified in your Bing Webmaster Tools account, as listed by get user sites. Example `https://www.example.com/`</td></tr>
  </tbody>
</table>

[Vendor docs](https://learn.microsoft.com/en-us/dotnet/api/microsoft.bing.webmaster.api.interfaces.iwebmasterapi.getcrawlissues)

```python Python theme={null}
router.call_data_api("bing-webmaster.crawl.issues", {'siteUrl': 'https://www.example.com/'})
```

```text MCP theme={null}
call_data_api(endpoint="bing-webmaster.crawl.issues", params={"siteUrl": "https://www.example.com/"})
```

### Get inbound link counts

GET

`/GetLinkCounts`

`bing-webmaster.links.counts`

The site's pages that have inbound links, with the link count per page.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`siteUrl` required</td><td>string</td><td>query</td><td>A site verified in your Bing Webmaster Tools account, as listed by get user sites. Example `https://www.example.com/`</td></tr>
    <tr><td>`page` required</td><td>integer</td><td>query</td><td>Result page, from 0; the answer gives TotalPages. Example `0`</td></tr>
  </tbody>
</table>

[Vendor docs](https://learn.microsoft.com/en-us/dotnet/api/microsoft.bing.webmaster.api.interfaces.iwebmasterapi.getlinkcounts) · Same job: [Ahrefs](https://docs.webrouter.net/data-apis/ahrefs.md#ahrefs-backlinks), [Keywords Everywhere](https://docs.webrouter.net/data-apis/keywordseverywhere.md#keywordseverywhere-domain-backlinks), [Majestic](https://docs.webrouter.net/data-apis/majestic.md#majestic-backlinks-list), [Mangools](https://docs.webrouter.net/data-apis/mangools.md#mangools-links-list), [Moz](https://docs.webrouter.net/data-apis/moz.md#moz-links-links), [Semrush](https://docs.webrouter.net/data-apis/semrush.md#semrush-backlinks-list)

```python Python theme={null}
router.call_data_api("bing-webmaster.links.counts", {'siteUrl': 'https://www.example.com/', 'page': 0})
```

```text MCP theme={null}
call_data_api(endpoint="bing-webmaster.links.counts", params={"siteUrl": "https://www.example.com/", "page": 0})
```

### List inbound links to a page

GET

`/GetUrlLinks`

`bing-webmaster.links.details`

The linking URLs and anchor texts for one page of the site.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`siteUrl` required</td><td>string</td><td>query</td><td>A site verified in your Bing Webmaster Tools account, as listed by get user sites. Example `https://www.example.com/`</td></tr>

    <tr>
      <td>
        `link`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        The page whose inbound links to list.
      </td>
    </tr>

    <tr><td>`page` required</td><td>integer</td><td>query</td><td>Result page, from 0; the answer gives TotalPages. Example `0`</td></tr>
  </tbody>
</table>

[Vendor docs](https://learn.microsoft.com/en-us/dotnet/api/microsoft.bing.webmaster.api.interfaces.iwebmasterapi.geturllinks) · Same job: [Ahrefs](https://docs.webrouter.net/data-apis/ahrefs.md#ahrefs-backlinks), [Keywords Everywhere](https://docs.webrouter.net/data-apis/keywordseverywhere.md#keywordseverywhere-domain-backlinks), [Majestic](https://docs.webrouter.net/data-apis/majestic.md#majestic-backlinks-list), [Mangools](https://docs.webrouter.net/data-apis/mangools.md#mangools-links-list), [Moz](https://docs.webrouter.net/data-apis/moz.md#moz-links-links), [Semrush](https://docs.webrouter.net/data-apis/semrush.md#semrush-backlinks-list)

### Get what Bing knows about a URL

GET

`/GetUrlInfo`

`bing-webmaster.urls.info`

Discovery and last-crawl dates, HTTP status, size, anchor count and child URL count of a URL in Bing's index.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`siteUrl` required</td><td>string</td><td>query</td><td>A site verified in your Bing Webmaster Tools account, as listed by get user sites. Example `https://www.example.com/`</td></tr>

    <tr>
      <td>
        `url`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        The URL to look up, on that site.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://learn.microsoft.com/en-us/dotnet/api/microsoft.bing.webmaster.api.interfaces.iwebmasterapi.geturlinfo) · Same job: [ChEMBL](https://docs.webrouter.net/data-apis/chembl.md#chembl-status), [HGNC (HUGO Gene Nomenclature Committee)](https://docs.webrouter.net/data-apis/hgnc.md#hgnc-info), [Internet Archive](https://docs.webrouter.net/data-apis/internet-archive.md#internet-archive-metadata-get), [Library of Congress loc.gov API](https://docs.webrouter.net/data-apis/loc-gov.md#loc-gov-item-get), [Moz](https://docs.webrouter.net/data-apis/moz.md#moz-links-index-metadata), [STRING](https://docs.webrouter.net/data-apis/string-db.md#string-db-version-get)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.