2015年8月10日星期一

Week 2 Workshop_Trove API

Trove has API for us to query most of its data as long as we have an account. In order to get it, we need to login and apply for a key. Trove categorized its data to several zones and the attributes of data from different zones are slightly different from each other. We can access the data in a single or multiple zones at a time. After the server gets the data, it'll be sent back to the client and display the data to the user.




To search for "wragge and weather" in the zone "newspaper" as an example. The response data contains the basic information of the name of the zone, the quantity of the results which is 20, the quantity of all records which is 47497, and the concrete attributes of all 20 articles. Compare the code with the result page on trove and you'll find they are consistent (The total number of newspaper is different from the current one which is 48, perhaps it's because the response of the API displays the data at the time they executed the code).






没有评论:

发表评论