{"openapi":"3.1.0","info":{"title":"Panchanga API","version":"enums-1","description":"One day's Hindu almanac for one place, computed from an ephemeris. Times are ISO 8601 with the place's own offset; the day runs sunrise to sunrise. Response types: /panchang.types.ts."},"paths":{"/api/v2/panchang":{"get":{"summary":"One day's panchang for one place","parameters":[{"name":"latitude","in":"query","required":true,"schema":{"type":"number","minimum":-90,"maximum":90}},{"name":"longitude","in":"query","required":true,"schema":{"type":"number","minimum":-180,"maximum":180}},{"name":"date","in":"query","required":false,"description":"YYYY-MM-DD, 1900–2199. Defaults to today in the place's own zone. The zone is derived from the coordinates; sending `timezone` is a 400.","schema":{"type":"string","format":"date"}},{"name":"language","in":"query","required":false,"description":"Swap every enumerated code for its name in this language. Omit it to get codes, which is what a client that reasons about a value must use.","schema":{"type":"string","enum":["kn","te","hi","ta","bn","gu","ml","or","en"]}}],"responses":{"200":{"description":"IPanchang (codes) or IPanchangNamed (with `language`)","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string"}}}}}},"429":{"description":"Rate limited"}}}},"/api/v2/panchang/enums":{"get":{"summary":"The code tables, and their names when `language` is given","parameters":[{"name":"language","in":"query","required":false,"description":"Swap every enumerated code for its name in this language. Omit it to get codes, which is what a client that reasons about a value must use.","schema":{"type":"string","enum":["kn","te","hi","ta","bn","gu","ml","or","en"]}}],"responses":{"200":{"description":"IPanchangEnums","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string"}}}}}}}}}}}