AstroWay/api v2.26.0 · de
усі системи в нормі

Rectification API: Birth Time Correction for Developers

Rectification is the process of correcting an unknown or imprecise birth time using life events. This post shows how to automate it via API with algorithmic and Trutine of Hermes methods.

Most astrology users know their birth date, but not the exact time. A 30-minute difference can change the ascendant by 5+ degrees, shifting house placements and aspects. For serious astrology work, this matters.

The astrologer’s technique for fixing this is rectification — using known life events to back-calculate the likely birth time. Traditionally it takes hours of manual work. AstroWay exposes two algorithmic rectification endpoints that automate it.

This post is about when to use rectification, how the algorithms work, and how to integrate it into your app.

Rectification is birth time correction. You start with an approximate time (e.g. “morning” or “around 14:00”) and narrow it down using:

  • Major life events (marriage, children, career changes, deaths)
  • Physical characteristics (classical astrology maps ascendant signs to body types)
  • Angular positions of planets at birth

The output is a refined birth time, usually within ±5 minutes of the true value.

1. Trutine of Hermes (/v1/rectification/trutine) — 250 credits

Section titled “1. Trutine of Hermes (/v1/rectification/trutine) — 250 credits”

A classical method attributed to Hermes Trismegistus. It uses the relationship between the Moon’s position at birth and the ascendant/descendant at conception (~9 months earlier).

The method:

  1. Takes the native’s birth date (approximate)
  2. Calculates the conception date range (260–290 days earlier)
  3. For each candidate conception date, checks if the birth Moon’s position corresponds to the ascendant/descendant at conception
  4. Returns candidate birth times ranked by fit

Fast but less precise. Good for narrowing a wide window (e.g. “morning” → 2-hour window).

const result = await client.rectificationTrutine({
date: '1990-07-14',
timeRange: { start: '06:00:00', end: '12:00:00' },
latitude: 50.4501,
longitude: 30.5234,
timezoneOffset: 3,
});
console.log(`Best candidate: ${result.bestTime}`);
console.log(`Confidence: ${result.confidence}`);

2. Full rectification (/v1/rectification) — 500 credits

Section titled “2. Full rectification (/v1/rectification) — 500 credits”

Algorithmic approach using multiple life events. This is the heavyweight option (up to 120s per request).

Inputs:

  • Approximate birth time (a range)
  • List of life events with dates and types
  • Optional: physical description

The algorithm:

  1. Generates candidate birth times within the range (typically 1-minute resolution)
  2. For each candidate, calculates the natal chart
  3. Scores each candidate by how well the events match predicted astrological patterns (progressions, directions, transits)
  4. Returns the top candidates with confidence scores
const result = await client.rectification({
date: '1990-07-14',
timeRange: { start: '06:00:00', end: '18:00:00' },
latitude: 50.4501,
longitude: 30.5234,
timezoneOffset: 3,
events: [
{ date: '2015-06-20', type: 'marriage' },
{ date: '2018-03-12', type: 'firstChild' },
{ date: '2020-09-05', type: 'careerChange' },
],
});
console.log(`Rectified time: ${result.bestTime}`);
console.log(`Candidates: ${result.candidates.length}`);

Rectification is valuable for:

  • Apps with “unknown time” users — auto-offer rectification as a premium feature
  • Professional astrologer tools — save hours of manual work per client
  • HD apps — Human Design is very sensitive to time; rectification dramatically improves accuracy
  • Research apps — validate historical charts where time records are imprecise

It’s not useful for:

  • Apps where users already know their time within ±5 minutes (no benefit)
  • Casual horoscope apps where time precision doesn’t affect output (daily sun sign doesn’t need this)
  • Trutine: 250 credits — runs in ~1–2 seconds
  • Full rectification: 500 credits — runs in up to 120 seconds

These are the heaviest endpoints in the API. If you’re offering rectification as a feature, charge accordingly — it’s a premium operation that justifies a higher-tier subscription or one-time purchase.

For budget planning:

  • 100 rectifications per month: ~50,000 credits = Pro plan ($59) with room for other calls
  • 1,000 rectifications per month: 500,000 credits = Enterprise

Rectification takes time. Your UI needs:

  • Async handling — don’t block on the request; queue it, show progress
  • Progress indicator — the full endpoint runs up to 120s; users need feedback
  • Result presentation — show the refined time, confidence level, and let users regenerate if events are uncertain
async function handleRectify(input: RectifyInput) {
setLoading(true);
setStatus('Running rectification (this may take up to 2 minutes)...');
try {
const result = await client.rectification(input);
setResult(result);
setStatus(`Done. Refined time: ${result.bestTime} (confidence ${result.confidence}%)`);
} catch (err) {
setStatus(`Error: ${err.message}`);
} finally {
setLoading(false);
}
}

A typical rectification flow in an app:

  1. User enters approximate birth data + life events
  2. App calls /v1/rectification/trutine first (cheap, fast) to narrow the window
  3. App calls /v1/rectification (full) with the narrowed window for precision
  4. App caches the result and uses the refined time for all future calculations
  5. App flags future calls with the refined time + a note “rectified from approximate”

This combined approach is ~750 credits per full rectification flow but gives the best accuracy.

Rectification is never 100% accurate. Even professional astrologers disagree on best-fit times by 5–10 minutes.

AstroWay’s algorithm is designed for relative accuracy — it narrows the window, but the output is always a “best candidate”, not a certainty. Always show users the confidence score and let them override if they have better information.

When traditional rectification beats algorithms

Section titled “When traditional rectification beats algorithms”

Algorithms are pattern-matching. A skilled astrologer considers context that’s hard to encode: “Was the marriage rushed?” “Was the career change voluntary?” For high-stakes charts, combine:

  1. Algorithmic rectification to narrow the window
  2. Manual review by astrologer for the final refinement

Your app can offer this as a premium consultation upsell.

AstroWay team

Інженерна команда AstroWay API. Ми загортаємо Swiss Ephemeris у чистий REST і пишемо про нудні деталі, які насправді важливі.

// побудуй на цьому

Той самий Swiss Ephemeris, що й у Solar Fire — у 4 рядках коду.

Безкоштовний ключ без картки. 5 000 викликів на місяць до першої оплати.

Більше з блогу усі дописи →

Industry 2026-04-14

Best Astrology APIs in 2026: A Developer's Comparison

A factual comparison of the major astrology APIs available to developers in 2026 — endpoints, pricing, SDKs, accuracy. No marketing fluff.

Engineering 2026-04-14

How to Build an Astrology App: A Complete Developer Guide

Step-by-step guide to building an astrology app from scratch — API choice, architecture, first natal chart, adding synastry and transits, deployment.

Human Design 2026-04-14

Human Design API: Build HD Apps with 12 Endpoints

Everything developers need to know about building Human Design apps via API. 12 endpoints, bodygraph calculation, group dynamics with Penta, code examples.