{"x402Version":2,"service":{"name":"UK Property Data API","description":"Land Registry sold prices, rental yields, stamp duty, EPC, crime, flood risk, planning, council tax","version":"1.0.0","homepage":"https://github.com/chetparker/uk-property-api"},"payment":{"payTo":"0xFFc458dB291b4ABcE020fE3de4f91F2770E537b1","network":"eip155:8453","scheme":"exact","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"},"endpoints":[{"method":"POST","path":"/sold-prices","price":"0.001","description":"HM Land Registry sold prices","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"postcode":"SW1A 1AA","limit":10}},"output":{"type":"json","example":{"postcode":"SW1A 1AA","count":2,"results":[{"address":"10 DOWNING STREET, LONDON","price":2750000,"date":"2024-06-14","property_type":"T","new_build":false},{"address":"12 DOWNING STREET, LONDON","price":1900000,"date":"2023-11-02","property_type":"T","new_build":false}],"cached":false}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"postcode":{"type":"string","description":"UK postcode to search, e.g. 'SW1A 1AA'."},"limit":{"type":"integer","minimum":1,"maximum":100,"description":"Max records to return. Defaults to 10."}},"required":["postcode"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"postcode":{"type":"string"},"count":{"type":"integer"},"results":{"type":"array","description":"Sold-price records: address, price (GBP), date, property_type, new_build."},"cached":{"type":"boolean"}}}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/yield-estimate","price":"0.001","description":"Rental yield estimates","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"postcode":"M1 1AA","property_value":250000}},"output":{"type":"json","example":{"postcode":"M1 1AA","estimated_monthly_rent":1180,"estimated_annual_rent":14160,"property_value":250000,"gross_yield_percent":5.66,"yield_band":"Average","cached":false}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"postcode":{"type":"string","description":"UK postcode."},"property_value":{"type":"number","description":"Property value in GBP. If omitted, the API uses the average recent sold price for the postcode."}},"required":["postcode"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"postcode":{"type":"string"},"estimated_monthly_rent":{"type":"number"},"estimated_annual_rent":{"type":"number"},"property_value":{"type":"number"},"gross_yield_percent":{"type":"number"},"yield_band":{"type":"string","description":"'Low' (<4%), 'Average' (4-6%), or 'High' (>6%)."},"cached":{"type":"boolean"}}}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/stamp-duty","price":"0.001","description":"SDLT calculator","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"price":350000,"is_first_time_buyer":false,"is_additional_property":false,"is_non_resident":false}},"output":{"type":"json","example":{"price":350000,"total_tax":7500,"effective_rate":2.14,"breakdown":[{"band":"£0 – £125,000","rate":"0.0%","tax":0},{"band":"£125,000 – £250,000","rate":"2.0%","tax":2500},{"band":"£250,000 – £350,000","rate":"5.0%","tax":5000}],"buyer_type":"Standard"}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"price":{"type":"number","minimum":0,"description":"Property purchase price in GBP."},"is_first_time_buyer":{"type":"boolean","description":"First-time buyers get relief on properties up to £625,000."},"is_additional_property":{"type":"boolean","description":"Second homes / buy-to-let pay a 5% surcharge (Oct 2024 rates)."},"is_non_resident":{"type":"boolean","description":"Non-UK residents pay an extra 2% surcharge."}},"required":["price"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"price":{"type":"number"},"total_tax":{"type":"number","description":"Total SDLT payable in GBP."},"effective_rate":{"type":"number","description":"Effective tax rate as a percentage."},"breakdown":{"type":"array","description":"Band-by-band breakdown."},"buyer_type":{"type":"string"}}}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/epc-rating","price":"0.001","description":"EPC energy ratings","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"postcode":"EC1A 1BB","limit":20}},"output":{"type":"json","example":{"postcode":"EC1A 1BB","certificates":[{"address":"1 ST MARTIN'S LE GRAND, LONDON","current_band":"C","current_rating":71,"potential_band":"B","lodgement_date":"2023-04-12"}],"total_found":1,"average_score":71,"average_band":"C","band_distribution":{"A":0,"B":0,"C":1,"D":0,"E":0,"F":0,"G":0}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"postcode":{"type":"string","description":"UK postcode."},"limit":{"type":"integer","minimum":1,"maximum":100,"description":"Max certificates to return. Defaults to 20."}},"required":["postcode"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"postcode":{"type":"string"},"certificates":{"type":"array"},"total_found":{"type":"integer"},"average_score":{"type":"integer"},"average_band":{"type":"string"},"band_distribution":{"type":"object"}}}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/crime-stats","price":"0.001","description":"Crime statistics","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"postcode":"E1 6AN"}},"output":{"type":"json","example":{"postcode":"E1 6AN","total_crimes":184,"by_category":{"anti-social-behaviour":42,"burglary":11,"drugs":9,"robbery":7,"theft-from-the-person":35,"violent-crime":48,"other-theft":32},"safety_rating":{"score":2,"label":"Below Average"}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"postcode":{"type":"string","description":"UK postcode."}},"required":["postcode"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"postcode":{"type":"string"},"total_crimes":{"type":"integer"},"by_category":{"type":"object"},"safety_rating":{"type":"object"}}}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/flood-risk","price":"0.001","description":"Flood risk assessment","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"postcode":"DT1 1HZ"}},"output":{"type":"json","example":{"postcode":"DT1 1HZ","overall_risk":"Low","river_and_sea_risk":"Very Low","surface_water_risk":"Low","active_warnings":[],"insurance_guidance":"Most insurers will offer standard cover at this risk level."}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"postcode":{"type":"string","description":"UK postcode."}},"required":["postcode"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"postcode":{"type":"string"},"overall_risk":{"type":"string"},"river_and_sea_risk":{"type":"string"},"surface_water_risk":{"type":"string"},"active_warnings":{"type":"array"},"insurance_guidance":{"type":"string"}}}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/planning","price":"0.001","description":"Planning applications","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"postcode":"BS1 4DJ","radius":500}},"output":{"type":"json","example":{"postcode":"BS1 4DJ","radius":500,"applications":[{"reference":"23/04567/F","description":"Single-storey rear extension","status":"Approved","date":"2024-09-18"},{"reference":"24/01234/A","description":"Display of illuminated fascia signage","status":"Pending","date":"2025-01-04"}]}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"postcode":{"type":"string","description":"UK postcode."},"radius":{"type":"integer","minimum":100,"maximum":5000,"description":"Search radius in metres. Defaults to 500."}},"required":["postcode"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"postcode":{"type":"string"},"radius":{"type":"integer"},"applications":{"type":"array"}}}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/council-tax","price":"0.001","description":"Council tax data","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"postcode":"M1 1AA"}},"output":{"type":"json","example":{"postcode":"M1 1AA","local_authority":"Manchester City Council","band_d_rate":1992.13,"band_d_monthly":166.01,"all_bands":{"A":1328.09,"B":1549.43,"C":1770.78,"D":1992.13,"E":2434.83,"F":2877.52,"G":3320.22,"H":3984.26},"used_national_average":false}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"postcode":{"type":"string","description":"UK postcode."}},"required":["postcode"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"postcode":{"type":"string"},"local_authority":{"type":"string"},"band_d_rate":{"type":"number"},"band_d_monthly":{"type":"number"},"all_bands":{"type":"object"},"used_national_average":{"type":"boolean"}}}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/current-weather","price":"0.001","description":"Current weather conditions","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"location":"London"}},"output":{"type":"json","example":{"location":{"name":"London","country":"United Kingdom","latitude":51.5074,"longitude":-0.1278},"current":{"temperature_c":12.4,"feels_like_c":10.8,"humidity_pct":71,"precipitation_mm":0.0,"wind_speed_kmh":14.2,"weather_code":3,"description":"Overcast","time":"2025-04-30T15:00"}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"location":{"type":"string","description":"City or place name. Geocoded via Open-Meteo."}},"required":["location"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"location":{"type":"object"},"current":{"type":"object"}}}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/weather-forecast","price":"0.001","description":"Weather forecast","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"location":"Manchester","days":7}},"output":{"type":"json","example":{"location":{"name":"Manchester","country":"United Kingdom","latitude":53.4808,"longitude":-2.2426},"forecast":[{"date":"2025-05-01","temp_max_c":15.2,"temp_min_c":8.1,"precipitation_mm":1.4,"weather_code":61},{"date":"2025-05-02","temp_max_c":14.8,"temp_min_c":7.6,"precipitation_mm":0.2,"weather_code":3}]}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"location":{"type":"string","description":"City or place name."},"days":{"type":"integer","minimum":1,"maximum":16,"description":"Forecast horizon in days. Defaults to 7."}},"required":["location"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"location":{"type":"object"},"forecast":{"type":"array"}}}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/historical-weather","price":"0.002","description":"Historical weather","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"location":"Edinburgh","start_date":"2024-01-01","end_date":"2024-01-31"}},"output":{"type":"json","example":{"location":{"name":"Edinburgh","country":"United Kingdom","latitude":55.9533,"longitude":-3.1883},"history":[{"date":"2024-01-01","temp_max_c":6.2,"temp_min_c":1.4,"precipitation_mm":3.1},{"date":"2024-01-02","temp_max_c":5.8,"temp_min_c":0.9,"precipitation_mm":0.6}]}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"location":{"type":"string","description":"City or place name."},"start_date":{"type":"string","format":"date","description":"ISO date (YYYY-MM-DD), inclusive."},"end_date":{"type":"string","format":"date","description":"ISO date (YYYY-MM-DD), inclusive."}},"required":["location","start_date","end_date"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"location":{"type":"object"},"history":{"type":"array"}}}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/air-quality","price":"0.001","description":"Air quality index","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"location":"Birmingham"}},"output":{"type":"json","example":{"location":{"name":"Birmingham","country":"United Kingdom","latitude":52.4862,"longitude":-1.8904},"air_quality":{"pm2_5":8.4,"pm10":13.1,"ozone":64.2,"no2":11.7,"european_aqi":31,"category":"Good"}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"location":{"type":"string","description":"City or place name."}},"required":["location"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"location":{"type":"object"},"air_quality":{"type":"object"}}}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/company-search","price":"0.001","description":"Search UK companies","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"query":"Tesco","limit":10}},"output":{"type":"json","example":{"query":"Tesco","total_results":2,"results":[{"company_number":"00445790","title":"TESCO PLC","company_status":"active","date_of_creation":"1947-11-27","address":"Tesco House, Shire Park, Welwyn Garden City"},{"company_number":"02406289","title":"TESCO STORES LIMITED","company_status":"active","date_of_creation":"1989-08-04","address":"Tesco House, Welwyn Garden City"}]}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"query":{"type":"string","description":"Free-text query against UK Companies House."},"limit":{"type":"integer","minimum":1,"maximum":50,"description":"Max matches to return. Defaults to 10."}},"required":["query"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"query":{"type":"string"},"total_results":{"type":"integer"},"results":{"type":"array"}}}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/company-profile","price":"0.001","description":"Company profile","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"company_number":"00445790"}},"output":{"type":"json","example":{"company_number":"00445790","company_name":"TESCO PLC","company_status":"active","type":"plc","date_of_creation":"1947-11-27","registered_office":{"address_line_1":"Tesco House, Shire Park, Kestrel Way","locality":"Welwyn Garden City","postal_code":"AL7 1GA","country":"England"},"sic_codes":["47110"],"has_charges":true,"has_insolvency_history":false}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"company_number":{"type":"string","description":"UK Companies House registration number, e.g. '00445790'."}},"required":["company_number"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"company_number":{"type":"string"},"company_name":{"type":"string"},"company_status":{"type":"string"},"type":{"type":"string"},"date_of_creation":{"type":"string"},"registered_office":{"type":"object"},"sic_codes":{"type":"array"},"has_charges":{"type":"boolean"},"has_insolvency_history":{"type":"boolean"}}}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/officers","price":"0.001","description":"Company officers","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"company_number":"00445790"}},"output":{"type":"json","example":{"company_number":"00445790","total_results":2,"officers":[{"name":"MURPHY, Kenneth Andrew","officer_role":"director","appointed_on":"2020-10-01"},{"name":"STEWART, Imran","officer_role":"director","appointed_on":"2021-04-22"}]}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"company_number":{"type":"string","description":"UK Companies House registration number."}},"required":["company_number"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"company_number":{"type":"string"},"total_results":{"type":"integer"},"officers":{"type":"array"}}}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/filings","price":"0.001","description":"Filing history","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"company_number":"00445790","limit":20}},"output":{"type":"json","example":{"company_number":"00445790","total_count":2,"filings":[{"date":"2024-09-30","type":"AA","description":"Full accounts made up to 24 February 2024","category":"accounts"},{"date":"2024-07-01","type":"CS01","description":"Confirmation statement made on 1 July 2024","category":"confirmation-statement"}]}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"company_number":{"type":"string","description":"UK Companies House registration number."},"limit":{"type":"integer","minimum":1,"maximum":50,"description":"Max filings to return. Defaults to 20."}},"required":["company_number"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"company_number":{"type":"string"},"total_count":{"type":"integer"},"filings":{"type":"array"}}}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/vehicle-info","price":"0.001","description":"Vehicle details","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"registration":"AB12CDE"}},"output":{"type":"json","example":{"registration":"AB12CDE","make":"FORD","model":"FOCUS","colour":"BLUE","fuel_type":"PETROL","year":2017,"engine_cc":999,"co2":110,"tax_status":"Taxed","tax_due":"2025-09-01","mot_status":"Valid","mot_expiry":"2025-08-12"}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"registration":{"type":"string","description":"UK vehicle registration plate (no spaces), e.g. 'AB12CDE'."}},"required":["registration"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"registration":{"type":"string"},"make":{"type":"string"},"model":{"type":"string"},"colour":{"type":"string"},"fuel_type":{"type":"string"},"year":{"type":"integer"},"engine_cc":{"type":"integer"},"co2":{"type":"integer"},"tax_status":{"type":"string"},"tax_due":{"type":"string"},"mot_status":{"type":"string"},"mot_expiry":{"type":"string"}}}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/mot-history","price":"0.002","description":"MOT test history","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"registration":"AB12CDE"}},"output":{"type":"json","example":{"registration":"AB12CDE","make":"FORD","model":"FOCUS","total_tests":2,"tests":[{"date":"2024-08-12","result":"PASSED","odometer":68421,"defects":[]},{"date":"2023-08-09","result":"PASSED","odometer":56109,"defects":[{"text":"Nearside front tyre worn close to legal limit","type":"ADVISORY"}]}]}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"registration":{"type":"string","description":"UK vehicle registration plate."}},"required":["registration"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"registration":{"type":"string"},"make":{"type":"string"},"model":{"type":"string"},"total_tests":{"type":"integer"},"tests":{"type":"array"}}}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/tax-status","price":"0.001","description":"Vehicle tax status","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"registration":"AB12CDE"}},"output":{"type":"json","example":{"registration":"AB12CDE","tax_status":"Taxed","tax_due":"2025-09-01","mot_status":"Valid","mot_expiry":"2025-08-12"}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"registration":{"type":"string","description":"UK vehicle registration plate."}},"required":["registration"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"registration":{"type":"string"},"tax_status":{"type":"string"},"tax_due":{"type":"string"},"mot_status":{"type":"string"},"mot_expiry":{"type":"string"}}}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/emissions","price":"0.001","description":"Vehicle emissions","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"registration":"AB12CDE"}},"output":{"type":"json","example":{"registration":"AB12CDE","fuel_type":"PETROL","co2":110,"engine_cc":999}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"registration":{"type":"string","description":"UK vehicle registration plate."}},"required":["registration"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"registration":{"type":"string"},"fuel_type":{"type":"string"},"co2":{"type":"integer"},"engine_cc":{"type":"integer"}}}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/interest-rates","price":"0.001","description":"BoE base rate","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"months":12}},"output":{"type":"json","example":{"current_rate":4.5,"source":"Bank of England","history":[{"date":"2024-11-07","rate":4.75},{"date":"2024-08-01","rate":5.0},{"date":"2024-02-01","rate":5.25}]}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"months":{"type":"integer","minimum":1,"maximum":120,"description":"Months of history to return. Defaults to 12."}},"required":[]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"current_rate":{"type":"number"},"source":{"type":"string"},"history":{"type":"array"}}}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/exchange-rates","price":"0.001","description":"Exchange rates","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"base":"GBP","targets":["USD","EUR"]}},"output":{"type":"json","example":{"base":"GBP","date":"2025-04-30","rates":{"USD":1.247,"EUR":1.176},"source":"exchangerate.host"}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"base":{"type":"string","description":"ISO-4217 base currency. Defaults to 'GBP'."},"targets":{"type":"array","items":{"type":"string"},"description":"ISO-4217 target currency codes. Omit for all available."}},"required":[]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"base":{"type":"string"},"date":{"type":"string"},"rates":{"type":"object"},"source":{"type":"string"}}}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/inflation","price":"0.001","description":"UK CPI inflation","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"months":24}},"output":{"type":"json","example":{"current_cpi":2.6,"source":"ONS","history":[{"date":"2025-03","cpi_pct":2.6},{"date":"2025-02","cpi_pct":2.8},{"date":"2025-01","cpi_pct":3.0}]}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"months":{"type":"integer","minimum":1,"maximum":120,"description":"Months of CPI history to return. Defaults to 24."}},"required":[]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"current_cpi":{"type":"number"},"source":{"type":"string"},"history":{"type":"array"}}}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/mortgage-calculator","price":"0.001","description":"Mortgage calculator","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"property_price":350000,"deposit":35000,"interest_rate":4.5,"term_years":25,"is_interest_only":false}},"output":{"type":"json","example":{"property_price":350000,"deposit":35000,"loan":315000,"monthly_payment":1751.05,"total_repayment":525315.5,"total_interest":210315.5,"ltv_percent":90.0}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"type":"object","properties":{"property_price":{"type":"number","minimum":0,"description":"Property purchase price in GBP."},"deposit":{"type":"number","minimum":0,"description":"Deposit in GBP."},"interest_rate":{"type":"number","description":"Annual interest rate, percent. Defaults to 4.5."},"term_years":{"type":"integer","minimum":1,"maximum":40,"description":"Mortgage term in years. Defaults to 25."},"is_interest_only":{"type":"boolean","description":"Interest-only vs repayment. Defaults to false (repayment)."}},"required":["property_price","deposit"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"property_price":{"type":"number"},"deposit":{"type":"number"},"loan":{"type":"number"},"monthly_payment":{"type":"number"},"total_repayment":{"type":"number"},"total_interest":{"type":"number"},"ltv_percent":{"type":"number"}}}},"required":["type"]}},"required":["input"]}}}}]}