Daily clicks and impressions on Bing for a site in the connected Bing Webmaster Tools account (all Bing verticals).
curl -X POST "https://api.primaryapi.com/v1/run/bing-webmaster.rank_and_traffic_stats" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"siteUrl":"https://www.example.com/"}'{
"output": {
"found": true,
"data": {
"nextCursor": null,
"days": [
{
"clicks": 15,
"impressions": 100,
"date": "2011-09-16"
}, …
]
}
},
"credits": 1
}Input and output
6 fields
https://www.example.com/.3 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 traffic daily. It counts Web, Chat, News, Images, Videos and Knowledge Panel from March 24, 2023 on.
The same key and credits work for every API.