BaZi Time Correction
BaZi Time Correction API
/api/v1/chinese/bazi/time-correctionConvert civil clock time into Local Mean Time and true solar time for BaZi workflows. Use it when your app needs to show the correction math, audit an hour-pillar shift, or explain why time_standard changes the result.
Authentication
This endpoint is authenticated. Include x-api-key: YOUR_API_KEY with every production request. It uses the same account key and rate-limit system as the other Chinese astrology endpoints.
Full URL
https://api.freeastroapi.com/api/v1/chinese/bazi/time-correctionRequest Parameters
Example Request
curl -X POST "https://api.freeastroapi.com/api/v1/chinese/bazi/time-correction" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"year": 2025,
"month": 12,
"day": 30,
"hour": 12,
"minute": 0,
"lat": 48.8566,
"lng": 2.3522,
"tz_str": "Europe/Paris"
}'Response Fields
Sample Response
{
"civil_time": "2025-12-30T12:00:00",
"lmt": "2025-12-30T11:09:24.528000",
"true_solar_relative": "2025-12-30T11:06:48.691710",
"true_solar_absolute": "2025-12-30T11:06:48.691710",
"equation_of_time_minutes": -2.6,
"longitude_correction_minutes": -50.59,
"standard_meridian": 15.0,
"resolved_timezone": "Europe/Paris",
"dst_offset_hours": 0.0,
"modalities": {
"civil": "Wall clock time. Standardized, but ignores local solar reality.",
"true_solar": "Relative Solar Time. Corrects for position within your timezone. Preserves the 'feel' of the hour.",
"true_solar_absolute": "Absolute Sundial. Pure solar time based on longitude and Earth's orbit. Ignores timezones entirely."
}
}When to Use This Endpoint
Use this endpoint when you need a transparent breakdown of the conversion from civil time totrue_solar or true_solar_absolute.
If your app only needs the final Four Pillars chart, callBaZi chartdirectly and set time_standard in that request.
FAQ
Does the BaZi time correction endpoint require an API key?
Yes. Production requests must include x-api-key with your FreeAstroAPI key. The website calculator is not a substitute for application authentication.
Should I call time-correction before every BaZi chart request?
No. If you only need a BaZi chart, call /api/v1/chinese/bazi directly and set time_standard to true_solar or true_solar_absolute. Use this endpoint when you need to display or audit the time conversion itself.
Can I use a city instead of coordinates?
Yes, but direct lat/lng values are more deterministic for production apps. If you provide city, the API attempts coordinate lookup before calculating the correction.