MarkdownCopies this page as Markdown, ready to paste into an AI assistant.
Bing Webmaster Tools API
10 Bing Webmaster Tools endpoints behind one key, priced in credits per call and routed to the cheapest healthy source.
On this page
Search & SEO · 10 endpoints · from 1 credit per call
Endpoints
- POSTBing Webmaster Crawl Stats
/v1/run/bing-webmaster.crawl_statsDaily Bingbot crawl figures for a site in the connected Bing Webmaster Tools account: pages crawled and indexed, status codes, robots.txt blocks and errors.1 creditper call - POSTBing Webmaster Inbound Links
/v1/run/bing-webmaster.link_countsThe pages of a site in the connected Bing Webmaster Tools account that have inbound links, with the number of links Bing knows for each.1 creditper call - POSTBing Webmaster Page Stats
/v1/run/bing-webmaster.page_statsClicks, impressions and average positions on Bing for the top pages of a site in the connected Bing Webmaster Tools account.1 creditper call - POSTBing Webmaster Query Stats
/v1/run/bing-webmaster.query_statsClicks, impressions and average positions on Bing for the top search queries of a site in the connected Bing Webmaster Tools account.1 creditper call - POSTBing Webmaster Sites
/v1/run/bing-webmaster.sitesLists the sites in the connected Bing Webmaster Tools account and whether each one is verified.1 creditper call - POSTBing Webmaster Submit Sitemap
/v1/run/bing-webmaster.submit_sitemapSubmits a sitemap (or RSS / Atom feed) of a site to Bing (a change made with the connected Bing Webmaster Tools account).1 creditper call - POSTBing Webmaster Submit URL
/v1/run/bing-webmaster.submit_urlSubmits one URL of a site to Bing for crawling and indexing (a change made with the connected Bing Webmaster Tools account; uses its URL quota).1 creditper call - POSTBing Webmaster Submit URLs
/v1/run/bing-webmaster.submit_url_batchSubmits up to 500 URLs of a site to Bing for crawling and indexing in one call (a change made with the connected Bing Webmaster Tools account; uses its URL quota).1 creditper call - POSTBing Webmaster Traffic Stats
/v1/run/bing-webmaster.rank_and_traffic_statsDaily clicks and impressions on Bing for a site in the connected Bing Webmaster Tools account (all Bing verticals).1 creditper call - POSTBing Webmaster URL Submission Quota
/v1/run/bing-webmaster.url_submission_quotaHow many URLs a site in the connected Bing Webmaster Tools account can still submit to Bing today and this month.1 creditper call
Calling them
Every endpoint on this page is one POST to https://api.primaryapi.com/v1/run/{sku} with your API key and a JSON body. Responses share one envelope, so code written for one endpoint handles the others. For example, bing-webmaster.crawl_stats:
curl -sS -X POST "https://api.primaryapi.com/v1/run/bing-webmaster.crawl_stats" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"siteUrl":"https://www.example.com/"}'const res = await fetch('https://api.primaryapi.com/v1/run/bing-webmaster.crawl_stats', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.PRIMARYAPI_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
siteUrl: 'https://www.example.com/',
}),
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.error}`);
// found:false is a successful answer ("does not exist"), not an error
console.log(body.output.found ? body.output.data : body.output.reason, body.credits);import os
import requests
res = requests.post(
"https://api.primaryapi.com/v1/run/bing-webmaster.crawl_stats",
headers={"Authorization": f"Bearer {os.environ['PRIMARYAPI_API_KEY']}"},
json={
"siteUrl": "https://www.example.com/",
},
timeout=60,
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['code']}: {body['error']}")
# found=False is a successful answer ("does not exist"), not an error
print(body["output"]["data"] if body["output"]["found"] else body["output"]["reason"], body["credits"])New to PrimaryAPI? Start with the Quickstart, then read Making requests.