江苏科技大学开源社区

该项目收集一些可用的API,方便学生使用


百度FM 获取歌词

<p><strong>简要描述:</strong> </p> <ul> <li>获取歌词</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>http://api.jirengu.com/fm/getLyric.php或者 https://jirenguapi.applinzi.com/fm/getLyric.php</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST和GET均可</li> </ul> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">sid</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>歌曲id</td> </tr> </tbody> </table> <p><strong>使用示例</strong> 范例 <code>http://jirenguapi.applinzi.com/fm/getLyric.php?&amp;sid=1451876</code></p> <p><code>https://jirenguapi.applinzi.com/fm/getLyric.php?&amp;sid=1451876</code></p> <p><code>http://jirenguapi.applinzi.com/fm/getLyric.php?sid=1451876&amp;callback=getLyric</code></p> <pre><code> $.post('http://api.jirengu.com/fm/getLyric.php',{sid:"758918"}) .done(function(lyric){ console.log(lyric) });</code></pre> <p><strong>返回示例</strong></p> <pre><code>{ "sid": "1451876", "name": null, "lyric": "[00:00.01]音乐来自百度FM, by 饥人谷\n&lt;url&gt; malformed" }</code></pre>

页面列表

ITEM_HTML