{"openapi": "3.1.0", "info": {"title": "Geoscore Property Context API", "version": "1.0-beta", "description": "Agent-native API returning structured property context for any Australian address. Designed for LLM tool use and MCP clients.", "termsOfService": "https://geoscore.com.au/terms_of_service", "contact": {"url": "https://geoscore.com.au"}}, "servers": [{"url": "https://geoscore.com.au/mcp"}], "paths": {"/property/context/": {"get": {"operationId": "getPropertyContext", "summary": "Get structured property context for an Australian address", "description": "Returns a single LLM-ready context object for any Australian property \u2014 resolved address and location hierarchy, surrounding amenities with real walking distances, walkability and liveability signals, climate and natural hazard risk indicators, and planning and government overlays. Schema is stable across all properties so agents can reason over the same shape every time.", "parameters": [{"name": "q", "in": "query", "required": true, "description": "Address search query (e.g. '10 Smith St Richmond VIC')", "schema": {"type": "string", "minLength": 3, "maxLength": 255}}], "responses": {"200": {"description": "Property context object", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PropertyContext"}}}}, "400": {"description": "Invalid parameters", "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string"}, "details": {"type": "object"}}}}}}, "404": {"description": "Address not found or no data available"}, "402": {"description": "Payment required. Every unauthenticated request must be paid for via the x402 protocol. The response includes a base64-encoded PAYMENT-REQUIRED header with the payment details.", "headers": {"PAYMENT-REQUIRED": {"description": "Base64-encoded x402 PaymentRequired object", "schema": {"type": "string", "format": "byte"}}}, "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "string"}, "message": {"type": "string"}, "x402": {"type": "object", "properties": {"protocol": {"type": "string"}, "version": {"type": "integer"}, "network": {"type": "string"}, "price": {"type": "string"}, "pay_to": {"type": "string"}, "docs": {"type": "string", "format": "uri"}}}, "alternative": {"type": "object", "properties": {"method": {"type": "string"}, "docs": {"type": "string"}}}}}}}}}, "security": [{"tokenAuth": []}, {"x402Payment": []}]}}, "/property/context/sample/": {"get": {"operationId": "getSampleContext", "summary": "Free fixed-address sample of the context object", "description": "Returns the full context object for one fixed showcase address, with no authentication or payment, so you can inspect the response shape before you sign up. Rate-limited per IP; use the authenticated endpoint for arbitrary addresses.", "responses": {"200": {"description": "Sample property context object", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PropertyContext"}}}}, "429": {"description": "Per-IP rate limit exceeded"}}}}}, "components": {"securitySchemes": {"tokenAuth": {"type": "http", "scheme": "bearer", "description": "API key or DRF token \u2014 pass as 'Bearer <key>' (or 'Token <key>') in the Authorization header. Self-serve a key, with a free tier, at /developers/keys/."}, "x402Payment": {"type": "apiKey", "in": "header", "name": "PAYMENT-SIGNATURE", "description": "x402 payment proof \u2014 base64-encoded signed payment payload. Clients that do not send this header receive a 402 response with a PAYMENT-REQUIRED header describing the required payment."}}, "schemas": {"PropertyContext": {"type": "object", "properties": {"meta": {"type": "object", "properties": {"api_version": {"type": "string"}, "generated_at": {"type": "string", "format": "date-time"}, "h3_cell": {"type": "string"}, "data_freshness": {"type": "string", "format": "date-time"}, "legal": {"type": "object", "properties": {"terms": {"type": "string", "format": "uri"}, "license": {"type": "string"}, "disclaimer": {"type": "string"}}}}}, "address": {"type": "object", "properties": {"address_id": {"type": "string"}, "full_address": {"type": "string"}, "short_address": {"type": "string"}, "postcode": {"type": "string"}, "state": {"type": "string"}, "coordinates": {"type": "object", "properties": {"lat": {"type": "number"}, "lng": {"type": "number"}}}}}, "location": {"type": "object", "properties": {"suburb": {"type": "object", "properties": {"name": {"type": "string"}, "slug": {"type": "string"}, "area_sqkm": {"type": "number"}, "description": {"type": "string"}}}, "lga": {"type": "object", "properties": {"name": {"type": "string"}, "slug": {"type": "string"}, "classification": {"type": "string"}, "state": {"type": "string"}}}, "city": {"type": "object", "properties": {"name": {"type": "string"}, "slug": {"type": "string"}, "state": {"type": "string"}}}}}, "walkability": {"type": "object", "properties": {"data_quality": {"type": "string"}, "last_calculated": {"type": "string", "format": "date-time"}, "geoscores": {"type": "object", "description": "Percentile scores (0-100) at city, LGA, and suburb level", "properties": {"percentiles": {"type": "object", "additionalProperties": {"type": "object", "additionalProperties": {"type": "integer", "minimum": 0, "maximum": 100}}}}}}}, "amenities": {"type": "object", "description": "Nearby amenities grouped by category, nearest first", "additionalProperties": {"type": "array", "items": {"type": "object", "properties": {"name": {"type": "string"}, "type": {"type": "string"}, "walk_minutes": {"type": "integer"}, "walk_meters": {"type": "integer"}, "category": {"type": "string"}}}}}, "planning": {"type": "object", "properties": {"overlays": {"type": "array", "items": {"type": "object", "properties": {"scheme_code": {"type": "string"}, "zone_code": {"type": "string"}, "zone_description": {"type": "string"}, "lga_name": {"type": "string"}}}}}}}}}}}