接口文档
免跨域
随机图片

随机图片

随机从图库获取一张图片

GETrandom/image

接口地址

https://www.openapijs.com/api/random/image

curl

curl --location 'https://www.openapijs.com/api/random/image'

随机返回图库中的一张图片

响应示例

https://www.jwblog.cn/images/openapi/animal/animal003.jpg

POSTrandom/image

接口地址

https://www.openapijs.com/api/random/image

curl

curl --location --request POST 'https://www.openapijs.com/api/random/image'

返回特定数量随机图片数组

入参

{
  "length": 10
}

响应示例

{
  "data": [
    "https://www.jwblog.cn/images/openapi/animal/animal010.jpg",
    "https://www.jwblog.cn/images/openapi/animal/animal012.jpg",
    "https://www.jwblog.cn/images/openapi/dog/dog007.jpg",
    "https://www.jwblog.cn/images/openapi/animal/animal001.jpg",
    "https://www.jwblog.cn/images/openapi/animal/animal008.jpg",
    "https://www.jwblog.cn/images/openapi/dog/dog004.jpg",
    "https://www.jwblog.cn/images/openapi/animal/animal009.jpg",
    "https://www.jwblog.cn/images/openapi/animal/animal007.jpg",
    "https://www.jwblog.cn/images/openapi/animal/animal006.jpg",
    "https://www.jwblog.cn/images/openapi/dog/dog003.jpg"
  ],
  "msg": "success",
  "code": 200
}

Attributes

参数类型描述默认值
lengthnumber?返回随机数量图片数组10