豆瓣 API 参考手册
标签
某个书籍、电影、音乐中标记最多的标签
GET http://api.douban.com/book/subject/{subjectID}/tags
GET http://api.douban.com/movie/subject/{subjectID}/tags
GET http://api.douban.com/music/subject/{subjectID}/tags
用户对书籍、电影、音乐标记的所有标签
用户对书籍、电影、音乐标记的所有标签,在不给出max-results的情况下,默认给出用户标记的所有tag
GET http://api.douban.com/people/{userID}/tags?cat=book
GET http://api.douban.com/people/{userID}/tags?cat=movie
GET http://api.douban.com/people/{userID}/tags?cat=music
请求参数
| 参数 | 意义 | 备注 |
| start-index | 起始元素 | |
| max-results | 返回结果的数量 | 用户对书影音标记的所有标签,默认给出用户标记的所有tag |
例如
GET http://api.douban.com/people/sakinijino/tags?cat=movie&start-index=2&max-results=3
返回格式
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"
xmlns:gd="http://schemas.google.com/g/2005"
xmlns:opensearch="http://a9.com/-/spec/opensearchrss/1.0/"
xmlns:db="http://www.douban.com/xmlns/">
<title>霏昀的标签</title>
<opensearch:totalResults>191</opensearch:totalResults>
<opensearch:startIndex>2</opensearch:startIndex>
<entry>
<db:count>64</db:count>
<id>http://api.douban.com/movie/tag/动画</id>
<title>动画</title>
</entry>
<entry>
<db:count>52</db:count>
<id>http://api.douban.com/movie/tag/日本</id>
<title>日本</title>
</entry>
<entry>
<db:count>36</db:count>
<id>http://api.douban.com/movie/tag/大陆</id>
<title>大陆</title>
</entry>
<opensearch:itemsPerPage>3</opensearch:itemsPerPage>
</feed>
> 回到参考手册目录