Easy Ethical

API Overview

Their API seems pretty cool. You can request any of their sites pages as HTML, XML, JSON, or JAVASCRIPT through their REST API. This makes browsing their site and linking up to their data pretty easy. It probably makes the most sense to use the JSON output since that maps directly to python dictionaries. XML would be easy to use as well but the XML would need to be parsed first (there are libraries that do this but its an added step over JSON). The various outputs seem to provide different data so that should be part of the consideration as well.

Example Output

To enumerate the companies reviewed by easyethical we simply need to request the company directory from A-Z. The JSON output from companies that start with the letter 'E' are listed below.

{"root":{"letter":"E","companies":[{"title":"East Coast"},{"title":"Eastern Electricity"},{"title":"East India Company"},{"title":"Eastman Kodak"},
{"title":"Ecolab"},{"title":"Ecology Building Society"},{"title":"Ecover"},{"title":"Eddie Bauer"},{"title":"EdF"},{"title":"Egg"},
{"title":"EIRIS"},{"title":"Ekran Berhad"},{"title":"El Al"},{"title":"Electricite de France"},{"title":"Electrolux"},{"title":"El 
Fi"},{"title":"Elida Gibbs"},{"title":"Eli Lilly"},{"title":"ENCE"},{"title":"Enel"},{"title":"ENI"},{"title":"Enron"},{"title":"Environmental 
Transport Association"},{"title":"Equal Exchange"},{"title":"Equitable Life Assurance"},{"title":"Ernst and Young"},{"title":"Esso"},
{"title":"Estee Lauder"},{"title":"Etam"},{"title":"Ethical Invest"},{"title":"Ethical Property Company"},{"title":"Ethical Wares"},
{"title":"Eurotunnel"},{"title":"ExxonMobil"},{"title":"Exxon Mobil Corporation"},{"title":"Exxon Valdez"}]}}