guo-yu/douban.fm

豆瓣 FM 官方歌词 API

taizilongxu opened this issue · 3 comments

  • URL: api.douban.com/v2/fm/lyric
  • Method: GET
  • Arguments:
    • udis:
    • ssid:
    • version:
    • sid:
    • client:
    • app_name:
    • apikey:
  • Response ( application/json )

获取歌词成功只需要两个参数:

  • ssid
  • sid

GET:

{
    "ssid":"694d"
    "sid":"1403047"
}

response:

{
    "lyric": "[00:21.00]It's easy if you try,\r\n[00:26.00]No hell below us,\r\n[00:33.00]Above us only sky,\r\n[00:40.00]Imagine all the people\r\n[00:45.00]living for today...\r\n[00:53.00]Imagine there's no countries,\r\n[00:59.00]It isnt hard to do,\r\n[01:05.00]Nothing to kill or die for,\r\n[01:12.00]No religion too,\r\n[01:19.00]Imagine all the people\r\n[01:24.00]living life in peace...\r\n[01:56.00]Imagine no possesions,\r\n[02:02.00]I wonder if you can,\r\n[02:09.00]No need for greed or hunger,\r\n[02:15.00]A brotherhood of man,\r\n[02:22.00]imagine all the people\r\n[02:27.00]Sharing all the world...\r\n[02:33.00][01:31.00]You may say Im a dreamer,\r\n[02:42.00][01:38.00]but Im not the only one,\r\n[02:47.00][01:44.00]I hope some day you'll join us,\r\n[02:54.00][01:51.00]And the world will live as one.\r\n[02:54.00][01:51.00]And the world will live as one.",
    "name": "Imagine",
    "sid": "1403047"
}

这个太赞了!我马上整合进来

这个接口现在好像不可以用了

@polandeme 接口正常, 只是貌似上面的ssid和sid不可用了