Bing Image Search API v5返回的结果的contentUrl未编码?

时间:2018-09-23 22:46:39

标签: bing-search

使用Bing Image Search API v5时,我们发现响应结果的contentUrl不再是URL编码的。现在的响应结果如下: { "name": "40 Abstract Art Design Ideas", "datePublished": "2015-01-31T06:24:00", "homePageUrl": null, "contentSize": "4863519 B", "hostPageDisplayUrl": "thewowstyle.com/40-abstract-art-design-ideas", "width": 2272, "height": 1728, "thumbnail": { "width": 474, "height": 360 }, "imageInsightsToken": "ccid_fkRx2qIk*mid_0BFDFBCA5D5AFE9B7DAF481EBE7B685308CD019A*simid_608013783707681643*thid_OIP.fkRx2qIk3kv38xGAEGTu0gHaFo", "insightsSourcesSummary": null, "imageId": "0BFDFBCA5D5AFE9B7DAF481EBE7B685308CD019A", "accentColor": "B12A1A", "webSearchUrl": "https://www.bing.com/images/search?view=detailv2&FORM=OIIRPO&q=abstract+art&id=0BFDFBCA5D5AFE9B7DAF481EBE7B685308CD019A&simid=608013783707681643", "thumbnailUrl": "https://tse2.mm.bing.net/th?id=OIP.fkRx2qIk3kv38xGAEGTu0gHaFo&pid=Api", "encodingFormat": "jpeg", "contentUrl": "http://thewowstyle.com/wp-content/uploads/2015/01/Abstract-Art-masterpiece.jpg" },

在此处引起的差异:“ contentUrl”:“ http://thewowstyle.com/wp-content/uploads/2015/01/Abstract-Art-masterpiece.jpg,但我们过去常常收到像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

这样的编码后的contentUrl。

Bing Image Search API v5 - contentURL Redirect

有关

那么有没有人遇到像我一样的事情? API是否有更新?每次获取重定向网址该怎么办?

0 个答案:

没有答案