GetKeywordStats

This is the Keyword Research tool hidden inside Bing’s Webmaster Tools interface. The Bing keyword API returns the historical (weekly) broad-match and strict-match impressions for the specified keyword term. Use it for competitive research and to find new campaign keyword terms for your own use.

Parameters include:

q – a URL-encrypted version of the keyword term

countrylowercase ISO 3166 country code (e.g. be for Belgium)

language – IETF language tag (e.g. nl-BE for Dutch (Belgium)

Example:

https://ssl.bing.com/webmaster/api.svc/json/GetKeywordStats?q=dog%20beds&country=be&language=nl-BE&apikey=...

This returns an array of values, which are the weekly metrics starting with the oldest and ending with the most recent week’s impressions counts.

The results match the web interface where Impressions are the numbers shown. BroadImpressions used to be shown in the web interface when a “non-strict” option was checked.

Typical response:

{"d":[{"__type":"KeywordStats:#Microsoft.Bing.Webmaster.Api","BroadImpressions":1397,"Date":"\/Date(1720854000000)\/","Impressions":597,"Query":"dog beds"},{"__type":"KeywordStats:#Microsoft.Bing.Webmaster.Api","BroadImpressions":1354,"Date":"\/Date(1721458800000)\/","Impressions":606,"Query":"dog beds"},{"__type":"KeywordStats:#Microsoft.Bing.Webmaster.Api","BroadImpressions":1378,"Date":"\/Date(1722063600000)\/","Impressions":602,"Query":"dog beds"},
...{"__type":"KeywordStats:#Microsoft.Bing.Webmaster.Api","BroadImpressions":2133,"Date":"\/Date(1734768000000)\/","Impressions":941,"Query":"dog beds"},{"__type":"KeywordStats:#Microsoft.Bing.Webmaster.Api","BroadImpressions":1853,"Date":"\/Date(1735372800000)\/","Impressions":734,"Query":"dog beds"},{"__type":"KeywordStats:#Microsoft.Bing.Webmaster.Api","BroadImpressions":1981,"Date":"\/Date(1735977600000)\/","Impressions":808,"Query":"dog beds"}]}

If there is insufficient data (or the server doesn’t feel like working hard), an empty array will be returned. This echoes the web interface, where the trend line will not appear.


 P.S. I have a series of inexpensive products for Microsoft Excel and Google Sheets that make it easy to download this data (no programming required).