If you are interested in using the API, please get in touch with us! It's in a very alpha-state at the moment, so it would be better to cooperate to avoid bugs.

Our (un)hoster 5apps has enabled CORS. Example with jQuery to get Facebook:

$.getJSON("http://tosdr.org/services/facebook.json").done(function(data) {
  return console.log(JSON.stringify(data));
});

All JSON files are published under the CC BY-SA 3.0 license with a special exception to allow distribution in a "larger program" under the GNU AGPL-3.0.

Service format

Example from facebook: http://tosdr.org/services/facebook.json

{
  "id": "facebook",
  "type":"service",
  "name": "Facebook",
  "url": "facebook.com",
  "tosback2": {
	   "sitename": "facebook.com",
	   "privacy": {
		   "name": "Data Use Policy",
		   "url": "http://www.facebook.com/full_data_use_policy"
		   },
	   "terms": {
		   "name": "Terms of Service",
		   "url": "http://www.facebook.com/legal/terms"
		   }
  },
  "tosdr": {"rated": false},
  "related": ["diaspora"],
  "keywords": "social network"
}

The rating Class attributed by ToS;DR is inside tosdr.rated and can be either "false" or "A", "B", "C", "D", or "E".

Ideally, the data inside "tosback2" should be pulled from tosback2 "rules" files: https://github.com/pde/tosback2/tree/master/rules/. We want to integrate with them for this (and other tracking/archiving projects!)

To get all data points concerning Facebook, you need to pull data points' id associated with "facebook" from index/services.json (for cache reasons, it may be index/services.json temporarily)

Data point format

Example from Github's "Your account can be suspended and your data deleted any time for any reason" http://tosdr.org/points/hI5Too_uDVk.json

{
  "id": "hI5Too_uDVk",
  "name": "Your account can be suspended and your data deleted any time for any reason",
  "service": "github",
  "tosdr": {
  	"topic": "suspension",
  	"point": "mediocre",
  	"score": 30, 
  	"tldr": "“GitHub, in its sole discretion, has the right to suspend or terminate your account and refuse any and all current or future use of the Service, or any other GitHub service, for any reason at any time. Such termination of the Service will result in the deactivation or deletion of your Account or your access to your Account, and the forfeiture and relinquishment of all Content in your Account. GitHub reserves the right to refuse service to anyone for any reason at any time. ” However, most of your data at GitHub can be exported with 'git clone' (for the wiki) and with the API (for the issues)."
  },
  "discussion": "https://groups.google.com/d/topic/tosdr/hI5Too_uDVk/discussion",
  "source": {
  	"privacy": "https://github.com/site/terms"
  },
  "meta": {
  	"license-for-this-file":"This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, .USA",
  	"author": "ToS;DR by Unhosted",
  	"contributors": [ "Hugo Roy " ]
  }
}

The list of topics can be found in http://tosdr.org/topics/. A tosdr.point can be either "good", "not bad" (means "informative" or "neutral"), "mediocre", or "alert".

ToS Checker is an extension for Chrome/Chromium, by shybyte.

It would be great if you could give us feedback on this very simple API page on github or by email. Thanks!