{
  "openapi": "3.0.1",
  "info": {
    "title": "Vedic Astrology API — Kundli, KP, Dasha & Lal Kitab",
    "description": "Vedic birth charts (kundli) for any date, time and place: planets with nakshatra, KP cusps with sub lords, D1-D60 vargas, Vimshottari dasha, panchang, Manglik, Sade Sati, Kaal Sarp, yogas and Lal Kitab. Batch runs or a real-time API, pay per chart.",
    "version": "0.1",
    "x-build-id": "WlXAR300ScUlRDMyP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~vedic-kundli-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-vedic-kundli-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/yugenox~vedic-kundli-api/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-vedic-kundli-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/yugenox~vedic-kundli-api/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-vedic-kundli-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "charts"
        ],
        "properties": {
          "charts": {
            "title": "Birth charts",
            "type": "array",
            "description": "One object per person. Required: \"date\" (YYYY-MM-DD), \"time\" (HH:mm, 24h, or \"10:30 PM\") and \"place\" (\"City, Country\"), or \"latitude\" + \"longitude\" instead of the place. Optional: \"name\", \"gender\" (male/female), \"id\" (your own reference, echoed back), \"timezone\" (IANA, e.g. \"Asia/Kolkata\"), \"utcOffset\" (e.g. 5.5 or \"+05:30\", overrides the time zone), \"countryHint\". Daylight saving time and historical offsets are applied automatically from the place. Also accepted: dates like 15/06/1990 or \"15 June 1990\", ISO timestamps with an offset (\"1990-06-15T10:30:00+05:30\"), times like \"10.30\" or \"1030\", and coordinates like \"28N39\" / \"77E13\" or \"28.65N\"."
          },
          "modules": {
            "title": "Modules",
            "type": "array",
            "description": "What to compute for every chart. Leave empty for the default set (birthDetails, avkahada, planets, kp, vargas, vimshottari, manglik, sadeSati, kalsarpa, yogas, lalKitab). Modules marked [text report] return narrative text and are billed as premium add-ons. Use \"all\" for everything or \"allFacts\" for everything except the text reports.",
            "items": {
              "type": "string",
              "enum": [
                "birthDetails",
                "avkahada",
                "planets",
                "kp",
                "vargas",
                "vimshottari",
                "manglik",
                "sadeSati",
                "kalsarpa",
                "yogas",
                "lalKitab",
                "yogini",
                "charDasha",
                "ashtakavarga",
                "prastharashtakavarga",
                "bhavChalit",
                "shadbala",
                "ghatak",
                "upagrahas",
                "karakas",
                "avasthas",
                "navtara",
                "friendship",
                "westernAspects",
                "bhavMadhyaAspects",
                "kpCuspAspects",
                "lalKitabDasha",
                "lalKitabVarshphal",
                "panchadhikari",
                "rulingPlanetsNow",
                "lalKitabPredictions",
                "lifePredictions",
                "ascendantReport",
                "nakshatraReport",
                "moonSignReport",
                "mahadashaPredictions",
                "transitPredictions",
                "gemstoneReport",
                "rudrakshaReport",
                "remedies",
                "manglikRemedies",
                "allFacts",
                "all"
              ],
              "enumTitles": [
                "Birth details & panchang at birth",
                "Avkahada chakra (varna, yoni, gana, nadi, nakshatra…)",
                "Planet positions (sign, degree, nakshatra, pada, house)",
                "KP system: planets & cusps with star/sub/sub-sub lords, significators, ruling planets",
                "Divisional charts (16 shodashvarga, D1–D60)",
                "Vimshottari dasha (maha / antar / pratyantar) + current period",
                "Mangal dosha",
                "Shani Sade Sati & Dhaiya periods",
                "Kaal Sarp dosha",
                "Yogas & doshas present",
                "Lal Kitab houses, teva type & debts",
                "Yogini dasha",
                "Jaimini Char dasha (maha + antar)",
                "Ashtakavarga (bhinna per planet + sarva)",
                "Prasthara ashtakavarga (contributor grids)",
                "Bhav chalit (house begin / mid-points)",
                "Shadbala & Bhavbala ranking",
                "Ghatak (malefics) & favourable points",
                "Upagrahas (Gulika, Maandi, Dhuma…)",
                "Jaimini karakas (sthir & chara)",
                "Planet avasthas (jagratadi, baladi, deeptadi)",
                "Navatara (tara bala)",
                "Planet friendship (permanent, temporal, five-fold)",
                "Planet-to-planet aspects (western)",
                "Aspects on bhav madhya",
                "Aspects on KP cusps",
                "Lal Kitab dasha",
                "Lal Kitab varshphal (current year)",
                "Varshphal panchadhikari (current year)",
                "KP ruling planets right now at the birth place (horary)",
                "Lal Kitab readings & remedies per planet (text) [text report]",
                "Life predictions (text) [text report]",
                "Ascendant report (text) [text report]",
                "Birth nakshatra report (text) [text report]",
                "Moon sign report (text) [text report]",
                "Vimshottari mahadasha predictions (text) [text report]",
                "Today's transit predictions (text) [text report]",
                "Gemstone recommendations (text) [text report]",
                "Rudraksha recommendations (text) [text report]",
                "Remedy recommendations (text) [text report]",
                "Mangal dosha explanation & remedies (text) [text report]",
                "Everything except text reports",
                "Everything"
              ]
            }
          },
          "ayanamsa": {
            "title": "Ayanamsa",
            "enum": [
              "lahiri",
              "kpNew",
              "kpOld",
              "raman",
              "kpKhullar",
              "tropical"
            ],
            "type": "string",
            "description": "Sidereal zodiac used for planets, vargas and dashas. The KP module always uses the KP (Krishnamurti new) ayanamsa, as the KP system prescribes.",
            "default": "lahiri"
          },
          "dashaLevels": {
            "title": "Dasha depth",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "Levels of Vimshottari / Yogini periods to list: 1 = mahadashas, 2 = + antardashas, 3 = + pratyantardashas, 4 = + sookshma. The current period is always given down to 5 levels.",
            "default": 2
          },
          "engine": {
            "title": "Engine",
            "enum": [
              "auto",
              "builtIn"
            ],
            "type": "string",
            "description": "Auto: full module set, with automatic fallback to the built-in ephemeris for the core numbers. Built-in only: planets, KP positions/cusps/lords, divisional charts and dashas computed entirely inside the actor (fastest; other modules unavailable).",
            "default": "auto"
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "perChart",
              "perModule"
            ],
            "type": "string",
            "description": "One dataset row per chart (all modules nested), or one row per chart × module.",
            "default": "perChart"
          },
          "maxCharts": {
            "title": "Max charts",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many charts (\"maxItems\" is accepted too). Duplicate charts in the list are computed and billed once.",
            "default": 1000
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "How many requests run at once. The default is a good balance of speed and reliability.",
            "default": 10
          },
          "includeRawText": {
            "title": "Include raw page text",
            "type": "boolean",
            "description": "Debugging aid: attach the plain text each module was parsed from.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy is used by default. Residential proxies take over automatically if requests start getting blocked.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}