{"openapi":"3.1.0","info":{"title":"India Panchang API","description":"Pay-per-call Hindu almanac (panchang): tithi, nakshatra, yoga, karana, vara, sunrise/sunset for any Indian city and date. Computed locally with Skyfield + JPL ephemeris (Lahiri ayanamsa). Powered by x402 — pay in USDC on Base.","version":"0.1.0","contact":{"name":"India Panchang API","email":"pankaj.kumar@antiersolutions.com"}},"paths":{"/panchang/cities":{"get":{"summary":"List Cities","description":"FREE discovery: the cities this API supports (name → state, lat/lon).","operationId":"list_cities_panchang_cities_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/panchang/{date}/{city}":{"get":{"summary":"Panchang","description":"Full panchang (tithi, nakshatra, yoga, karana, vara, sunrise/sunset) for a\ndate and city, computed at local sunrise. Date is ISO YYYY-MM-DD.","operationId":"panchang_panchang__date___city__get","parameters":[{"name":"date","in":"path","required":true,"schema":{"type":"string","title":"Date"}},{"name":"city","in":"path","required":true,"schema":{"type":"string","title":"City"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"Payment Required — sign USDC payment on Base and retry with X-PAYMENT header"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"protocols":[{"x402":{}}],"offers":[{"intent":"charge","method":"x402","amount":"10000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","description":"$0.01 USDC — Full panchang for a date + city","scheme":"exact","network":"eip155:8453","payTo":"0xF96d2A2BDEdaFa702104e2386Af78FbECE04CEB3"}]}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/.well-known/x402.json":{"get":{"summary":"X402 Manifest","operationId":"x402_manifest__well_known_x402_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"x-guidance":"This API is monetised with the x402 protocol. Request /panchang/{date}/{city} to receive an HTTP 402 challenge with on-chain payment requirements (USDC on eip155:8453). Sign the payment from a wallet that is NOT the payTo address, then retry with the signed X-PAYMENT header. /panchang/cities is free."}