How to Integrate KundaliAPI in Your Project
Learn how to integrate KundaliAPI in your web or mobile application with practical examples.
Published
Map your product to the catalog
Identify the data your screens need, then select the corresponding calculation endpoints. A birth chart, a Dasha timeline and a Panchang calendar require different response structures.
Keep API calls behind your server
Your application backend should own its KundaliAPI credentials. Do not embed private keys in browser bundles or mobile applications. Follow the actual authentication contract supplied during onboarding.
Validate before sending
Validate calendar dates, time values, latitude, longitude and timezone fields against the selected endpoint's schema. Keep any optional settings explicit so your product can reproduce its calculation requests.
Handle the response intentionally
Check the request status, handle errors and absent fields, and transform calculation data into the shape your UI needs. Use the Playground to compare a live response with the documented example.