What the API accepts
| Field | Format | Notes |
|---|---|---|
date | YYYY-MM-DD | Local calendar date of birth |
time | HH:MM or HH:MM:SS, 24-hour | Local clock time; seconds optional |
tz_offset_minutes | integer, -840..840 | Offset from UTC in force at that moment, east positive: IST is 330 |
lat, lng | decimal degrees | -90..90 and -180..180 |
The API converts with UT = local time - tz_offset_minutes, rolling the date if needed. It does not look up time-zone names or apply daylight-saving rules - you send the offset that applied. The schema is strict, so a timezone: "Asia/Kolkata" field is rejected rather than silently ignored:
// time: "25:10"
{ "code": "VALIDATION_ERROR", "message": "hour must be 0..23, got 25" }
// an extra "timezone" key
{ "code": "VALIDATION_ERROR", "message": "Request validation failed",
"details": [{ "keyword": "unrecognized_keys",
"message": "Unrecognized key: \"timezone\"" }] }Why the offset must be the historical one
Clock rules change. Daylight saving starts and stops on dates that differ by country and year, and many places have changed their standard offset outright. India is the classic trap for Vedic software: during the Second World War Indian clocks ran an hour ahead of IST (UTC+6:30), and some cities kept their own local times for years after independence. A birth certificate records the clock on the wall, so the offset has to be the one that clock was set to.
Get it from a time-zone database rather than a fixed table: resolve the birthplace to an IANA zone (from its coordinates), then ask for that zone's offset at the local birth date and time. Most languages ship this - Intl.DateTimeFormat in JavaScript, zoneinfo in Python. Do it on your side; the API deliberately accepts only the result.
What one hour changes
The same birth - 24 April 1973, 17:25, Mumbai - sent with tz_offset_minutes: 330 and then 390 (the wartime offset, applied by mistake):
| Offset 330 (correct) | Offset 390 (one hour off) | |
|---|---|---|
| Ascendant (charts/birth) | Virgo 19°46′ | Virgo 5°32′ |
| Moon nakshatra | Uttara Ashadha, pada 1 | Purva Ashadha, pada 4 |
| First Vimshottari dasha (dasha/vimshottari) | Sun, 5.94 years remaining | Venus, 0.56 years remaining |
The ascendant moved 14°, and because the Moon crossed into the previous nakshatra, the entire dasha sequence changed - every period date the API returns for this person would be wrong. Planet longitudes barely move in an hour; the ascendant, the houses and anything derived from the Moon's nakshatra move a lot.
Checklist
- Store the birthplace's coordinates and IANA zone, not just a city name.
- Resolve the offset for the local birth date and time, then send
tz_offset_minutes. - If the birth time is approximate, say so in your UI: the ascendant and houses are the first things to become unreliable.
- Unknown birth time? Many apps send noon. Sign- and nakshatra-level results usually survive that; ascendant-based ones do not.
Questions
- Does the API accept a time-zone name such as Asia/Kolkata?
- No. You send
tz_offset_minutes: the offset in force at the moment of birth, east positive (IST is 330). The schema is strict, so atimezonefield is rejected rather than silently ignored. - Does the API apply daylight saving time for me?
- No. It converts with UT = local time -
tz_offset_minutesand does not look up time-zone names or daylight-saving rules. You send the offset that applied at that place on that date.