{
 "openapi": "3.1.0",
 "info": {
  "title": "GenesisCore Astrology Guide API",
  "version": "1.1.0",
  "description": "Free, no-key JSON API for Western (tropical) and Vedic (sidereal, Lahiri) planet signs, Moon nakshatra and Ascendant/MC/Lagna. Astronomy Engine 2.1.19. Please keep a link to the GenesisCore Astrology Guide where results are shown. Also available as a remote MCP server at https://genesis-astro-guide-r2owtywexa-an.a.run.app/mcp.",
  "contact": {
   "url": "https://genesis-astro-guide-r2owtywexa-an.a.run.app/en/developers"
  }
 },
 "servers": [
  {
   "url": "https://genesis-astro-guide-r2owtywexa-an.a.run.app"
  }
 ],
 "externalDocs": {
  "url": "https://genesis-astro-guide-r2owtywexa-an.a.run.app/en/developers"
 },
 "paths": {
  "/api/v1/chart": {
   "get": {
    "operationId": "getChart",
    "summary": "Planet signs (tropical and sidereal) for a birth moment",
    "parameters": [
     {
      "name": "date",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "format": "date"
      },
      "description": "YYYY-MM-DD, 1900-2100"
     },
     {
      "name": "time",
      "in": "query",
      "schema": {
       "type": "string",
       "pattern": "^\\d{1,2}:\\d{2}$",
       "default": "12:00"
      },
      "description": "Local time HH:MM (24h)"
     },
     {
      "name": "offset",
      "in": "query",
      "schema": {
       "type": "number",
       "minimum": -12,
       "maximum": 14,
       "default": 0
      },
      "description": "Hours from UTC, e.g. 9 Tokyo, 5.5 India, -3 Sao Paulo"
     },
     {
      "name": "lat",
      "in": "query",
      "schema": {
       "type": "number",
       "minimum": -66,
       "maximum": 66
      },
      "description": "Latitude for Ascendant/MC/Lagna"
     },
     {
      "name": "lon",
      "in": "query",
      "schema": {
       "type": "number",
       "minimum": -180,
       "maximum": 180
      },
      "description": "Longitude, east positive"
     },
     {
      "name": "lang",
      "in": "query",
      "schema": {
       "type": "string",
       "enum": [
        "en",
        "ja"
       ],
       "default": "ja"
      },
      "description": "Language of links"
     }
    ],
    "responses": {
     "200": {
      "description": "Chart",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "input": {
           "type": "object"
          },
          "tropical": {
           "type": "object"
          },
          "sidereal_lahiri": {
           "type": "object"
          },
          "moon_nakshatra_lahiri": {
           "type": "string"
          },
          "angles": {
           "type": "object"
          },
          "ayanamsa_lahiri": {
           "type": "number"
          },
          "links": {
           "type": "object"
          },
          "full_reading": {
           "type": "object"
          },
          "attribution": {
           "type": "object"
          }
         }
        }
       }
      }
     },
     "400": {
      "description": "Invalid input"
     }
    }
   }
  }
 }
}