Welcome to the Green Web Foundation Api Service

Currently available services

Example

 

Results

Fill in a website and click the check button to check it

Usage

The greencheck api service can be used by calling the json.php script at this url. http://api.thegreenwebfoundation.org/json.php

The greencheck api service expects only one parameter : "url". This should be the url of a website without the "http://" part, so just "www.example.com". This url parameter is checked and the result is returned to the calling script. The result contains a couple of fields:

The following is returned for "www.cleanbits.nl"

{
"green":true,
"url":"www.cleanbits.nl",
"hostedby":"LEASEWEB",
"hostedbywebsite":"www.leaseweb.com"
}

Jquery example

View the source of this webpage to see how you can call the greencheck api service by using jquery

Widgets

In the future, we will add some widgets to this page, so that you can easily put a greencheck widget on your site, without the need to code it yourself

Add-on The Green Web

There are add-ons that use this api, available at The Green Web Foundation, called The Green Web. It shows you for every website you visit if it is green, and if so the hosting party.