API Documentation

Using our API needs 2 'GET' parameters to respond with the weather data.

Parameter Name Parameter Description
Location The location you want to query.
Degree Type Use "C" for returning the weather temperature in Celsius or use "F" to return it in Fahrenheit
An example would be: Link
{
	"location_name":"New York, NY",
	"current_data":{
		"temperature":"-2",
		"sky_code":"32",
		"sky_text":"Clear",
		"humidity":"32",
		"wind":"21 km\/hr N"
	}
}
Note: The function is ouputting JSON Data

Example of parsing with PHP
<?php
$file = file_get_contents("http://material-weather-demo.grohsfabian.com/api.php?location=New+York&degree=C");
$data = json_decode($file);
print_r($data);
?>