豆瓣实验室API

巴部落 Bubbler

scope: douban_labs_bubbler

获取用户信息

说明

获取用户的信息及该用户发布与收藏bub的统计

URL

http://api.douban.com/labs/bubbler/user/:id

支持格式

JSON

HTTP请求方式

GET

调用示例

GET http://api.douban.com/labs/bubbler/user/ahbei

返回结果

{
    "id": "1000001",
    "uid": "ahbei",
    "title": "阿北",
    "homepage": "https://www.douban.com/people/ahbei/",
    "icon": "https://img3.doubanio.com/icon/ul1868783-24.jpg",
    "stats": {
        "bub": 172,
        "collect": 89,
        "board": 12
    },
}

获取用户发布的bubs

说明

获取用户发布的bub信息

URL

http://api.douban.com/labs/bubbler/user/:id/bubs

支持格式

JSON

HTTP请求方式

GET

调用示例

GET http://api.douban.com/labs/bubbler/user/irachex/bubs

返回结果

{
    "result": [
    {
      "content": "专辑封面真好看啊",
      "time": "2012-08-23 16:35:39",
      "song": {
        "album": "Is This It",
        "song_name": "Barely Legal",
        "cover": "https://img3.doubanio.com/pics/music/default_cover/lpic/music-default.gif",
        "artist": "The Strokes"
      }
    },
    ...
    ]
}

获取一个board

说明

获取一个board

URL

http://api.douban.com/labs/bubbler/board/:id

支持格式

JSON

HTTP请求方式

GET

调用示例

GET http://api.douban.com/labs/bubbler/board/111

返回结果

{
    "board": {
        "id": "111",
        "thumbnail": "https://img1.doubanio.com/lpic/s4383187.jpg",
        "create_time": "2012-08-13 15:47:37",
        "title": "All About Joy Division",
        "description": "Love will tear us apart",
        "song_list": ["627940", "1009170", "1510596"],
        "user": {
            "id": "1000001",
            "uid": "1000001",
            "title": "test0001",
            "homepage": "https://www.douban.com/people/1000001/",
            "icon": "https://img1.doubanio.com/icon/user_normal.jpg"
        }
    },
    "song_list": [
    {
        "song": {
            "album": "The Best of Joy Division",
            "song_name": "Atmosphere",
            "cover": "https://img3.doubanio.com/lpic/s2982331.jpg",
            "artist": "Joy Division"
        },
        "bubs": [
        {
            "content": "氛围",
            "user": {
                "id": "1000001",
                "uid": "1000001",
                "title": "test0001",
                "homepage": "https://www.douban.com/people/1000001/",
                "icon": "https://img1.doubanio.com/icon/user_normal.jpg"
            },
            "time": "2012-08-13 15:34:15",
        },
        ...
        ],
    },
    ...
    ]
}

获取一个wall

说明

获取一个wall

URL

http://api.douban.com/labs/bubbler/wall/:id

支持格式

JSON

HTTP请求方式

GET

调用示例

GET http://api.douban.com/labs/bubbler/wall/irachex

返回结果

{
    "user": {
        "id": "1868783",
        "uid": "irachex",
        "title": "irachex",
        "homepage": "https://www.douban.com/people/irachex/",
        "icon": "https://img1.doubanio.com/icon/user_normal.jpg"
    }
    "board_list": [
    {
        "id": "407",
        "thumbnail": "https://img1.doubanio.com/lpic/s4383187.jpg",
        "create_time": "2012-08-13 15:47:37",
        "title": "All About Joy Division",
        "description": "Love will tear us apart",
    },
    ...
    ]
}