Several open API interfaces jokes, weather, news

Source: Internet
Author: User

Free to do nothing, get a few API interface, share to the same need (busy) to (not) people
API interfaces are in HTTP form, data is in JSON format, Ajax calls are supported (all domain access is open)

Joke API

Description: Return the joke list after the call, you can set the maximum joke ID and the minimum joke ID that have been obtained in the parameter, return the result will return the new joke (currently about 1w, continue to increase)
How to use
Request Address: Http://114.215.158.105:8080/bizserver/xiaohua/list.do
Example http://114.215.158.105:8080/html/joker/
Request Parameters:
Maxxhid: The biggest joke id;minxhid: the smallest joke id;size: The number of jokes to get
return Result:

{"Status": "000000",----return status, six 0 indicates success"DESC":NULL, ----Returns the result description, six of 0 indicates success"Detail": [----specific joke list, is an array {"id": 1115,----database self-increment ID, no meaning"Xhid": "90851",----joke ID, judging joke old and new"Author": "XXX",----joke author"Content": "XXX",----joke content"Picurl": "",----pictures of jokes (if any)"Status": "1"----joke state (all that can return is 1)},{"id": 1110,"Xhid": "90850","Author": "XXX","Content": "XXX","Picurl": "","Status": "1"}]}

News API

Description: Returns a news list after the call, which can be specified in the parameters to get news before a point in time
How to use
Request Address: Http://114.215.158.105:8080/bizserver/news/list.do
Example http://114.215.158.105:8080/html/news/
Request Parameters:
Max_behot_time: Specifies the integer value of the millisecond count (based on the news ingest time) that gets the news before the point in time
Size: Gets the number of news articles
return Result:

{
"Status": "000000",----return status, six 0 indicates success
"desc": null,----Returns a result description, six 0 indicates success
"Detail": [----Specific News list, is an array
{
"title": "Share video",----news Headlines
"Source": "Weibo video",----news source
"Article_url": "XXX",----the URL address of the news
"Publish_time": 0,----meaningless
"Behot_time": 1425185036000,----News ingest time, integer counted in milliseconds
"Create_time": 0,----meaningless
"Digg_count": 1,----likes
"Bury_count":----The number of steps
"Repin_count": 1,----favorite times
"group_id": "4006917770"----News ID, no concern
}
]
}

Weather API

Description: Returns the weather conditions for the next few days after the call
How to use
Request Address: Http://114.215.158.105:8080/bizserver/weather/list.do
PS: Weather API needs to make the city parameters, if you want to see the effect can click to view the following example page
Example http://114.215.158.105:8080/html/weather/
Request Parameters:
City: Names of cities, such as "Beijing", "Hefei"
Begindate: To get the weather start date in the format ' 2015-03-01 '
MORE: To get the weather for the next few days, currently support 2 days, the number is more than 2 return only 2 days
return Result:

{
"Status": "000000",----return status, six 0 indicates success
"desc": null,----Returns a result description, six 0 indicates success
"Detail": [----today and the weather list for the next few days
{
"id": 4584,----database self-increment ID, no meaning
"City": "Hefei",----query to the cities
"County": "Hefei",----query to the County (district)
"Date": "2015-03-01",----the date the record belongs to
"Day_condition": "Cloudy",----weather conditions during the day
"Day_wind": "South wind ≤ 3 level",----daytime wind conditions
"Day_temperature": "10 ℃",----daytime maximum temperature
"Night_condition": "Cloudy",----night weather conditions
"Night_wind": "Southeast Wind ≤ 3",----night wind conditions
"Night_temperature": "2 ℃",----the lowest temperature of the night
"Update_time": 1425168300000----Update time, expressed in milliseconds
}
]
}


Welcome free trial, have questions or comments can message communication ~ ~
PS: The example of several addresses are on the phone simple tune, and look at the same

Several open API interfaces jokes, weather, news

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.