import requests
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
response = requests.get(
"https://sprift.com/api/v2/property/100090914832",
headers=headers
)
data = response.json()
print(data["flood_risk"]["surface_water_risk"])
print(data["epc"]["current_rating"])
print(data["title"]["tenure"])
import requests
params = {
"uprn": "100090914832",
"radius_miles": 0.5,
"property_type": "semi-detached",
"months_back": 12,
"min_bedrooms": 3
}
response = requests.get(
"https://sprift.com/api/v2/comparables",
params=params, headers=headers
)
import requests
payload = {
"postcode_prefix": "SW1A",
"property_type": "detached",
"min_years_owned": 7,
"epc_rating": ["D", "E", "F"],
"exclude_on_market": True,
"limit": 50
}
response = requests.post(
"https://sprift.com/api/v2/prospect/search",
json=payload, headers=headers
)
import requests
payload = {
"uprn": "100090914832",
"webhook_url": "https://yourapp.com/webhooks/property",
"watch_events": [
"listed_for_sale",
"sold_stc",
"price_reduction",
"planning_application",
"epc_updated"
]
}
requests.post("https://sprift.com/api/v2/watch",
json=payload, headers=headers)