{
  "openapi": "3.1.0",
  "info": {
    "title": "Albania Audio Tours public API",
    "version": "1.0.0",
    "description": "Public, read-only JSON endpoints used by albaniaaudiotours.com. No authentication. For AI agents, the MCP server at /mcp offers the same data in a tool-friendly form.",
    "contact": {
      "name": "Albania Audio Tours",
      "url": "https://albaniaaudiotours.com/p/contact"
    }
  },
  "servers": [
    {
      "url": "https://albaniaaudiotours.com"
    }
  ],
  "paths": {
    "/api/sites": {
      "get": {
        "operationId": "listDestinations",
        "summary": "List destinations",
        "parameters": [
          {
            "name": "view",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "lite"
              ]
            },
            "description": "Use 'lite' for a compact list (short descriptions, first image)."
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "al",
                "de",
                "it",
                "fr",
                "es",
                "gr",
                "ru",
                "ar",
                "pt",
                "cn"
              ],
              "default": "en"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Destinations",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/sites/{slug}": {
      "get": {
        "operationId": "getDestination",
        "summary": "Get one destination",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Destination",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    },
    "/api/attractions": {
      "get": {
        "operationId": "listAttractions",
        "summary": "List attractions",
        "parameters": [
          {
            "name": "view",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "lite"
              ]
            },
            "description": "Use 'lite' for a compact list (short descriptions, first image)."
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "al",
                "de",
                "it",
                "fr",
                "es",
                "gr",
                "ru",
                "ar",
                "pt",
                "cn"
              ],
              "default": "en"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Attractions",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/attractions/{destinationSlug}": {
      "get": {
        "operationId": "listAttractionsByDestination",
        "summary": "Attractions of one destination",
        "parameters": [
          {
            "name": "destinationSlug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Attractions",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/attractions/{destinationSlug}/{slug}": {
      "get": {
        "operationId": "getAttraction",
        "summary": "Get one attraction",
        "parameters": [
          {
            "name": "destinationSlug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Attraction",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    },
    "/api/itineraries": {
      "get": {
        "operationId": "listWalkingRoutes",
        "summary": "Published walking routes",
        "responses": {
          "200": {
            "description": "Walking routes",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/cms/pages": {
      "get": {
        "operationId": "listPages",
        "summary": "Published pages and articles",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "blog",
                "landing",
                "info"
              ]
            }
          },
          {
            "name": "view",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "list"
              ]
            },
            "description": "Use 'list' for titles, excerpts and URLs only."
          }
        ],
        "responses": {
          "200": {
            "description": "Pages",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/cms/pages/{slug}": {
      "get": {
        "operationId": "getPage",
        "summary": "Get one published page",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Page",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    },
    "/p/{slug}.md": {
      "get": {
        "operationId": "getPageMarkdown",
        "summary": "Published page as Markdown",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Markdown",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    }
  }
}