Bingbot API

Here are some examples of how to query the Bingbot API:

curl -i https://bingbot.seoapi.com/v1/validate/?ip=157.55.39.32

It is also possible to use this API with Google Spreadsheets by adding &compact=1 to the API URL.

In the following example, the content of cell A1 contains the IP address to check and replaces in the =IMPORTDATA formula the __IPADDRESS__. Be sure to replace the cell ID when using this in Google Spreadsheets.

=IMPORTDATA(SUBSTITUTE(“https://bingbot.seoapi.com/v1/validate/?ip=__IPADDRESS__&compact=1″,”__IPADDRESS__”,A1))

It is also possible to use this API in your code with python or similar other languages.

import requests

r = requests.get(
‘https://bingbot.seoapi.com/v1/validate/?ip=157.55.39.32’
).json()
print(r.get(‘valid’, None))

Leave a Reply

Your email address will not be published.


*