{"x402Version":2,"service":{"name":"HMO Licence API","description":"UK House in Multiple Occupation licence checks aggregated from local authority registers.","version":"1.0.0","homepage":"https://payapi.market"},"payment":{"payTo":"0xFFc458dB291b4ABcE020fE3de4f91F2770E537b1","network":"eip155:8453","scheme":"exact","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"},"endpoints":[{"method":"POST","path":"/hmo-check","price":"0.020","description":"HMO licence check by postcode + house number","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"postcode":"M1 1AE","house":"12"}},"output":{"type":"json","example":{"licensed":true,"address_matched":"12 Example Road, Manchester, M1 1AE","council":"Manchester City Council","licence_number":"HMO/2024/00123","licence_type":"Mandatory","expiry_date":"2029-03-15","max_occupancy":5,"max_households":2,"last_updated":"2026-04-28T09:00:00Z","data_source":"https://manchester.gov.uk/HMO_register"}}},"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 of the property to check, e.g. 'M1 1AE'."},"house":{"type":"string","description":"House number or name, e.g. '12', '12A', or 'Flat 1, 12'."}},"required":["postcode","house"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"licensed":{"type":"boolean"},"address_matched":{"type":"string"},"council":{"type":"string"},"licence_number":{"type":"string"},"licence_type":{"type":"string"},"expiry_date":{"type":"string"},"max_occupancy":{"type":"integer"},"max_households":{"type":"integer"},"last_updated":{"type":"string"},"data_source":{"type":"string"}}}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/hmo-by-postcode","price":"0.030","description":"All licensed HMOs in a postcode area","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"postcode":"M1 1AE"}},"output":{"type":"json","example":{"postcode":"M1 1AE","council":"Manchester City Council","count":2,"results":[{"address":"12 Example Road, Manchester, M1 1AE","licence_number":"HMO/2024/00123","licence_type":"Mandatory","expiry_date":"2029-03-15","max_occupancy":5},{"address":"14 Example Road, Manchester, M1 1AE","licence_number":"HMO/2023/00567","licence_type":"Additional","expiry_date":"2028-09-22","max_occupancy":4}],"last_updated":"2026-04-28T09:00:00Z","data_source":"https://manchester.gov.uk/HMO_register"}}},"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 for licensed HMOs in the area."}},"required":["postcode"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"postcode":{"type":"string"},"council":{"type":"string"},"count":{"type":"integer"},"results":{"type":"array","description":"Licensed HMO records in the postcode area."},"last_updated":{"type":"string"},"data_source":{"type":"string"}}}},"required":["type"]}},"required":["input"]}}}},{"method":"POST","path":"/hmo-licence-details","price":"0.040","description":"Full HMO licence details by licence number","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"licence_number":"HMO/2024/00123","council":"manchester"}},"output":{"type":"json","example":{"licence_number":"HMO/2024/00123","council":"Manchester City Council","address":"12 Example Road, Manchester, M1 1AE","licence_type":"Mandatory","licensee_name":"Individual Landlord","start_date":"2024-03-15","expiry_date":"2029-03-15","max_occupancy":5,"max_households":2,"conditions":"Annual gas safety check required. Smoke alarms on every storey.","last_updated":"2026-04-28T09:00:00Z","data_source":"https://manchester.gov.uk/HMO_register"}}},"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":{"licence_number":{"type":"string","description":"HMO licence reference number, e.g. 'HMO/2024/00123'."},"council":{"type":"string","description":"Council slug, e.g. 'manchester', 'birmingham', 'newham'."}},"required":["licence_number","council"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"licence_number":{"type":"string"},"council":{"type":"string"},"address":{"type":"string"},"licence_type":{"type":"string"},"licensee_name":{"type":"string"},"start_date":{"type":"string"},"expiry_date":{"type":"string"},"max_occupancy":{"type":"integer"},"max_households":{"type":"integer"},"conditions":{"type":"string"},"last_updated":{"type":"string"},"data_source":{"type":"string"}}}},"required":["type"]}},"required":["input"]}}}}]}