推荐 5 个你大概率没见过的免费 API ,一键获取数据!
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」
免费 API 一抓一大把,本篇带来几个你不知道,但又很风趣的 几个 API !
与市面上众多 API 不同的是,这些 API :
不必任何登录!不必任何 token !不必任何购买套餐!GET 请求一键获得数据!!
1. 猫和狗
- 猫:
每次点击 运转 都会获取一张喵星人相片
在浏览器中输入 api.thecatapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
- 狗
每次点击 运转 都会获取一张汪星人相片
在浏览器中输入 api.thedogapi.com/v1/images/s… 检查回来成果,包含图片 id、url、宽、高这些信息
与此同时呢,官方还给出:可选择不同种类的狗的接口:
看代码不难发现,
经过:api.thedogapi.com/v1/breeds 这个 API 能够拿到一切狗的分类信息;
然后经过:https://api.thedogapi.com/v1/images/search?include_breed=1&breed_id=' + breed_id
拿到图片;
还有更多用法,请自行在官网探究:thedogapi.com/#pricing
- 别的,再附加一个铲屎官 API : shibe.online/
2. 名言警句
Random Quote API 供给了一个用来获取随机名言的 API,能够用来测验文本处理才能。
Github 项目地址:github.com/lukePeavey/…
比方恣意获取一句名言:api.quotable.io/random
得到:
{
"_id":"UydvuUuGWjGo",
"content":"Wereadtheworldwrongandsaythatitdeceivesus.",
"author":"RabindranathTagore",
"tags":**[
"famous-quotes"
],
"authorSlug":"rabindranath-tagore",
"length":52,
"dateAdded":"2020-04-14",
"dateModified":"2020-04-14"
}
还有一些其它参数可供选用:
这个项目是英文;
中文名言警句 API 也有:
api.xygeng.cn/one
回来:
{
"code":200,
"data":**{
"id":800,
"tag":"动画",
"name":"佚名",
"origin":"《罪恶王冠》",
"content":"温顺挽救不了这个世界",
"created_at":"2019-01-23T07:58:03+00:00",
"updated_at":"2022-03-09T08:42:10+00:00"
},
"updateTime":1670569646019
}
3. 用户信息
Random User Generator:供给了一个用来生成随机用户数据的 API,能够用来测验用户办理功用。
官网:randomuser.me/
示例:
randomuser.me/api/
回来:
{
"results":**[
**{
"gender":"male",
"name":**{
"title":"Mr",
"first":"Liam",
"last":"Shelton"
},
"location":**{
"street":**{
"number":2481,
"name":"TheDrive"
},
"city":"Tipperary",
"state":"Offaly",
"country":"Ireland",
"postcode":37431,
"coordinates":**{
"latitude":"3.2413",
"longitude":"-168.0368"
},
"timezone":**{
"offset":"+4:30",
"description":"Kabul"
}
},
"email":"liam.shelton@example.com",
"login":**{
"uuid":"ada3deb4-99bf-42c4-acb8-c4653145f3e7",
"username":"redlion786",
"password":"sentnece",
"salt":"JKR7kVq4",
"md5":"efe8e8d3c78863c910625418fd6b212b",
"sha1":"22aabc3bccc7891ae62815164dcc5f020cc67b24",
"sha256":"0ef108e6a758db207f73ddc190189dac2e5a849206ad47dca7842d3d2f927c05"
},
"dob":**{
"date":"1962-05-03T23:20:34.105Z",
"age":60
},
"registered":**{
"date":"2010-07-10T14:38:40.859Z",
"age":12
},
"phone":"021-123-9294",
"cell":"081-143-0111",
"id":**{
"name":"PPS",
"value":"4570229T"
},
"picture":**{
"large":"<https://randomuser.me/api/portraits/men/33.jpg>",
"medium":"<https://www.6hu.cc/storage/2022/12/1671322557-e1829924711e691.jpg>",
"thumbnail":"<https://www.6hu.cc/storage/2022/12/1671322562-2d480c166bf0bae.jpg>"
},
"nat":"IE"
}
],
"info":**{
"seed":"eee03283804d179d",
"results":1,
"page":1,
"version":"1.4"
}
}
能够看到,回来的个人的信息十分全;
也支撑获取多人用户信息:randomuser.me/api/?result…
4. 讲个笑话
Chuck Norris API:供给了一系列关于 Chuck Norris 的笑话和引证,能够用来做一些风趣的测验。
官网:api.chucknorris.io/
这图配的挺搞笑的~~
API: api.chucknorris.io/jokes/rando…
回来:
{
"icon_url" : "",
"id" : "BiKqA8enQ9uUZ4VUsQjgUA",
"url" : "",
"value" : "Chuck Norris once gave someone 8 seconds to live. That person is now known as the Rage Guy. URL=http://www.youtube.com/watch?v=E29iOPSxF94&NR=1&feature=fvwp"
}
中文笑话 API : api.vvhan.com/api/joke
回来:
劫匪成功绑架一辆押运车。回去后,一新来劫匪说:“老迈咱们数一下抢了多少钱。”那老迈说:“没经历吧!这么多要数到啥时候,看看新闻不就知道了吗?”翻开电视一看,傻眼了:“今天产生一同劫匪绑架高考试卷事情!”
尽管,一点不好笑。。。。。。
5. 随机问答
Open Trivia Database API:能够用来获取各类的问题和答案,能够用来制造小游戏或许常识问答类运用。
官网:opentdb.com/api_config.…
你能够自在装备问题,然后一件生成:
比方:生成 3 个 关于 电影论题的简略难度、且有多选的问答,链接如下:
opentdb.com/api.php?amo…
{
"response_code":0,
"results":[
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whenwasthemovie'ConAir'released?",
"correct_answer":"1997",
"incorrect_answers":**[
"1985",
"1999",
"1990"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"Whatistheorangeandwhitebot'snamein"StarWars:TheForceAwakens"?",
"correct_answer":"BB-8",
"incorrect_answers":[
"BB-3",
"AA-A",
"R2-D2"
]
},
{
"category":"Entertainment:Film",
"type":"multiple",
"difficulty":"easy",
"question":"In"ALF",whatwasALF'srealname?",
"correct_answer":"GordonShumway",
"incorrect_answers":**[
"GordonMilipp",
"GordonFoster",
"GordonvonGam"
]
}
]
}
以上这些 api 直接能拿到调测运用,挺好的~~
OK,以上就是本篇共享,期望各位工友喜爱~ 欢迎点赞、保藏、谈论
我是安东尼 100 万人气前端技能博主 INFP 写作品格坚持 1000 日更文 ✍ 重视我,安东尼陪你一同度过绵长编程年月
加我微信 ATAR53,拉你入群,定时抽奖、粉丝福利多多。只学习结交、不推文卖课~
我的大众号:安东尼,在上面,不止编程,更多还有日子感悟~
我的 GithubPage: tuaran.github.io,它现已被保护 4 年+ 啦~
本文正在参与「金石方案 . 分割6万现金大奖」