{
  "openapi": "3.0.3",
  "info": {
    "title": "T.R.U.T.H. News Network API",
    "description": "Public and programmatic REST API for Truth News Network articles, live radio streaming, town defense radar, and municipal election ballots.",
    "version": "1.0.0",
    "contact": {
      "name": "T.R.U.T.H. News Editorial Desk",
      "url": "https://truthnewsconquerearthmc.fun"
    }
  },
  "servers": [
    {
      "url": "https://truthnewsconquerearthmc.fun",
      "description": "Production Server"
    }
  ],
  "paths": {
    "/api.php": {
      "get": {
        "summary": "Execute API Action",
        "description": "Query news data, radar status, articles, and broadcast metadata.",
        "parameters": [
          {
            "name": "action",
            "in": "query",
            "required": true,
            "description": "API action identifier (e.g. get_articles, search, get_stream_info, get_election_data, health)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Search keyword query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Number of records to retrieve",
            "schema": {
              "type": "integer",
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful JSON response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
