Clicks, impressions and average positions on Bing for the top pages of a site in the connected Bing Webmaster Tools account.
curl -X POST "https://api.primaryapi.com/v1/run/bing-webmaster.page_stats" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"siteUrl":"https://www.example.com/","limit":2}'{
"output": {
"found": true,
"data": {
"nextCursor": null,
"pages": [
{
"clicks": 15,
"impressions": 100,
"avgClickPosition": 18,
"avgImpressionPosition": 17, …
}, …
]
}
},
"credits": 1
}Input and output
6 fields
https://www.example.com/.2.6 fields
Good to know
Needs the Read Bing Webmaster Tools capability.
Runs as your connected Bing Webmaster Tools account (Bing sign-in or a pasted Bing API key).
Bing returns the whole history it keeps for the site. startDate/endDate narrow it and nextCursor pages through it.
Dates are calendar days (YYYY-MM-DD).
A site the account has not verified is a miss with reason no_access.
Bing refreshes page statistics weekly.
The same key and credits work for every API.