{
  "openapi": "3.1.0",
  "info": {
    "title": "Planning Application Search by Postcode API",
    "description": "Returns local planning applications near a postcode, with status, description and decision dates. 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/planning-application-search",
      "description": "Pre-launch: endpoints are not live yet and answer 503."
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/applications": {
      "get": {
        "summary": "Search planning applications",
        "description": "Returns planning applications near a postcode with their status and decision dates.",
        "tags": [
          "property"
        ],
        "operationId": "planning-application-search-get-applications",
        "parameters": [
          {
            "name": "postcode",
            "in": "query",
            "required": true,
            "description": "Postcode to search around for planning applications.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Planning applications returned.",
            "content": {
              "application/json": {
                "example": {
                  "applications": [
                    {
                      "reference": "24/01234/FUL",
                      "description": "Erection of rear extension",
                      "status": "under-consideration",
                      "decision_date": null
                    }
                  ],
                  "council": "Bristol"
                },
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "No planning applications found for postcode."
          }
        }
      }
    }
  },
  "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."
      }
    }
  }
}
