Trends/en
目录 |
trends
Retrieve watching topic of a user
URL
http://api.t.sina.com.cn/trends.(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) |
user_id | true | int64 | user id |
page | false | int,default is 1 | page |
count | false | int, default is 10 | record per page |
Notes
None
Example Request
- XML
- curl -u "username:password" "http://api.t.sina.com.cn/trends.xml?source=appkey&user_id=12345678&page=1&count=10"
- JSON
- curl -u "username:password" "http://api.t.sina.com.cn/trends.json?source=appkey&user_id=12345678&page=1&count=10"
Response
XML Example
<?xml version="1.0" encoding="UTF-8"?> <trends> <trend> <trend_id>1567898</trend_id> <hotword>ipad</hotword> <num>225673</num> </trend> <trend> <trend_id>1567733</trend_id> <hotword>NBA</hotword> <num>106248</num> </trend> </trends>
JSON Example
[ { "num" : "225673", "hotword" : "ipad", "trend_id" : "1567898" }, { "num" : "106384", "hotword" : "NBA", "trend_id" : "1567733" } ]
Others
None