Eat 4 2: API (beta!)
Eat 4 2 has a RESTful API to allow you to build web applications which access Eat 4 2's information.
To access an XML version of any food's guidance, or search results, just add /xml to the URL.
This is currently a beta service, and so results may change or be unreliable, or be withdrawn at any time.
Access to the API is currently free - but please drop us a line before building a site or service which uses it so we can keep track of its usage. The only conditions of use are:
- You must visibly credit and link back to eat42.com, or the specific guidance page
- You must include the disclaimer advising mums-to-be that this is guidance only and they should consult a healthcare professional before making any decisions about what to eat or not. This is also returned in every XML result.
Examples
Single item
HTML version: http://eat42.com/camembert
XML version: http://eat42.com/camembert/xml
Search results
HTML version: http://eat42.com/cheese
XML version: http://eat42.com/cheese/xml
A-Z
HTML version: http://eat42.com/a-z
XML version: http://eat42.com/a-z/xml
