前言
在開發測試階段,或者是在寫Demo的時候,難免會用到一些測試數據,有時苦于沒有可用的接口,需要自己動手去寫,但是這樣大大降低了效率,前期我也找了一些開放的接口,這篇文章整理一下,以下接口完全免費,不用注冊,返回格式全是JSON,所有接口均可無限制使用,有需要的小伙伴可以進來看看。(ps:所有數據來源于網絡,如有侵權,請作者聯系刪除)
各類無次數限制的免費API接口整理,主要是聚合數據上和API Store上的一些,還有一些其他的。聚合數據提供30大類,160種以上基礎數據API服務,國內最大的基礎數據API服務,下面就羅列一些免費的各類API接口。手機號碼歸屬地API接口:
https://www.juhe.cn/docs/api/id/11歷史上的今天API接口:
https://www.juhe.cn/docs/api/id/63股票數據API接口:
https://www.juhe.cn/docs/api/id/21全國WIFI接口:
https://www.juhe.cn/docs/api/id/18星座運勢接口:
https://www.juhe.cn/docs/api/id/58黃金數據接口:
https://www.juhe.cn/docs/api/id/29語音識別接口:
https://www.juhe.cn/docs/api/id/134周公解夢接口:
https://www.juhe.cn/docs/api/id/64天氣預報API接口:
https://www.juhe.cn/docs/api/id/73身份證查詢API接口:
https://www.juhe.cn/docs/api/id/38笑話大全API接口:
https://www.juhe.cn/docs/api/id/95郵編查詢接口:
https://www.juhe.cn/docs/api/id/66老黃歷接口:
https://www.juhe.cn/docs/api/id/65網站安全檢測接口:
https://www.juhe.cn/docs/api/id/19手機固話來電顯示接口:
https://www.juhe.cn/docs/api/id/72基金財務數據接口:
https://www.juhe.cn/docs/api/id/28成語詞典接口:
https://www.juhe.cn/docs/api/id/157新聞頭條接口:
https://www.juhe.cn/docs/api/id/235IP地址接口:
https://www.juhe.cn/docs/api/id/1問答機器人接口:
https://www.juhe.cn/docs/api/id/112匯率API接口:
https://www.juhe.cn/docs/api/id/80電影票房接口:
https://www.juhe.cn/docs/api/id/44萬年歷API接口:
https://www.juhe.cn/docs/api/id/177NBA賽事接口:
https://www.juhe.cn/docs/api/id/92IP地址查詢
http://apistore.baidu.com/apiworks/servicedetail/114.html頻道新聞API_易源
http://apistore.baidu.com/apiworks/servicedetail/688.html微信熱門精選 :
http://apistore.baidu.com/apiworks/servicedetail/632.html天氣查詢
http://apistore.baidu.com/apiworks/servicedetail/112.html中國和世界天氣預報
http://apistore.baidu.com/apiworks/servicedetail/478.html股票查詢
http://apistore.baidu.com/apiworks/servicedetail/115.html身份證查詢:
http://apistore.baidu.com/apiworks/servicedetail/113.html美女圖片
http://apistore.baidu.com/apiworks/servicedetail/720.html音樂搜索
http://apistore.baidu.com/apiworks/servicedetail/1020.html圖靈機器人
http://apistore.baidu.com/apiworks/servicedetail/736.html匯率轉換
http://apistore.baidu.com/apiworks/servicedetail/119.html節假日
http://apistore.baidu.com/apiworks/servicedetail/1116.htmlpullword在線分詞服務
http://apistore.baidu.com/apiworks/servicedetail/143.html去哪兒網火車票
http://apistore.baidu.com/apiworks/servicedetail/697.html笑話大全
http://apistore.baidu.com/apiworks/servicedetail/864.html銀行卡查詢服務
http://apistore.baidu.com/apiworks/servicedetail/735.html語音合成
http://apistore.baidu.com/apiworks/servicedetail/867.html宅言API-動漫臺詞接口
http://apistore.baidu.com/apiworks/servicedetail/446.html去哪兒景點門票查詢
http://apistore.baidu.com/apiworks/servicedetail/140.html手機號碼歸屬地
http://apistore.baidu.com/apiworks/servicedetail/794.html體育新聞
http://apistore.baidu.com/apiworks/servicedetail/711.html手機歸屬地查詢
http://apistore.baidu.com/apiworks/servicedetail/709.html科技新聞
http://apistore.baidu.com/apiworks/servicedetail/1061.html空氣質量指數
http://apistore.baidu.com/apiworks/servicedetail/116.html天狗健康菜譜
http://apistore.baidu.com/apiworks/servicedetail/987.html熱門游記列表
http://apistore.baidu.com/apiworks/servicedetail/520.html天狗藥品查詢
http://apistore.baidu.com/apiworks/servicedetail/916.html漢字轉拼音
http://apistore.baidu.com/apiworks/servicedetail/1124.html國際新聞
http://apistore.baidu.com/apiworks/servicedetail/823.html彩票
http://apistore.baidu.com/apiworks/servicedetail/164.html微信精選
http://apistore.baidu.com/apiworks/servicedetail/863.html天狗健康資訊
http://apistore.baidu.com/apiworks/servicedetail/888.html興趣點檢索
http://apistore.baidu.com/apiworks/servicedetail/182.html用藥參考
http://apistore.baidu.com/apiworks/servicedetail/754.html天狗健康知識
http://apistore.baidu.com/apiworks/servicedetail/899.html奇聞趣事
http://apistore.baidu.com/apiworks/servicedetail/633.html花邊新聞
http://apistore.baidu.com/apiworks/servicedetail/768.html天狗醫院大全
http://apistore.baidu.com/apiworks/servicedetail/988.html生活健康
http://apistore.baidu.com/apiworks/servicedetail/989.html一些其他的API接口:豆瓣開放
https://developers.douban.com/wiki/?title=guide淘寶開放平臺
http://open.taobao.com/?spm=a219a.7395905.1.1.YdFDV6圖靈語音
http://www.tuling123.com/help/h_cent_andriodsdk.jhtml?nav=doc訊飛語音http://www.xfyun.cn/robots/solution馬化騰的微信開放平臺(對應的還有騰訊開放平臺)
https://open.weixin.qq.com/融云IM
https://developer.rongcloud.cn/signin?returnUrl=%2Fapp%2Fappkey%2FPv4vYQwaxSZdfpLX5AI%3D百度開發者中心
http://developer.baidu.com/人臉識別
http://www.faceplusplus.com.cn/高德地圖:
http://lbs.amap.com/蜻蜓:
FMhttp://open.qingting.fm
?
?
圖片類接口
美女圖片:
- https://www.apiopen.top/meituApi?page=1
- https://www.easy-mock.com/mock/5c36b5d2be0a1c39bfd57589/img/beauty/page=1
風景圖片:
- https://www.easy-mock.com/mock/5c36b5d2be0a1c39bfd57589/img/page=1
第一個接口每頁有20條數據,多少頁還不清楚,返回數據如圖
后兩個接口是我用Easy Mock寫的,第一個接口一共3頁,每一頁有10條數據,page表示頁碼。第二個接口兩頁,每一頁10條數據。返回數據如下圖
音樂類接口
- 音樂搜索:https://api.apiopen.top/searchMusic?name=好久不見
返回數據如圖
- 音樂詳情:https://api.apiopen.top/musicDetails?id=604392760
返回數據如圖
- 音樂排行榜:https://api.apiopen.top/musicRankings
該接口包含有熱歌榜,新歌榜,網絡歌曲榜,影視金曲榜,經典老歌榜以及歐美金曲榜。每個榜有4條數據,下面拿熱歌榜數據如圖
- 音樂排行榜詳情:https://api.apiopen.top/musicRankingsDetails?type=1
返回數據如圖
- 音樂電臺:https://api.apiopen.top/musicBroadcasting
此接口有公共頻道和音樂人頻道,返回數據如圖
- 音樂電臺詳情:https://api.apiopen.top/musicBroadcastingDetails?channelname=public_tuijian_spring
返回數據如圖
視頻類接口
- 視頻分類:https://api.apiopen.top/videoHomeTab
共有22種分類,每一類又有詳細的視頻,返回數據如圖
- 視頻分類:https://api.apiopen.top/videoCategory
和上面的類似,返回數據如圖
- 今日視頻推薦:https://api.apiopen.top/todayVideo
返回數據如圖
- 根據ID推薦視頻:https://api.apiopen.top/videoRecommend?id=127398
返回數據如圖
小說類接口
- 書籍分類:https://www.easy-mock.com/mock/5c3e90f39d8f6075a543c3cd/story/classify
用easymock寫的,只有分類,包括類型和圖片,共16中分類,返回數據如圖
- 小說搜索:https://www.apiopen.top/novelSearchApi?name=盜墓筆記
該接口提供的搜索功能只限小說名稱,返回數據如圖
- 小說詳情:https://www.apiopen.top/novelInfoApi?name=盜墓筆記
返回數據如圖
天氣類接口
- 搜索地方天氣:https://www.apiopen.top/weatherApi?city=成都
返回數據如圖
段子類接口
- 最新段子:https://api.apiopen.top/getJoke?page=1&count=2&type=video
返回數據如圖
- 通過ID查段子:https://api.apiopen.top/getSingleJoke?sid=28654780
返回數據如圖
- 隨機推薦熱門段子:https://www.apiopen.top/satinApi?type=1&page=1
返回數據如圖
- 隨機推薦熱門段子評論列表:https://www.apiopen.top/satinCommentApi?id=27610708&page=1
返回數據如圖
新聞類接口
- 實時新聞資訊:https://www.apiopen.top/journalismApi
返回數據如圖
古詩詞類接口
- 隨機一首詩詞推薦:https://api.apiopen.top/recommendPoetry
返回數據如圖
- 古詩詞作者搜索:https://api.apiopen.top/searchAuthors?name=李白
返回數據如圖
- 模糊搜索(詩詞名/作者):https://api.apiopen.top/likePoetry?name=鋤禾
返回數據如圖
- 獲取宋朝古詩詞:https://api.apiopen.top/getSongPoetry?page=1&count=20
每頁20條數據,返回數據如圖
- 獲取唐朝古詩詞:https://api.apiopen.top/getTangPoetry?page=1&count=20
每頁20條數據,返回數據如圖
個性網名接口
- 獲取個性網名:https://www.apiopen.top/femaleNameApi?page=1
每頁20條數據,返回數據如圖
總結
以上所有接口我都測試過的,基本能夠滿足大家的開發需求,如果你在做自己的小項目,需要用到一些數據,可以用這些接口做測試,但是最好不要將這些API用于正式項目,因為有一些不穩定的因素,后期再遇到免費好用的或是我自己寫的API還會添加上來,如果你也有可用的接口,可以私發給我,也加進來使其更加豐富。
注:本文絕大部分內容來自?有夢想的程序丶猿
?的簡書,對大佬表示感謝,文章地址?https://www.jianshu.com/p/e6f072839282