Accessing Bing Webmaster Tools API using cURL

⚠️ Note (Updated November 2025):

Microsoft now recommends using IndexNow as the primary method for real-time URL submission to Bing and participating search engines.

IndexNow is simpler to implement, widely supported by many CMS platforms and plugins, and helps ensure your most important content is indexed faster.

The Adaptive URL Submission API described below remains supported for advanced use cases and custom platform integrations. The examples below show how to test Bing's Adaptive URL Submission API using cURL, which currently remains supported for programmatic URL submission. 
----------------------------------------------------------------------------------------------------------------------------------

Thank you webmasters for effectively using the Adaptive URL solution to notify bingbot about your website’s most fresh and relevant content. Did you know you don’t have to use the Bing Webmaster Tools portal to submit URLs?

Bing Webmaster Tools exposes programmatic access to its APIs for webmasters to integrate their workflows. Here is an example using the popular command line utility cURL (for testing only) that shows how easy  it is to integrate the Submit URL single and Submit URL batch API end points. You can use Get url submission quota API to check remaining daily quota for your account.

Bing API can be integrated and called by all modern languages (C#, Python, PHP…), Use cURL only to quickly test or prototype API requests. For production or ongoing integration, use a server-side script or application in your preferred language to handle authentication, batching, or error handling. 

When you try the examples below, be sure to replace API_KEY with your API key string obtained from Bing Webmaster Tools > Webmaster API > Generate. Refer easy set-up guide for Bing’s Adaptive URL submission API for more details.
 

Submitting new URLs – Single

curl -X POST "https://ssl.bing.com/webmaster/api.svc/json/SubmitUrl?apikey=API_KEY" 
-H "Content-Type: application/json" 
-H "charset: utf-8" 
-d '{"siteUrl":"https://www.example.com", "url": "https://www.example.com/about"}'

Response:
{"d": null}

Submitting new URLs – Batch

curl -X POST "https://ssl.bing.com/webmaster/api.svc/json/SubmitUrlBatch?apikey=API_KEY" 
-H "Content-Type: application/json" 
-H "charset: utf-8" 
-d '{"siteUrl":"https://www.example.com", "urlList":["https://www.example.com/about", "https://www.example.com/projects"]}'

Response:
{"d":null}

Check remaining API Quota

curl "https://ssl.bing.com/webmaster/api.svc/json/GetUrlSubmissionQuota?siteUrl=https://www.example.com&apikey=API_KEY"

Response:
{
"d": 
{"__type": "UrlSubmissionQuota:#Microsoft.Bing.Webmaster.Api",
"DailyQuota": 973,
"MonthlyQuota": 10973
}}
For faster cross engine indexing, consider adopting IndexNow. Please reach out to Bing webmaster tools support if you face any issues. 

Thanks,
Bing Webmaster Tools team