I hope you could help me, I am trying to use the Bing Image Search API, and everything is fine so far, there is only one thing that I do not understand, contentURL is the redirect where the image URL from the source web should be The site, at least, is what the documentation says (and the previous version of the search). I tried with Image Trending, and there contentURL, as it should there. Thus, only for image search a redirect is issued:
contentURL from the first jSON Response object
"contentUrl": "http://www.bing.com/cr?IG=9BF011209A7349ACAE17F77A728C2EBB&CID=26ACC54E26896146357ACC8E27B86066&rd=1&h=mgBegiuCUD3JUTxAAdzTjPyARNluGjEKSz9UCvuA2oM&v=1&r=http%3a%2f%2f2.bp.blogspot.com%2f-hqcXd4UtCrE%2fTqlVvAt7XJI%2fAAAAAAAAB54%2fw6WemH9gecU%2fs1600%2fcar%2bwallpapers%2bhonda%2b194.jpg&p=DevEx,5008.1",
This is my request:
https:
I used the Open API Test Console to make sure there is nothing wrong with my code and the results are the same. Has anyone come across this or know how to fix it? I need the original image url in this case.
PS. I can cut the line and take the main address, but I don’t think it’s a good idea, because if this is a mistake or they change it, it will not work, since there is a way to get the source URL of the image?
source
share