Select Website 

Recruitment Directory's Blog - Australia's #1 Recruitment Technology Blog!

Back to Menu Back to Menu

TradeMe Jobs API

Posted By: Thomas Shaw, 11:20am Monday 29 November 2010    Print Article

It seems everyone is releasing APIs at the moment. TradeMe's public API has been out for a few weeks now and I have finally managed to get around to building some examples. The TradeMe API is built on a simple RESTful standard. It uses HTTP request methods to GET/POST data via XML/JSON.

I have created a simple job board example using the TradeMe API at http://www.mobilejobs.co.nz/trademe.php The example is designed for a mobile device (ie iPhone or Android). There are still a few small bugs in the TradeMe API so I have included the original REST URL for you to double check the returned XML.

For example, if I wanted my application to search all jobs in the "Accounting" category in "Auckland" the request URL is built using some parameters.

https://api.trademe.co.nz/v1/Search/Jobs.xml?rows=20&page=1&sort_order=Default&category=5001&region=1&salary_min=0&salary_max=10000000

rows=20 (number of rows to display)
page=1 (what page of results to display)
sort_order=Default (default sort time. Can also be date posted/title etc)
category=5001 (job category for "Accounting")
region=1 (location for "Auckland")
salary_min=0 (search from min salary $0)
salary_max=10000000 (search to max salary $10000000)

Now that I have found some search results, how do I find out more information about the job? You will then need to individually call the listing's details. For this example we are going to find all the fields in the "National Sales Manager" role at TradeMe using the following URL. Note the format of the URL with [LISTINGID].XML

https://api.trademe.co.nz/v1/Listings/334951800.xml

If you are thinking about building an application using the API, make sure you read all the developer documentation. TradeMe has enforced API call limiting and any calls using member data requires oAuth, https:// and application registration.



Article URL: http://www.recruitmentdirectory.com.au/Blog/trademe-jobs-api-a413.html

Article Tags: trademejobs trademe jobs api job board job ads xml api oauth developer.trademe.co.nz

Comments Hide Comments (1)

Feel free to join in on the conversation. All comments are moderated before publishing. Comments posted by subscribers don't necessarily reflect the views of Recruitment Directory.

 EQ. (6:57pm Monday 29 November 2010)

Why on middle earth would TradeMe freely give out all that data.


Your Name: * Required
Your Email Address: * Required
Website URL:
Comments: * Required
Refresh
Enter the code you see in the image above (case sensitive). Click on the image to refresh it.
 


Back to Menu Back to Menu



Random Blog Articles

So you want to run a job board...
Published: 11:41am Thursday 09 December 2010

What do you think of the SEEK site?
Published: 12:55pm Friday 03 April 2009

What Thomas is reading - 19 Dec 2008
Published: 12:59am Friday 19 December 2008

Search Jobs by Salary Range
Published: 9:00am Sunday 18 July 2010

Inspecht HR Futures Conference only days away
Published: 9:42pm Sunday 22 February 2009