Returns the list of websites registered with Bing Webmaster Tools. You’ll probably need this to populate a picklist for subsequent commands, since most commands rely on the siteUrl. There are no parameters (other than your API key).
Example:
https://ssl.bing.com/webmaster/api.svc/json/GetUserSites?apikey=...
This returns an array of values, under the node “d”. For each entry, there are “__type” values, which I believe are useless (“Site:#Microsoft.Bing.Webmaster.Api”) as well as values for:
- __type (you can ignore this)
- AuthenticationCode (as issued)
- DnsVerificationCode (as issued)
- IsVerified (True / False)
- Url (starting with http and ending with a /)
Typical response:
{"d":[ {"__type":"Site:#Microsoft.Bing.Webmaster.Api" ,"AuthenticationCode":"..." ,"DnsVerificationCode":"...analyticsedge.com" ,"IsVerified":true,"Url":"http:\/\/bing-webmaster-api.analyticsedge.com\/"}, {"__type":"Site:#Microsoft.Bing.Webmaster.Api" ,"AuthenticationCode":"..." ,"DnsVerificationCode":"...help.analyticsedge.com" ,"IsVerified":true,"Url":"http:\/\/help.analyticsedge.com\/"}, {"__type":"Site:#Microsoft.Bing.Webmaster.Api" ,"AuthenticationCode":"..." ,"DnsVerificationCode":"...analyticsedge.com" ,"IsVerified":true ,"Url":"http:\/\/www.analyticsedge.com\/"}]}