Friday, March 18, 2011

Feature of the Week: Order parameter for API tag requests

BibSonomy provides an API (Application Programming Interface) which other software programs can use to access the services and resources provided by BibSonomy. It is build on the REST (Representational State Transfer) architecture style and enables programs to post data (for example creating a new user), read data (for example getting the publications or tags of a user), updating or deleting data (for example one's own entries).

Recently, a new parameter for reading a user's tags was added. The parameter enables an alphabetical or frequency-based ordering of tags.

To get an alphabetical ordering add order=alph to your API request:

http://www.bibsonomy.org/api/tags?user=beate&format=xml&start=0&end=100&order=alph

Result:


To get a frequency-based ordering add the parameter order=frequency to your request:

http://www.bibsonomy.org/api/tags?user=beate&format=xml&start=0&end=100&order=frequency

Result: