Convert an Atom feed into JSON encoded Atom

Below you can test out my Atom feed to JSON converter by entering a feed URL and turning it into JSON. This form is only meant for testing purposes, try calling this page via the REST API explained below.

Please note your browser may want you to download the response (if you select the raw JSON response) rather than output it in a browser because of it's application type (application/json).

(currently must be a valid Atom 1.0)

Need help?

If you like the idea of this API but need help using it, would like to talk to me about it or would like a copy of the source feel free to contact me via email.

API reference

To make a call to this API all you need to do is make a POST request to this page, that is http://lukemorton.co.uk/feed-parser/. The only variable you need to parse is "feed". This can either be an array of up to 3 feeds or a single feed. An array of feed URLs should look like this:

	feed[0] = http://site1.com/feed.xml
	feed[1] = http://site2.com/feed.xml
	feed[2] = http://site3.com/feed.xml

You must also set a HTTP header, Accept: application/json. This is mainly good practice on your part to stop me sending you data you do not want to receive, in this case this HTML page instead of a JSON response.

You will then be parsed back a JSON string of an array of each of your atom feeds for use with your web application of choice. All element names are the same as the atom XML counterpart, although one additional element is added, updated_timestamp which is a unix timestamp of updated for both the feed and it's entries.

With only two requirements this API should not be to much trouble to use. Experiment with the results to see how it reacts. If you are using PHP you can make remote calls with the cURL library for PHP 4.0.2 +.

To parse or not to parse, that is the question.