https://www.bing.com/HPImageArchive.aspx?format=js&idx=0&n=10
https://www.bing.com/HPImageArchive.aspx
? format = js
& idx = 0
& n = 10
& mkt = en-US
- format: js, xml, rss - format of the list of images.
- idx - index of the image (zero based: 0, 1, 2, ...)
- n - how many images u want to (integer > 0, 8 at most).
- mkt - location (en-US, en-GB, ...). Does not matter.
As a JSON with a description of 8 last images. See next example
{
"images": [
{
"startdate": "20240529",
"fullstartdate": "202405290700",
"enddate": "20240530",
"url": "/th?id=OHR.MullOtter_ROW8840823080_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp",
"urlbase": "/th?id=OHR.MullOtter_ROW8840823080",
"copyright": "Eurasian otters, Loch Spelve, Isle of Mull, Scotland (© Neil Henderson/Alamy)",
"copyrightlink": "https://www.bing.com/search?q=Eurasian+otter&form=hpcapt",
"title": "Info",
"quiz": "/search?q=Bing+homepage+quiz&filters=WQOskey:%22HPQuiz_20240529_MullOtter%22&FORM=HPQUIZ",
"wp": true,
"hsh": "f716bb42354f383c582340b35e1080f3",
"drk": 1,
"top": 1,
"bot": 1,
"hs": []
},
// ...
],
"tooltips": {
"loading": "Loading...",
"previous": "Previous image",
"next": "Next image",
"walle": "This image is not available to download as wallpaper.",
"walls": "Download this image. Use of this image is restricted to wallpaper only."
}
}
Valuable fields:
- startdate - publish date.
20240529
= "yyyyMMdd" - fullstartdate - publish date and time but time is always seven o'clock.
202405290700
= "yyyyMMddHHmm" - urlbase - relatve url to the image.
- copyright - contains description and copyrights of the picture at once.
What's happening in the picture (© Some One/Anywhere)
"urlbase": "/th?id=OHR.MullOtter_ROW8840823080",
image link =
https://www.bing.com
+{urlbase}
+_{resolution}.jpg
Resolutions:
- HD:
1280x720
- FullHD:
1920x1080
- UltraHD (4K):
UHD
Example: https://www.bing.com/th?id=OHR.MullOtter_ROW8840823080_UHD.jpg
- Is there a way to get Bing's photo of the day? // StackOverflow