获取 Bing 近七日日图
GET
/bing/history公开访问
访问类别:匿名 API,可携带 Token 使用独立额度
请求参数
mktquery- Bing 日图地区
- string · Bing 日图地区 · 默认值:"zh-CN" · 可选:zh-CN、en-US、ja-JP、en-IN、pt-BR、fr-FR、de-DE、en-CA、en-GB、it-IT、es-ES、fr-CA
响应
application/json
{
"type": "object",
"properties": {
"market": {
"type": "string",
"enum": [
"zh-CN",
"en-US",
"ja-JP",
"en-IN",
"pt-BR",
"fr-FR",
"de-DE",
"en-CA",
"en-GB",
"it-IT",
"es-ES",
"fr-CA"
]
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"date": {
"type": "string",
"format": "date"
},
"endDate": {
"type": "string",
"format": "date"
},
"title": {
"type": "string"
},
"copyright": {
"type": "string"
},
"copyrightUrl": {
"type": "string",
"format": "uri"
},
"url": {
"type": "string",
"format": "uri"
},
"thumbnailUrl": {
"type": "string",
"format": "uri"
}
},
"required": [
"date",
"endDate",
"title",
"copyright",
"copyrightUrl",
"url",
"thumbnailUrl"
]
}
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"expiresAt": {
"type": "string",
"format": "date-time"
}
},
"required": [
"market",
"items",
"updatedAt",
"expiresAt"
]
}application/json
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string",
"enum": [
"body",
"query",
"path",
"header"
]
},
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"location",
"field",
"code",
"message"
]
}
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"error"
]
}application/json
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string",
"enum": [
"body",
"query",
"path",
"header"
]
},
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"location",
"field",
"code",
"message"
]
}
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"error"
]
}application/json
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string",
"enum": [
"body",
"query",
"path",
"header"
]
},
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"location",
"field",
"code",
"message"
]
}
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"error"
]
}application/json
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string",
"enum": [
"body",
"query",
"path",
"header"
]
},
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"location",
"field",
"code",
"message"
]
}
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"error"
]
}application/json
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string",
"enum": [
"body",
"query",
"path",
"header"
]
},
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"location",
"field",
"code",
"message"
]
}
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"error"
]
}application/json
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string",
"enum": [
"body",
"query",
"path",
"header"
]
},
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"location",
"field",
"code",
"message"
]
}
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"error"
]
}application/json
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string",
"enum": [
"body",
"query",
"path",
"header"
]
},
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"location",
"field",
"code",
"message"
]
}
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"error"
]
}application/json
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string",
"enum": [
"body",
"query",
"path",
"header"
]
},
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"location",
"field",
"code",
"message"
]
}
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"error"
]
}application/json
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string",
"enum": [
"body",
"query",
"path",
"header"
]
},
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"location",
"field",
"code",
"message"
]
}
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"error"
]
}application/json
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string",
"enum": [
"body",
"query",
"path",
"header"
]
},
"field": {
"type": "string"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"location",
"field",
"code",
"message"
]
}
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"error"
]
}响应示例
运行命令前,将环境变量 BASE_URL 设置为站点地址。
成功响应
curl --silent --show-error "$BASE_URL"'/bing/history?mkt=zh-CN'
HTTP 200
content-length: 3530
content-type: application/json
cache-control: public, max-age=300
{
"market": "zh-CN",
"items": [
{
"date": "2026-11-14",
"endDate": "2026-11-15",
"title": "霜染枝叶",
"copyright": "覆霜的红叶杜鹃 (© avoferten/Shutterstock)",
"copyrightUrl": "https://www.bing.com/search?q=%E6%9D%9C%E9%B9%83%E8%8A%B1&form=hpcapt&mkt=zh-cn",
"url": "https://www.bing.com/th?id=OHR.FirstFrost_ZH-CN2219029557_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp",
"thumbnailUrl": "https://www.bing.com/th?id=OHR.FirstFrost_ZH-CN2219029557_400x240.jpg"
},
{
"date": "2026-11-13",
"endDate": "2026-11-14",
"title": "唯有向上发展",
"copyright": "中国香港维多利亚港 (© Juan Romero/Cavan Images)",
"copyrightUrl": "https://www.bing.com/search?q=%E4%B8%AD%E5%9B%BD%E9%A6%99%E6%B8%AF%E7%BB%B4%E5%A4%9A%E5%88%A9%E4%BA%9A%E6%B8%AF&form=hpcapt&mkt=zh-cn",
"url": "https://www.bing.com/th?id=OHR.BlueHK_ZH-CN1382345392_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp",
"thumbnailUrl": "https://www.bing.com/th?id=OHR.BlueHK_ZH-CN1382345392_400x240.jpg"
},
{
"date": "2026-11-12",
"endDate": "2026-11-13",
"title": "冰下秘境",
"copyright": "亚伯拉罕湖,艾伯塔省,加拿大 (© Guang Cao/Getty Images)",
"copyrightUrl": "https://www.bing.com/search?q=%E8%89%BE%E4%BC%AF%E5%A1%94%E7%9C%81%E4%BA%9A%E4%BC%AF%E6%8B%89%E7%BD%95%E6%B9%96&form=hpcapt&mkt=zh-cn",
"url": "https://www.bing.com/th?id=OHR.AbrahamCanada_ZH-CN0344365912_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp",
"thumbnailUrl": "https://www.bing.com/th?id=OHR.AbrahamCanada_ZH-CN0344365912_400x240.jpg"
},
{
"date": "2026-11-11",
"endDate": "2026-11-12",
"title": "没有建筑师的建筑杰作",
"copyright": "北窗,拱门国家公园,莫阿布,犹他州,美国 (© lightphoto/Getty Images)",
"copyrightUrl": "https://www.bing.com/search?q=%E6%8B%B1%E9%97%A8%E5%9B%BD%E5%AE%B6%E5%85%AC%E5%9B%AD&form=hpcapt&mkt=zh-cn",
"url": "https://www.bing.com/th?id=OHR.NorthWindow_ZH-CN6734579353_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp",
"thumbnailUrl": "https://www.bing.com/th?id=OHR.NorthWindow_ZH-CN6734579353_400x240.jpg"
},
{
"date": "2026-11-10",
"endDate": "2026-11-11",
"title": "奇妙纷呈的森林",
"copyright": "大西洋森林,巴西 (© FG Trade/Getty Images)",
"copyrightUrl": "https://www.bing.com/search?q=%E5%B7%B4%E8%A5%BF%E5%A4%A7%E8%A5%BF%E6%B4%8B%E6%A3%AE%E6%9E%97&form=hpcapt&mkt=zh-cn",
"url": "https://www.bing.com/th?id=OHR.Atlantica_ZH-CN6593995386_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp",
"thumbnailUrl": "https://www.bing.com/th?id=OHR.Atlantica_ZH-CN6593995386_400x240.jpg"
},
{
"date": "2026-11-09",
"endDate": "2026-11-10",
"title": "惬意放松,尽享海岛时光",
"copyright": "玫瑰岛航拍图,巴哈马 (© Abstract Aerial Art/Getty Images)",
"copyrightUrl": "https://www.bing.com/search?q=%E5%B7%B4%E5%93%88%E9%A9%AC%E7%8E%AB%E7%91%B0%E5%B2%9B&form=hpcapt&mkt=zh-cn",
"url": "https://www.bing.com/th?id=OHR.RoseIsland_ZH-CN6477140814_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp",
"thumbnailUrl": "https://www.bing.com/th?id=OHR.RoseIsland_ZH-CN6477140814_400x240.jpg"
},
{
"date": "2026-11-08",
"endDate": "2026-11-09",
"title": "艺术与韵律交汇之地",
"copyright": "特里亚纳历史街区,塞维利亚,西班牙 (© Andrzej Rostek/Getty Images)",
"copyrightUrl": "https://www.bing.com/search?q=%E8%A5%BF%E7%8F%AD%E7%89%99%E5%A1%9E%E7%BB%B4%E5%88%A9%E4%BA%9A&form=hpcapt&mkt=zh-cn",
"url": "https://www.bing.com/th?id=OHR.TrianaSpain_ZH-CN6329291776_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp",
"thumbnailUrl": "https://www.bing.com/th?id=OHR.TrianaSpain_ZH-CN6329291776_400x240.jpg"
}
],
"updatedAt": "2026-11-15T09:23:07.871Z",
"expiresAt": "2026-11-16T11:23:07.871Z"
}错误示例
curl --silent --show-error "$BASE_URL"'/bing/history?mkt=invalid'
HTTP 400
content-length: 246
content-type: application/json
cache-control: no-store
{
"error": {
"code": "INVALID_INPUT",
"message": "参数无效",
"issues": [
{
"location": "query",
"field": "mkt",
"code": "invalid_value",
"message": "允许值:zh-CN、en-US、ja-JP、en-IN、pt-BR、fr-FR、de-DE、en-CA、en-GB、it-IT、es-ES、fr-CA"
}
]
}
}在线调试
curl -X GET 'https://oit.sh/bing/history'
响应
等待发送请求