Trends/hourly/en

跳转到: 导航, 搜索

目录

trends/hourly

Returns the hot topic in recent hour

URL

http://api.t.sina.com.cn/trends/hourly.(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)
base_app false int Whether retrieve data based on application. 1 means based on application.

Notes

None

Example Request

XML
curl -u "username:password" "http://api.t.sina.com.cn/trends/hourly.xml?source=appkey"
JSON
curl -u "username:password" "http://api.t.sina.com.cn/trends/hourly.json?source=appkey"

Response

XML Example

<?xml version="1.0" encoding="UTF-8"?>
<trends>
	<time>2010-08-03 07:20</time>
	<trend>
		<name>记忆犹新</name>
		<query>记忆犹新</query>
	</trend>
	<trend>
		<name>金希澈</name>
		<query>金希澈</query>
	</trend>
	<trend>
		<name>希澈</name>
		<query>希澈</query>
	</trend>
	<trend>
		<name>李晟敏</name>
		<query>李晟敏</query>
	</trend>
	<trend>
		<name>刘惜君</name>
		<query>刘惜君</query>
	</trend>
	<trend>
		<name>陈文茜</name>
		<query>陈文茜</query>
	</trend>
	<trend>
		<name>理想型</name>
		<query>理想型</query>
	</trend>
	<trend>
		<name>晚霞</name>
		<query>晚霞</query>
	</trend>
	<trend>
		<name>洗碗</name>
		<query>洗碗</query>
	</trend>
	<trend>
		<name>狗叫</name>
		<query>狗叫</query>
	</trend>
	<as_of>1280833537</as_of>
 </trend>

JSON Example

{"trends":{
 	"2010-08-03 07:20":
	[
	  {
		"name":"记忆犹新",
		"query":"记忆犹新",
	  },
	  {
		"name":"金希澈",
		"query":"金希澈",
	  },
	  {
		"name":"希澈",
		"query":"希澈",
	  },
	  {
		"name":"李晟敏",
		"query":"李晟敏",
	  },
	  {
		"name":"刘惜君",
		"query":"刘惜君",
	  },
	  {
		"name":"陈文茜",
		"query":"陈文茜",
	  },
	  {
		"name":"理想型",
		"query":"理想型",
	  },
	  {
		"name":"晚霞",
		"query":"晚霞",
 	  },
	  {
		"name":"洗碗",
	 	"query":"洗碗",
	  },
	  {
		"name":"狗叫",
 		"query":"狗叫",
	  }
	]},
	as_of:1280833537,
}

Others

None

文档更新时间: 2011-01-21