Receiving Truncated Display URLs in Bing Web Search API Response for long URLs

Category: project oxford


Raghu Veer D on Mon, 19 Sep 2016 15:50:26


I had recently integrated the Free version of the Web Search API of Bing in one of our applications. I did notice truncated URLs whenever long URLs are in the API response for the key displayUrl.

The following is taken from the Bing API response, for a keyword,


[7] => Array
            [@type] => s:WebPage
            [@id] => #WebPages.7
            [s:name] => Spotify CEO pens blogpost on Taylor Swift and the state of ...
            [s:url] =>,5192.1
            [s:thumbnailUrl] =>
            [displayUrl] =>
            [snippet] => Last week, Taylor Swift abruptly removed all of her music from Spotify, a significant move considering that Swift's latest album 1989 has been perched at the top of ...
            [dateLastCrawled] => 2016-08-31T17:05:00

Please observe, displayUrl value is truncated here,

while, actual url is,

Note: This actual url can be obtained by triggering the value of s:url i.e,,5192.1


Some References:

I am asking this question after making sure that the Bing API Response for Web Search API is giving truncated URLs for long URL Scenario (value of displayUrl key),

please help with getting the complete URL for the displayUrl value,

thank you


Patrick Thornquist on Wed, 09 Nov 2016 23:48:20


This is by design where the URL is meant for display purposes only and is not well formed.