{
  "openapi": "3.1.0",
  "info": {
    "title": "PokéEvent Public Feeds & Search API",
    "version": "1.0.0",
    "description": "Read-only public endpoints for live and upcoming Pokémon GO events, schedules, guides, and agent search on pokemongoevents.com.",
    "contact": {
      "name": "PokéEvent",
      "url": "https://pokemongoevents.com/contact",
      "email": "pokevent@ayoubzulfiqar.com"
    }
  },
  "servers": [
    {
      "url": "https://pokemongoevents.com",
      "description": "Production edge server"
    }
  ],
  "paths": {
    "/.well-known/search": {
      "get": {
        "operationId": "searchSiteForAgents",
        "summary": "Search site content for AI agents",
        "description": "Searches live and upcoming Pokémon GO events, recurring schedules, game mechanics, promo codes, and guides, returning ranked Markdown chunks.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "Keywords or natural-language search query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ranked search results formatted as Markdown",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/calendar.json": {
      "get": {
        "operationId": "getCalendarJson",
        "summary": "Get active and upcoming Pokémon GO events in JSON",
        "responses": {
          "200": {
            "description": "Canonical JSON feed of active and upcoming events",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/calendar.ics": {
      "get": {
        "operationId": "getCalendarIcs",
        "summary": "Get active and upcoming Pokémon GO events in iCalendar format",
        "responses": {
          "200": {
            "description": "iCalendar (.ics) feed",
            "content": {
              "text/calendar": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "operationId": "getLlmsTxt",
        "summary": "Get AI-readable site summary and live event schedule",
        "responses": {
          "200": {
            "description": "Markdown summary per llmstxt.org",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}
