Tags/suggestions/en
目录 |
tags/suggestions
Retrieve tags list that authenticating user interests and suggests
URL
http://api.t.sina.com.cn/tags/suggestions.(json%7Cxml)
Supported Formats
XML/JSON
HTTP Request Method
GET
Requires Authentication
true
See the Authorization Mechanism Statement for authorization details
Requests Count Limitation
true
See the Interface Access Rights Statement for the Request Count Limitaiton details.
Request Parameters
Requires | Type and Range | Description | |
---|---|---|---|
source | true | string | AppKey for the application to identify it. ( This parameter is not needed when using OAuth) |
count | false | Int, default is 10, max is 10。 | Weibo count per page |
page | false | int,default is 1 | Page. Currently, this parameters is not supported as suggest tags are returned in random. |
Notes
None
Example Request
- XML
- curl -u "username:password" "http://api.t.sina.com.cn/tags/suggestions.xml?source=appkey&count=5"
- JSON
- curl -u "username:password" "http://api.t.sina.com.cn/tags/suggestions.json?source=appkey&count=5"
Response
XML Example
<?xml version="1.0" encoding="UTF-8"?> <tags> <tag> <id>1033</id> <value>上网</value> </tag> <tag> <id>5395</id> <value>紫色</value> </tag> <tag> <id>544</id> <value>历史</value> </tag> <tag> <id>545</id> <value>广告</value> </tag> <tag> <id>788</id> <value>美剧</value> </tag> <tag> <id>660</id> <value>八卦</value> </tag> <tag> <id>537</id> <value>传媒</value> </tag> <tag> <id>331</id> <value>网络</value> </tag> <tag> <id>998</id> <value>狮子座</value> </tag> <tag> <id>922</id> <value>游戏</value> </tag> </tags>
JSON Example
[ { "id" : "1698", "value" : "教育" }, { "id" : "1397", "value" : "大学生" }, { "id" : "77463", "value" : "偶喜欢玩" }, { "id" : "123", "value" : "平常心" }, { "id" : "1029", "value" : "宅" }, { "id" : "859", "value" : "博客" }, { "id" : "320", "value" : "搞笑" }, { "id" : "283", "value" : "电影" }, { "id" : "3374", "value" : "善良" }, { "id" : "835", "value" : "读书" } ]
Others
None