{
  "openapi": "3.1.0",
  "info": {
    "title": "Neighbourhood Quality Scores by Postcode API",
    "description": "Returns a compact neighbourhood profile with normalised scores for transport, noise and amenities. Pre-launch design; endpoints are not live yet.",
    "version": "0.1.0",
    "x-planned-pricing": {
      "model": "free tier for evaluation, paid tiers by volume",
      "status": "planned; nothing charged before launch"
    }
  },
  "servers": [
    {
      "url": "https://openapiregistry.com/api/v1/local-area-index",
      "description": "Pre-launch: endpoints are not live yet and answer 503."
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/areas": {
      "get": {
        "summary": "Profile a local area",
        "description": "Returns an area profile with normalised facet scores based on supplied location data.",
        "tags": [
          "property"
        ],
        "operationId": "local-area-index-get-areas",
        "parameters": [
          {
            "name": "postcode",
            "in": "query",
            "required": true,
            "description": "Area postcode.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Area profiled.",
            "content": {
              "application/json": {
                "example": {
                  "score": 0.72,
                  "facets": {
                    "transport": 0.8,
                    "noise": 0.5
                  },
                  "amenities": 34
                },
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "No data for area."
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "Planned for launch: an API key issued on request. Free tier for evaluation, paid tiers by volume; nothing is charged before launch."
      }
    }
  }
}
