{
  "openapi": "3.1.0",
  "info": {
    "title": "Balkan One Geopolitical Intelligence API",
    "version": "1.0.0",
    "description": "Public and programmatic interfaces for Balkan One geopolitical analysis, think tank publications, and strategic infrastructure datasets across 12 Balkan nations.",
    "contact": {
      "name": "Balkan One Research Desk",
      "email": "info@balkanone.org",
      "url": "https://balkan.one/about#contact"
    },
    "license": {
      "name": "Creative Commons Attribution-NonCommercial 4.0 International",
      "url": "https://creativecommons.org/licenses/by-nc/4.0/"
    }
  },
  "servers": [
    {
      "url": "https://balkan.one",
      "description": "Production Server"
    }
  ],
  "paths": {
    "/research": {
      "get": {
        "summary": "Search geopolitical research reports and news",
        "operationId": "searchReports",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "description": "Search keyword or topic",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "country",
            "in": "query",
            "description": "Filter by Balkan nation slug",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["albania", "bosnia", "bulgaria", "croatia", "greece", "kosovo", "north-macedonia", "montenegro", "romania", "serbia", "slovenia", "turkey"]
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Output language across 8 regional languages",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["en", "tr", "sh", "sq", "el", "bg", "ro", "it"],
              "default": "en"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Research reports matching the search criteria"
          }
        }
      }
    },
    "/country/{slug}": {
      "get": {
        "summary": "Retrieve country strategic dossier and indicators",
        "operationId": "getCountryDossier",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Target country slug",
            "schema": {
              "type": "string",
              "enum": ["albania", "bosnia", "bulgaria", "croatia", "greece", "kosovo", "north-macedonia", "montenegro", "romania", "serbia", "slovenia", "turkey"]
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Output language across 8 regional languages",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["en", "tr", "sh", "sq", "el", "bg", "ro", "it"],
              "default": "en"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Detailed country geopolitical profile, indicators, and recent reports"
          }
        }
      }
    },
    "/subscribe": {
      "post": {
        "summary": "Subscribe to weekly strategic dispatches",
        "operationId": "subscribeDispatch",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["email"],
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Subscription confirmed"
          }
        }
      }
    },
    "/feed.xml": {
      "get": {
        "summary": "Syndicated RSS 2.0 Feed of intelligence dispatches",
        "operationId": "getFeedRss",
        "responses": {
          "200": {
            "description": "XML RSS feed"
          }
        }
      }
    },
    "/.well-known/mcp.json": {
      "get": {
        "summary": "Model Context Protocol (MCP) server manifest",
        "operationId": "getMcpManifest",
        "responses": {
          "200": {
            "description": "MCP Server specification card"
          }
        }
      }
    }
  }
}
