Skip to content

chaolucky18/bing-pic-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bing图片 API

Bing API 接口文档

使用方法

安装node.js

npm install #安装依赖项

npm start #运行

特性

  • Bing原生返回值
  • 支持json格式
  • 支持xml格式
  • 支持自定义返回图片数量(max16)

接口

原生Bing返回接口

调用地址:/bing?{format,idx,n}

方式:GET

参数名 是否必要 示例参数 备注
format js、xml 默认返回json,若需要xml,则指定值为xml即可
idx 0 图片偏移天数,例如为1,则返回昨天的图片
n 2 返回图片数量,最大为16,最小为1

查看今日图片

访问地址:/showtoday

方式GET

无参数

Bing今日图片地址

调用地址: /today?{res, cus}

方式: GET

参数 是否必要 备注
id 输入分辨率的ID值,ID值查看下表即可,默认返回1920x1080
res 此值接受一个分辨率值,例如:1366x768。

注意:res值存在时,id参数失效。且res的值必须为下表中存在的值

  • 分辨率ID表
分辨率ID 分辨率
0 1920x1200
1 1920x1080
2 1366x768
3 1280x768
4 1240x768
5 800x600
6 800x480
7 640x480
8 400x240
9 320x240
10 768x1280
11 720x1280
12 480x800

About

Bing图片API Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published