Lists the sites in the connected Bing Webmaster Tools account and whether each one is verified.
curl -X POST "https://api.primaryapi.com/v1/run/bing-webmaster.sites" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'{
"output": {
"found": true,
"data": {
"nextCursor": null,
"sites": [
{
"verified": true,
"authenticationCode": "258CAD36B9EEE22F1CFDEB4C239D26BB",
"dnsVerificationCode": "258cad36b9eee22f1cfdeb4c239d26bb.ww…",
"siteUrl": "https://www.example.com/"
}, …
]
}
},
"credits": 1
}Input and output
1 field
4 fields
Good to know
Runs as your connected Bing Webmaster Tools account (Bing sign-in or a pasted Bing API key).
Pass siteUrl exactly as listed to the other bing-webmaster APIs. Only verified sites have data.
An account with no sites is a miss with reason no_results. A miss is an answer, not an error.
The same key and credits work for every API.