Is it in Wales?
Determine if a property is in wales.
Endpoints
https://land-property-platform.herokuapp.com/is_it_in_wales
Parameters
uprn: (integer) The UPRN of the property (don't know it? search here)
Examples
Requests
Request body:
{
"uprn": 10015308931
}
Or curl request:
curl -X 'POST' \
'https://land-property-platform.herokuapp.com/is_it_in_wales' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"uprn": 10015308931
}'
Or using python:
import requests
import json
uprn = 10015308931
json_data = json.dumps({"uprn": uprn})
response = requests.post(
"https://land-property-platform.herokuapp.com/is_it_in_wales",
data=json_data,
)
Response
Response body example:
{
"in_wales": "true"
}
Response body schema:
{
"in_wales": string
}
Possible "in_wales" values:
- "true" -- The property is in Wales
- "false" -- The property is not in Wales
- "partially" -- The property has been manually flagges as partially in Wales and partially in England