The pages of a site in the connected Bing Webmaster Tools account that have inbound links, with the number of links Bing knows for each.
curl -X POST "https://api.primaryapi.com/v1/run/bing-webmaster.link_counts" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"siteUrl":"https://www.example.com/"}'{
"output": {
"found": true,
"data": {
"totalPages": 3,
"nextCursor": "eyJwIjoxfQ",
"links": [
{
"inboundLinks": 14,
"url": "https://www.example.com/page1.html"
}
]
}
},
"credits": 1
}Input and output
3 fields
https://www.example.com/.2 fields
Good to know
Runs as your connected Bing Webmaster Tools account. Needs the Read Bing Webmaster Tools capability.
Bing decides the page size. Page through with nextCursor.
A site the account has not verified is a miss with reason no_access.
A site without known inbound links is a miss with reason no_results. A miss is an answer, not an error.
The same key and credits work for every API.