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.
-
More scripts by me
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 +.
No Copyright © Luke Morton 2009--. No Rights Reserved. No privacy rights held.
To parse or not to parse, that is the question.