Bing Submission use case.

In addition to described earlier IndexNow method to submit your URLs to Microsoft Bing search engine, you can also use Bing Submission API method. IndexNow is positioned modern and more advanced method, but Submission API from my point of view more stable and reliabla. For example sometimes you need to adjust sleep timer in a loop for IndexNow to be sure that all URLs to be delivered correctly, Submission API more stable according to my expirience.

Microsoft Bing Submission API bot with Python.

The Python script below delivers URLs one-by-one in a loop, you can inprove it to change JSON payload from individaul "url" to list using "urlList" parameter. Before trying adjusting script for your need, don't forget to get the API key from Bing Webmaster Tools (the key in example below is changed).

How does the script works in simple words:

- Libraries import.
- Reading actual sitemap and creating dataframe with all URLs.
- Converting DF to list.
- Slicing the list to adjust it's size to correspond your quota if needed.
- Defining submission function - use your key !!!
- Magic: using FOR loop sending your URLs to BING.

# BING Submission API

import advertools as adv
import pandas as pd
import requests
import json
import time

# Constructing JSON payload from sitemap
sitemap_urls = adv.sitemap_to_df("")
url0 = sitemap_urls["loc"].to_list()

# URLs submission function
def get_(data):
    headers={'User-Agent':'curl/7.12.1 ',
        r ='',json=data)
    except Exception.e:

# URLs submission in cycle
for i in url:

                            "siteUrl": "",
                            "url": i

print('Thats all, folks !!!') 

If everything was OK, enjoy 200 response from BING.

Submission API output.

See also related topics: