Green spaces
UK
gethttps://crystalroof.co.uk/customer-api/environment/closest-green-spaces/v1/{location}
Description
This method returns the closest green spaces based on the specified criteria.
The dataset is updated twice a year in April and October.
Pricing
1 credit per 10 returned green spaces
Example: 11 green spaces = 2 credits
If 0 green spaces are returned, the call still counts as 1 credit
Parameters
| Name | Description |
|---|---|
location path string | Postcode, coordinates in the lat,long format or UPRN in the uprn12345678 format. |
type query array |
|
limit query enum | Number of elements to be returned by the method. The returned number of elements may be less than the requested amount if fewer elements are found based on your criteria (in very rare cases). The maximum value is 100. To retrieve only the metadata, use the value 0. |
api_key query enum | Your API key.
|
Request URL:
https://crystalroof.co.uk/customer-api/environment/closest-green-spaces/v1/{location}?api_key=DEMO
Possible responses with examples
Code
Description
200
Success
401
Unauthorized
402
Payment Required
403
Forbidden
404
Not Found
429
Too Many Requests
500
Internal Server Error