擷取Bing每日圖片API介面

來源:互聯網
上載者:User

標籤:net   浮水印   archive   board   參數   瞭解   tip   資訊   mkt   

bing圖片每日更新,對於這一點感覺挺不錯的,如果能夠把bing每日圖片作為部落格背景是不是很不錯呢?首先我們進入Bing首頁,會發現自動轉到中國版。不過這沒關係,中國版更符合國情,速度也比國際版快一些。

下面分享bing圖片介面api,通過抓包,可以發現

http://www.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1

這裡可以擷取到無浮水印的圖片。

抓包顯示結果:

 

{"images":[{"startdate":"20160613","fullstartdate":"201606131600","enddate":"20160614","url":"http://s.cn.bing.net/az/hprichbg/rb/BomboHeadland_ZH-CN9339065341_1920x1080.jpg","urlbase":"/az/hprichbg/rb/BomboHeadland_ZH-CN9339065341","copyright":"凱馬Bombo Headland,新南威爾士州,澳大利亞 (? Attakorn Bk/Getty Images)","copyrightlink":"http://www.bing.com/search?q=%E5%87%AF%E9%A9%AC&form=hpcapt&mkt=zh-cn","wp":true,"hsh":"8b50b348242b793c63102d33c2ca5eb7","drk":1,"top":1,"bot":1,"hs":[],"msg":[{"title":"今日圖片故事","link":"http://www.bing.com/search?q=%E5%87%AF%E9%A9%AC&FORM=pgbar1&mkt=zh-cn","text":"凱馬"}]}],"tooltips":{"loading":"正在載入...","previous":"上一個映像","next":"下一個映像","walle":"此圖片不能下載用作壁紙。","walls":"下載今日美圖。僅限用作案頭壁紙。"}}

我們從中提取圖片連結,url地址:
http://s.cn.bing.net/az/hprichbg/rb/BomboHeadland_ZH-CN9339065341_1920x1080.jpg

如果我們想瀏覽昨天,前天的圖片呢?回到最初的網址上,http://cn.bing.com/HPImageArchive.aspx?idx=0&n=1 在這裡,更換 idx= 這個參數就可以了。 如 http://cn.bing.com/HPImageArchive.aspx?idx=1&n=1 將要得到昨天的圖片http://cn.bing.com/HPImageArchive.aspx?idx=2&n=1得到前天的圖片

官網bing每日圖片api知道教程如下,如果想瞭解更多內容點擊進入——bing圖片api用法

1. 訪問 https://api.ioliu.cn/bing/ , 返回bing每日最新背景圖, 選擇性參數[w,h]2. 訪問 https://api.ioliu.cn/bing/?d=n (n>=0), 返回以當日為起點第n天前的壁紙, 選擇性參數[w,h]3. 訪問 https://api.ioliu.cn/bing/json/ , 返回bing每日最新壁紙的相關(介紹、圖片地址等)資訊(json格式), 選擇性參數[callback].4. 訪問 https://api.ioliu.cn/bing/rand/ , 返回隨機圖片, 選擇性參數[w,h]5. 訪問 https://api.ioliu.cn/bing/blur/ , 返回高斯模糊圖片, 選擇性參數[d,w,h]帶[w,h]用法: https://api.ioliu.cn/bing/rand/?w=1920&h=1200目前已知圖片解析度1920x1200   1920x1080    1366x768   1280x768    1024x768    800x600       800x480   768x1280  720x1280    640x480       480x800   400x240     320x240     240x320 

原網址:http://www.eso360.cn/html/2408963950.html

擷取Bing每日圖片API介面

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.