原文网址:https://www.youyong.top/article/11599fefaf5b6
今天找到了一个 提供 与狗相关的API 的网站,提供狗的品种(包含子品种)、狗的图片。支持通过品种、子品种获取所有图片以及随机图片。
原文网址:https://www.youyong.top/article/11599fefaf5b6
今天找到了一个 提供 与狗相关的API 的网站,提供狗的品种(包含子品种)、狗的图片。支持通过品种、子品种获取所有图片以及随机图片。
原文网址:https://www.youyong.top/article/11599fefaf5b6
网页是英文的,下面介绍一下他的API:
所有
1:获取所有种类(包含子种类)
(List all breed names including sub breeds.)
路径: /api/breeds/list/all
测试:JSON
2:从所有种类中随机获取一张图片
(Returns a random dog image from all the breed)
路径:/api/breeds/image/random
种类相关
3:获取一级种类
(Returns an array of all the master breeds)
路径:/api/breeds/list
测试:JSON
4:获取某个种类的所有图片
(Returns an array of all the images from the breed)
路径:/api/breed/{breed name}/images
5:从某个种类中随机获取一张图片
(Returns a random dog image from the breed)
路径:/api/breed/{breed name}/images/random
子种类
6:获取某个种类下的 子种类
(List all sub-breeds)
路径:/api/breed/{breed name}/list
测试: JSON
7:获取某个子种类下的所有图片
(Returns an array of all the images from the breed)
路径:/api/breed/{breed name}/{sub-breed name}/images
测试: Afghan Hounds: JSON | Example
8:从某个子种类下随机获取一张图片
(Returns a random dog image from the sub-breed)
路径: /api/breed/{breed name}/{sub-breed name}/images/random
测试: Afghan Hound: JSON | Example
开脑洞
有了这Api能干点啥那?
1:搞个简单的 狗百科, 点击种类名称, 进入百科介绍
2:可以弄个 认狗 的App Demo, 随机一张图片,猜猜是什么品种?
3:搞人工智能的同学,不知拿这些图片,可否训练让他识别狗的品种
。。。
脑洞留言啊!
作者声明:本篇文章系本人原创,欢迎分享,但未经许可,谢绝转载。
共 0 条留言
iPhone X 跌破发行价,苏宁200亿入股恒大 | 财经日日评
资深黄牛现身说法:iPhone X价格秒变不停,就像炒股一样
网站请求日志中的 article-expand tooltip_arrow article-contract 是什么
网络请求日志中的 apple-touch-icon.png 是什么?
又拍云上传图片503 put file capture error | put file to fs error
链接里的isappinstalled=0与isappinstalled=1有什么区别?|微信分享
手机扫一扫
分享文章