Astrology API

Natal chart generation, planetary positions, daily/weekly/monthly transit forecasts, synastry compatibility, life forecasts, moon phases, lunar metrics and moon calendar data.

99.9 % Uptime
Response
20 req/s
0.05 Credits / request

Natal Chart


POST https://api.yeb.to/v1/astrology/natal-chart
ParameterTypeReq.Description
api_key string yes Your API key
birth_date string yes Date of birth in YYYY-MM-DD format
birth_time string opt Time of birth in HH:MM (24h). Enables rising sign & house placements
location string opt Birth location (city name or coordinates). Improves time zone & latitude accuracy
language string opt Language for the AI reading (ISO 639-1, e.g. en, es). Default: en

Example

curl -X POST https://api.yeb.to/v1/astrology/natal-chart \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "birth_date": "1990-04-15",
  "birth_time": "14:30",
  "location": "New York",
  "language": "en"
}'

Response Example

{
  "computed_data": {
    "sun": { "sign": "aries", "degree": 25.4 },
    "moon": { "sign": "cancer", "degree": 12.7 },
    "rising": { "sign": "leo", "degree": 3.2 },
    "planets": {
      "mercury": { "sign": "pisces", "degree": 18.9 },
      "venus": { "sign": "taurus", "degree": 7.3 },
      "mars": { "sign": "capricorn", "degree": 22.1 }
    },
    "aspects": [
      { "planet_a": "sun", "planet_b": "moon", "type": "square", "orb": 2.3 }
    ]
  },
  "reading": {
    "sun_sign": "Your Aries Sun gives you a pioneering spirit...",
    "moon_sign": "With Moon in Cancer, your emotional world is rich...",
    "rising_sign": "Leo rising presents a confident, warm exterior...",
    "key_aspects": "The Sun-Moon square creates dynamic tension...",
    "overall": "Your chart reveals a bold personality..."
  },
  "response_code": 200,
  "response_time_ms": 2450
}
{"error":"birth_date is required","code":422}

Response Codes

CodeDescription
200 SuccessRequest processed OK.
400 Bad RequestInput validation failed.
401 UnauthorizedMissing / wrong API key.
403 ForbiddenKey inactive or not allowed.
429 Rate LimitToo many requests.
500 Server ErrorUnexpected failure.

Natal Chart

astrology/natal-chart 0.0500 credits

Parameters

API Key
body · string · required
Birth Date
body · string · required
Birth Time
body · string
Location
body · string
Language
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Planetary Positions


POST https://api.yeb.to/v1/astrology/planetary-positions
ParameterTypeReq.Description
api_key string yes Your API key
birth_date string opt Date in YYYY-MM-DD format. Either birth_date or date is required
date string opt Date in YYYY-MM-DD format. Either birth_date or date is required
birth_time string opt Time in HH:MM (24h) for more precise positions
location string opt City name or coordinates for latitude/longitude corrections

Example

curl -X POST https://api.yeb.to/v1/astrology/planetary-positions \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "date": "2026-02-20"
}'

Response Example

{
  "sun": { "sign": "pisces", "degree": 1.23, "retrograde": false },
  "moon": { "sign": "scorpio", "degree": 15.67, "retrograde": false },
  "mercury": { "sign": "aquarius", "degree": 28.45, "retrograde": false },
  "venus": { "sign": "aries", "degree": 5.12, "retrograde": false },
  "mars": { "sign": "gemini", "degree": 18.34, "retrograde": false },
  "jupiter": { "sign": "cancer", "degree": 11.89, "retrograde": false },
  "saturn": { "sign": "pisces", "degree": 22.56, "retrograde": false },
  "response_code": 200,
  "response_time_ms": 120
}
{"error":"birth_date or date is required","code":422}

Response Codes

CodeDescription
200 SuccessRequest processed OK.
400 Bad RequestInput validation failed.
401 UnauthorizedMissing / wrong API key.
403 ForbiddenKey inactive or not allowed.
429 Rate LimitToo many requests.
500 Server ErrorUnexpected failure.

Planetary Positions

astrology/planetary-positions 0.0050 credits

Parameters

API Key
body · string · required
Birth Date
body · string
Date
body · string
Birth Time
body · string
Location
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Daily Transit


POST https://api.yeb.to/v1/astrology/daily-transit
ParameterTypeReq.Description
api_key string yes Your API key
sign string yes Zodiac sign (lowercase): aries, taurus, gemini, cancer, leo, virgo, libra, scorpio, sagittarius, capricorn, aquarius, pisces
date string opt Date in YYYY-MM-DD format. Default: today
language string opt Language for the AI reading (ISO 639-1). Default: en

Example

curl -X POST https://api.yeb.to/v1/astrology/daily-transit \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "sign": "aries",
  "date": "2026-02-20"
}'

Response Example

{
  "computed_data": {
    "sign": "aries",
    "period": "daily",
    "date": "2026-02-20"
  },
  "reading": {
    "overview": "Mars in your sign brings assertive energy...",
    "love": "Venus trine your Sun...",
    "career": "Mercury supports clear thinking...",
    "key_transit": "Mars conjunct natal Sun",
    "energy_level": "high"
  },
  "response_code": 200,
  "response_time_ms": 1850
}
{"error":"sign is required for generic transit forecasts","code":422}

Response Codes

CodeDescription
200 SuccessRequest processed OK.
400 Bad RequestInput validation failed.
401 UnauthorizedMissing / wrong API key.
403 ForbiddenKey inactive or not allowed.
429 Rate LimitToo many requests.
500 Server ErrorUnexpected failure.

Daily Transit

astrology/daily-transit 0.0200 credits

Parameters

API Key
body · string · required
Zodiac Sign
body · string · required
Date
body · string
Language
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Weekly Transit


POST https://api.yeb.to/v1/astrology/weekly-transit
ParameterTypeReq.Description
api_key string yes Your API key
sign string yes Zodiac sign (lowercase): aries, taurus, gemini, cancer, leo, virgo, libra, scorpio, sagittarius, capricorn, aquarius, pisces
language string opt Language for the AI reading (ISO 639-1). Default: en

Example

curl -X POST https://api.yeb.to/v1/astrology/weekly-transit \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "sign": "aries"
}'

Response Example

{
  "computed_data": {
    "sign": "aries",
    "period": "weekly"
  },
  "reading": {
    "overview": "This week brings a surge of creative energy as Venus enters your fifth house...",
    "highlights": [
      "Mon: Mercury trine Jupiter opens doors for negotiations",
      "Wed: Mars sextile Venus favors romantic connections",
      "Fri: Sun conjunct Neptune heightens intuition"
    ],
    "challenge_day": "Thursday",
    "best_day": "Saturday"
  },
  "response_code": 200,
  "response_time_ms": 2100
}
{"error":"sign is required for generic transit forecasts","code":422}

Response Codes

CodeDescription
200 SuccessRequest processed OK.
400 Bad RequestInput validation failed.
401 UnauthorizedMissing / wrong API key.
403 ForbiddenKey inactive or not allowed.
429 Rate LimitToo many requests.
500 Server ErrorUnexpected failure.

Weekly Transit

astrology/weekly-transit 0.0200 credits

Parameters

API Key
body · string · required
Zodiac Sign
body · string · required
Language
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Monthly Transit


POST https://api.yeb.to/v1/astrology/monthly-transit
ParameterTypeReq.Description
api_key string yes Your API key
sign string yes Zodiac sign (lowercase): aries, taurus, gemini, cancer, leo, virgo, libra, scorpio, sagittarius, capricorn, aquarius, pisces
month string opt Month in YYYY-MM format. Default: current month
language string opt Language for the AI reading (ISO 639-1). Default: en

Example

curl -X POST https://api.yeb.to/v1/astrology/monthly-transit \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "sign": "aries",
  "month": "2026-02"
}'

Response Example

{
  "computed_data": {
    "sign": "aries",
    "period": "monthly",
    "month": "2026-02"
  },
  "reading": {
    "overview": "February brings transformative energy to your career sector...",
    "career": "Jupiter in your tenth house supports ambitious goals...",
    "love": "Venus enters Pisces mid-month, softening your approach to romance...",
    "health": "Mars energy is high but watch for burnout around the 18th...",
    "key_dates": ["Feb 5", "Feb 14", "Feb 22"]
  },
  "response_code": 200,
  "response_time_ms": 2340
}
{"error":"sign is required for generic transit forecasts","code":422}

Response Codes

CodeDescription
200 SuccessRequest processed OK.
400 Bad RequestInput validation failed.
401 UnauthorizedMissing / wrong API key.
403 ForbiddenKey inactive or not allowed.
429 Rate LimitToo many requests.
500 Server ErrorUnexpected failure.

Monthly Transit

astrology/monthly-transit 0.0200 credits

Parameters

API Key
body · string · required
Zodiac Sign
body · string · required
Month
body · string
Language
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Natal Daily Transit


POST https://api.yeb.to/v1/astrology/natal-daily-transit
ParameterTypeReq.Description
api_key string yes Your API key
birth_date string yes Date of birth in YYYY-MM-DD format
birth_time string opt Time of birth in HH:MM (24h). Improves accuracy of transit aspects
location string opt Birth location (city name or coordinates)
date string opt Target date in YYYY-MM-DD. Default: today
language string opt Language for the AI reading (ISO 639-1). Default: en

Example

curl -X POST https://api.yeb.to/v1/astrology/natal-daily-transit \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "birth_date": "1990-04-15",
  "birth_time": "14:30",
  "location": "New York",
  "date": "2026-02-20"
}'

Response Example

{
  "computed_data": {
    "natal_chart": {
      "sun": { "sign": "aries", "degree": 25.4 }
    },
    "transits": [
      {
        "transit": "mars",
        "natal": "sun",
        "aspect": "conjunction",
        "orb": 1.2
      }
    ]
  },
  "reading": {
    "overview": "Today features a powerful Mars-Sun conjunction activating your natal chart...",
    "most_significant": "Mars conjunct natal Sun - expect a surge of energy and assertiveness...",
    "advice": "Channel this dynamic energy into physical activity or ambitious projects..."
  },
  "response_code": 200,
  "response_time_ms": 2680
}
{"error":"birth_date is required","code":422}

Response Codes

CodeDescription
200 SuccessRequest processed OK.
400 Bad RequestInput validation failed.
401 UnauthorizedMissing / wrong API key.
403 ForbiddenKey inactive or not allowed.
429 Rate LimitToo many requests.
500 Server ErrorUnexpected failure.

Natal Daily Transit

astrology/natal-daily-transit 0.0500 credits

Parameters

API Key
body · string · required
Birth Date
body · string · required
Birth Time
body · string
Location
body · string
Date
body · string
Language
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Natal Weekly Transit


POST https://api.yeb.to/v1/astrology/natal-weekly-transit
ParameterTypeReq.Description
api_key string yes Your API key
birth_date string yes Date of birth in YYYY-MM-DD format
birth_time string opt Time of birth in HH:MM (24h). Improves accuracy of transit aspects
location string opt Birth location (city name or coordinates)
language string opt Language for the AI reading (ISO 639-1). Default: en

Example

curl -X POST https://api.yeb.to/v1/astrology/natal-weekly-transit \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "birth_date": "1990-04-15",
  "birth_time": "14:30",
  "location": "New York"
}'

Response Example

{
  "computed_data": {
    "natal_chart": {
      "sun": { "sign": "aries", "degree": 25.4 }
    },
    "transits": []
  },
  "reading": {
    "overview": "This week your natal chart is activated by several key transits...",
    "day_by_day": {
      "monday": "Venus sextile natal Mercury enhances communication...",
      "wednesday": "Mars square natal Moon may stir emotional tension..."
    },
    "focus": "Relationships and personal boundaries are the main themes this week..."
  },
  "response_code": 200,
  "response_time_ms": 2920
}
{"error":"birth_date is required","code":422}

Response Codes

CodeDescription
200 SuccessRequest processed OK.
400 Bad RequestInput validation failed.
401 UnauthorizedMissing / wrong API key.
403 ForbiddenKey inactive or not allowed.
429 Rate LimitToo many requests.
500 Server ErrorUnexpected failure.

Natal Weekly Transit

astrology/natal-weekly-transit 0.0500 credits

Parameters

API Key
body · string · required
Birth Date
body · string · required
Birth Time
body · string
Location
body · string
Language
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Life Forecast


POST https://api.yeb.to/v1/astrology/life-forecast
ParameterTypeReq.Description
api_key string yes Your API key
birth_date string yes Date of birth in YYYY-MM-DD format
birth_time string opt Time of birth in HH:MM (24h)
location string opt Birth location (city name or coordinates)
months integer opt Forecast duration: 3–12 months. Default: 6
language string opt Language for the AI reading (ISO 639-1). Default: en

Example

curl -X POST https://api.yeb.to/v1/astrology/life-forecast \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "birth_date": "1990-04-15",
  "birth_time": "14:30",
  "location": "New York",
  "months": 6
}'

Response Example

{
  "computed_data": {
    "months": 6,
    "start": "2026-02",
    "end": "2026-07",
    "major_transits": []
  },
  "reading": {
    "overview": "The next six months bring significant shifts in your professional and personal life...",
    "monthly_themes": {
      "2026-02": "Saturn trine natal Sun stabilizes career foundations...",
      "2026-03": "Jupiter enters your seventh house opening partnership doors..."
    },
    "key_periods": []
  },
  "response_code": 200,
  "response_time_ms": 4120
}
{"error":"months must be between 3 and 12","code":422}

Response Codes

CodeDescription
200 SuccessRequest processed OK.
400 Bad RequestInput validation failed.
401 UnauthorizedMissing / wrong API key.
403 ForbiddenKey inactive or not allowed.
429 Rate LimitToo many requests.
500 Server ErrorUnexpected failure.

Life Forecast

astrology/life-forecast 0.0800 credits

Parameters

API Key
body · string · required
Birth Date
body · string · required
Birth Time
body · string
Location
body · string
Months
body · string
Language
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Synastry


POST https://api.yeb.to/v1/astrology/synastry
ParameterTypeReq.Description
api_key string yes Your API key
birth_date_a string yes Person A date of birth in YYYY-MM-DD format
birth_date_b string yes Person B date of birth in YYYY-MM-DD format
birth_time_a string opt Person A time of birth in HH:MM (24h)
birth_time_b string opt Person B time of birth in HH:MM (24h)
location_a string opt Person A birth location (city name or coordinates)
location_b string opt Person B birth location (city name or coordinates)
language string opt Language for the AI reading (ISO 639-1). Default: en

Example

curl -X POST https://api.yeb.to/v1/astrology/synastry \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "birth_date_a": "1990-04-15",
  "birth_date_b": "1992-08-03",
  "birth_time_a": "14:30",
  "birth_time_b": "09:15",
  "location_a": "New York",
  "location_b": "London"
}'

Response Example

{
  "computed_data": {
    "person_a": { "sun": { "sign": "aries", "degree": 25.4 } },
    "person_b": { "sun": { "sign": "leo", "degree": 12.1 } },
    "cross_aspects": [
      { "planet_a": "sun_a", "planet_b": "sun_b", "type": "trine", "orb": 1.3 }
    ],
    "scores": {
      "overall": 85,
      "romance": 90,
      "communication": 78,
      "longevity": 82
    }
  },
  "reading": {
    "overview": "This is a highly compatible pairing with strong fire-sign harmony...",
    "strengths": [
      "Sun-Sun trine creates natural understanding and mutual respect",
      "Venus-Mars aspects generate strong physical chemistry"
    ],
    "challenges": [
      "Moon square Moon may cause emotional misunderstandings",
      "Mercury opposition requires patience in daily communication"
    ],
    "advice": "Focus on giving each other space during emotional disagreements..."
  },
  "response_code": 200,
  "response_time_ms": 3540
}
{"error":"birth_date_a and birth_date_b are required","code":422}

Response Codes

CodeDescription
200 SuccessRequest processed OK.
400 Bad RequestInput validation failed.
401 UnauthorizedMissing / wrong API key.
403 ForbiddenKey inactive or not allowed.
429 Rate LimitToo many requests.
500 Server ErrorUnexpected failure.

Synastry

astrology/synastry 0.0500 credits

Parameters

API Key
body · string · required
Birth Date A
body · string · required
Birth Date B
body · string · required
Birth Time A
body · string
Birth Time B
body · string
Location A
body · string
Location B
body · string
Language
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Moon Phase


POST https://api.yeb.to/v1/astrology/moon-phase
ParameterTypeReq.Description
api_key string yes Your API key
date string opt Date in YYYY-MM-DD format. Default: today

Example

curl -X POST https://api.yeb.to/v1/astrology/moon-phase \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "date": "2026-02-20"
}'

Response Example

{
  "date": "2026-02-20",
  "phase_name": "Waxing Crescent",
  "illumination_pct": 23.5,
  "moon_age_days": 3.4,
  "moon_sign": "aries",
  "response_code": 200,
  "response_time_ms": 45
}
{"error":"Invalid date format. Use YYYY-MM-DD","code":422}

Response Codes

CodeDescription
200 SuccessRequest processed OK.
400 Bad RequestInput validation failed.
401 UnauthorizedMissing / wrong API key.
403 ForbiddenKey inactive or not allowed.
429 Rate LimitToo many requests.
500 Server ErrorUnexpected failure.

Moon Phase

astrology/moon-phase 0.0050 credits

Parameters

API Key
body · string · required
Date
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Lunar Metrics


POST https://api.yeb.to/v1/astrology/lunar-metrics
ParameterTypeReq.Description
api_key string yes Your API key
date string opt Date in YYYY-MM-DD format. Default: today

Example

curl -X POST https://api.yeb.to/v1/astrology/lunar-metrics \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "date": "2026-02-20"
}'

Response Example

{
  "date": "2026-02-20",
  "phase_name": "Waxing Crescent",
  "phase_emoji": "\ud83c\udf12",
  "illumination_pct": 23.5,
  "moon_age_days": 3.4,
  "moon_sign": "aries",
  "distance_km": 375420,
  "next_full_moon": "2026-03-03",
  "next_new_moon": "2026-03-19",
  "is_waxing": true,
  "response_code": 200,
  "response_time_ms": 52
}
{"error":"Invalid date format. Use YYYY-MM-DD","code":422}

Response Codes

CodeDescription
200 SuccessRequest processed OK.
400 Bad RequestInput validation failed.
401 UnauthorizedMissing / wrong API key.
403 ForbiddenKey inactive or not allowed.
429 Rate LimitToo many requests.
500 Server ErrorUnexpected failure.

Lunar Metrics

astrology/lunar-metrics 0.0050 credits

Parameters

API Key
body · string · required
Date
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Moon Calendar


POST https://api.yeb.to/v1/astrology/moon-calendar
ParameterTypeReq.Description
api_key string yes Your API key
start_date string yes Start date in YYYY-MM-DD format
end_date string opt End date in YYYY-MM-DD. Default: start_date + 30 days. Max range: 31 days
location string opt Location for moonrise/moonset times (city name or coordinates)

Example

curl -X POST https://api.yeb.to/v1/astrology/moon-calendar \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "start_date": "2026-02-01",
  "end_date": "2026-02-28"
}'

Response Example

{
  "start_date": "2026-02-01",
  "end_date": "2026-02-28",
  "days": [
    {
      "date": "2026-02-01",
      "phase_name": "Waxing Gibbous",
      "illumination_pct": 82.3,
      "moon_sign": "cancer"
    },
    {
      "date": "2026-02-02",
      "phase_name": "Waxing Gibbous",
      "illumination_pct": 89.1,
      "moon_sign": "leo"
    }
  ],
  "events": [
    { "date": "2026-02-12", "event": "Full Moon", "sign": "leo" },
    { "date": "2026-02-27", "event": "New Moon", "sign": "pisces" }
  ],
  "response_code": 200,
  "response_time_ms": 180
}
{"error":"start_date is required","code":422}

Response Codes

CodeDescription
200 SuccessRequest processed OK.
400 Bad RequestInput validation failed.
401 UnauthorizedMissing / wrong API key.
403 ForbiddenKey inactive or not allowed.
429 Rate LimitToo many requests.
500 Server ErrorUnexpected failure.

Moon Calendar

astrology/moon-calendar 0.0050 credits

Parameters

API Key
body · string · required
Start Date
body · string · required
End Date
body · string
Location
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Astrology API — Practical Guide

A comprehensive guide to the Astrology API: natal chart generation with AI readings, planetary positions, daily/weekly/monthly transit forecasts, personalized natal transits, long-term life forecasts, synastry compatibility analysis, and lunar data endpoints. Learn which endpoints return raw astronomical data and which include AI-powered interpretations.

#What the Astrology API does

The Astrology API provides 12 specialized endpoints covering the full spectrum of astrological computation and interpretation. From natal chart calculations with AI-powered readings to raw planetary position data, transit forecasts, synastry compatibility analysis, and detailed lunar metrics — everything an astrology app, horoscope service, or wellness platform needs.

#Endpoints at a glance

Endpoint What it does AI Credits
natal-chart Full natal chart with sun, moon, rising, planets, aspects & AI reading AI 0.05
planetary-positions Raw planetary positions (sign, degree, retrograde) for any date Data 0.005
daily-transit Generic daily transit forecast by zodiac sign AI 0.02
weekly-transit Generic weekly transit forecast by zodiac sign AI 0.02
monthly-transit Generic monthly transit forecast by zodiac sign AI 0.02
natal-daily-transit Personalized daily transits compared against natal chart AI 0.05
natal-weekly-transit Personalized weekly transits compared against natal chart AI 0.05
life-forecast Long-term personalized forecast (3–12 months) with major transit analysis AI 0.08
synastry Full synastry compatibility analysis between two charts with scores AI 0.05
moon-phase Current moon phase, illumination, age, and sign (data only) Data 0.005
lunar-metrics Detailed moon metrics: distance, next full/new moon, waxing/waning (data only) Data 0.005
moon-calendar Daily moon data and events for a date range up to 31 days (data only) Data 0.005

#Natal charts & birth data

A natal chart (birth chart) maps the positions of the Sun, Moon, planets, and zodiac signs at the exact moment and location of birth. The natal-chart endpoint calculates all of this and returns both the raw computed data and an AI-generated interpretation.

  • Sun sign: Core personality and life direction
  • Moon sign: Emotional world and inner self
  • Rising sign (Ascendant): How others perceive you (requires birth time)
  • Planetary positions: Mercury, Venus, Mars, Jupiter, Saturn, and outer planets
  • Aspects: Angular relationships between planets (conjunction, trine, square, opposition, sextile)

#POST /v1/astrology/natal-chart

  • Best for: Full birth chart generation with personalized AI interpretation
  • Required: birth_date (YYYY-MM-DD)
  • Optional: birth_time (HH:MM), location (city name or coordinates), language
  • Returns: Computed planetary data + AI reading (sun sign, moon sign, rising sign, key aspects, overall analysis)

#POST /v1/astrology/planetary-positions

  • Best for: Raw astronomical data for any date — no AI processing
  • Required: birth_date or date (YYYY-MM-DD)
  • Returns: Sign, degree, and retrograde status for Sun, Moon, Mercury, Venus, Mars, Jupiter, Saturn
  • Use case: Build your own chart renderer, populate dashboards, power custom interpretations

#Transit forecasts

Transits describe the current movement of planets through the zodiac and how they interact with natal chart positions. The API provides two categories: generic transits (by zodiac sign) and personalized natal transits (compared to your birth chart).

#Generic transits (by sign)

These endpoints produce horoscope-style readings for a zodiac sign. No birth data needed — just pass the sign parameter.

  • daily-transit — Today’s forecast covering love, career, and energy level
  • weekly-transit — Week overview with highlights, best day, and challenge day
  • monthly-transit — Month outlook with career, love, health themes and key dates

#Personalized natal transits

These endpoints compare current planetary positions against your actual natal chart for highly personalized readings. They require birth_date at minimum.

  • natal-daily-transit — Exact transit-to-natal aspects for today, with the most significant aspect highlighted
  • natal-weekly-transit — Day-by-day personalized outlook for the coming week
  • life-forecast — Long-range forecast covering 3 to 12 months with monthly themes and key periods

#Synastry & compatibility

The synastry endpoint compares two natal charts to analyze relationship compatibility. It calculates cross-aspects between both charts and produces numerical scores alongside AI-powered interpretation.

  • Cross-aspects: How Person A’s planets interact with Person B’s (conjunctions, trines, squares, etc.)
  • Scores: Overall compatibility, romance, communication, and longevity scores (0–100)
  • Interpretation: AI reading of strengths, challenges, and practical advice
  • Required: birth_date_a and birth_date_b
curl -X POST "https://api.yeb.to/v1/astrology/synastry" \
  -H "Content-Type: application/json" \
  -d '{
    "api_key": "YOUR_KEY",
    "birth_date_a": "1990-04-15",
    "birth_date_b": "1992-08-03",
    "birth_time_a": "14:30",
    "birth_time_b": "09:15",
    "location_a": "New York",
    "location_b": "London"
  }'

#Moon phase & lunar data

Three data-only endpoints provide comprehensive lunar information without AI processing, making them fast and cost-effective for real-time displays:

#POST /v1/astrology/moon-phase

  • Returns: Phase name, illumination percentage, moon age in days, moon sign
  • Optional: date (defaults to today)
  • Use case: Widgets, gardening apps, spiritual/wellness platforms

#POST /v1/astrology/lunar-metrics

  • Returns: Everything in moon-phase plus distance in km, next full/new moon dates, waxing/waning flag
  • Use case: Astronomy apps, tide calculations, detailed lunar dashboards

#POST /v1/astrology/moon-calendar

  • Returns: Daily moon data (phase, illumination, sign) and significant events (full moon, new moon) for a date range
  • Required: start_date
  • Limits: Maximum 31 days per request; end_date defaults to start + 30 days
  • Use case: Calendar views, planting guides, event planning tools

#Quick start

# Generate a natal chart
curl -X POST "https://api.yeb.to/v1/astrology/natal-chart" \
  -H "Content-Type: application/json" \
  -d '{
    "api_key": "YOUR_KEY",
    "birth_date": "1990-04-15",
    "birth_time": "14:30",
    "location": "New York"
  }'
# Get today's Aries horoscope
curl -X POST "https://api.yeb.to/v1/astrology/daily-transit" \
  -H "Content-Type: application/json" \
  -d '{"api_key": "YOUR_KEY", "sign": "aries"}'
# Check today's moon phase (data only)
curl -X POST "https://api.yeb.to/v1/astrology/moon-phase" \
  -H "Content-Type: application/json" \
  -d '{"api_key": "YOUR_KEY"}'
# Compatibility check between two people
curl -X POST "https://api.yeb.to/v1/astrology/synastry" \
  -H "Content-Type: application/json" \
  -d '{
    "api_key": "YOUR_KEY",
    "birth_date_a": "1990-04-15",
    "birth_date_b": "1992-08-03"
  }'

#Key parameters explained

ParamUsed inFormatWhy it matters
api_key All Via header (X-API-Key) or body param Authentication & credit deduction
birth_date natal-chart, planetary-positions, natal-daily-transit, natal-weekly-transit, life-forecast, synastry YYYY-MM-DD Core input for chart calculation
birth_time natal-chart, planetary-positions, natal-daily-transit, natal-weekly-transit, life-forecast, synastry HH:MM (24h) Enables rising sign and house placement calculation
location natal-chart, planetary-positions, natal-daily-transit, natal-weekly-transit, life-forecast, synastry, moon-calendar City name or coordinates Time zone and latitude correction for precision
sign daily-transit, weekly-transit, monthly-transit Lowercase zodiac name (e.g. aries, taurus) Determines which sign’s forecast to generate
language All AI endpoints ISO 639-1 code (e.g. en, es, fr) Language of the AI-generated reading
date planetary-positions, daily-transit, moon-phase, lunar-metrics YYYY-MM-DD Query a specific date (defaults to today)
months life-forecast Integer 3–12 (default 6) How far into the future the forecast extends

#Valid zodiac signs

Pass these lowercase values for the sign parameter:

aries, taurus, gemini, cancer, leo, virgo,
libra, scorpio, sagittarius, capricorn, aquarius, pisces

#Data-only vs AI-powered endpoints

FeatureData-onlyAI-powered
Endpoints planetary-positions, moon-phase, lunar-metrics, moon-calendar natal-chart, daily/weekly/monthly-transit, natal-daily/weekly-transit, life-forecast, synastry
Response time Fast (under 500ms) Slower (1–5s depending on complexity)
Credit cost Lower Higher (AI processing)
Language param Not applicable Supported — AI generates reading in chosen language
Use case Dashboards, widgets, raw data feeds Horoscope apps, readings, content generation

#Real-world use cases

#Daily horoscope app

Challenge: Serve personalized daily horoscopes to millions of users
Solution: Use daily-transit for generic forecasts (cache per sign per day), and natal-daily-transit for premium personalized readings

#Dating app compatibility

Challenge: Show astrological compatibility between matched users
Solution: synastry endpoint returns scores for romance, communication, and longevity — perfect for compatibility badges and detailed reports

#Wellness & planning platform

Challenge: Integrate moon phase data into a wellness/gardening/planning app
Solution: moon-calendar for monthly views, moon-phase for today’s widget, lunar-metrics for detailed astronomical data

#Content generation

Challenge: Generate weekly astrology content for a blog or newsletter
Solution: Loop through 12 signs with weekly-transit or monthly-transit, use the language parameter for multilingual publishing

#Best practices

  1. Cache generic transits: Daily/weekly/monthly forecasts are the same for all users of a sign — cache them aggressively
  2. Always send birth_time when available: Rising sign and house placements make readings significantly more accurate
  3. Use data-only endpoints for dashboards: planetary-positions, moon-phase, and lunar-metrics are fast and cheap
  4. Batch moon calendar requests: One moon-calendar call covers up to 31 days, avoiding repeated single-day lookups
  5. Use the language parameter: AI endpoints support multilingual output — generate readings in the user’s locale
  6. Handle rate limits: Implement exponential backoff for 429 responses
  7. Store birth data securely: Birth date + time + location is sensitive personal data — encrypt at rest

#Error handling

  • 401: Invalid or missing API key
  • 402: Insufficient credits
  • 422: Missing required parameters or invalid format (e.g. invalid date, unknown sign)
  • 429: Rate limit exceeded
  • 500: Server error (retry with exponential backoff)
// Common error responses
{"error": "birth_date is required", "code": 422}
{"error": "sign is required for generic transit forecasts", "code": 422}
{"error": "months must be between 3 and 12", "code": 422}
{"error": "Invalid API key", "code": 401}

#API Changelog

2026-02-20
v1.0 Launch: 12 endpoints covering natal charts, planetary positions, daily/weekly/monthly transits (generic and personalized), life forecasts, synastry compatibility, and three lunar data endpoints. AI-powered readings with multilingual support alongside fast data-only endpoints.

Frequently Asked Questions

Data-only endpoints (planetary-positions, moon-phase, lunar-metrics, moon-calendar) return pure JSON with no AI call and cost 0.005 credits. AI endpoints (natal-chart, transits, synastry, life-forecast) include computed data plus a generated reading.

Birth time is optional but recommended. Without it the API cannot calculate rising sign or house placements. Planetary positions and aspects are still computed from the birth date alone.

Generic transits (daily/weekly/monthly-transit) describe what the current sky means for a zodiac sign. Natal transits (natal-daily/weekly-transit) compare today's planets against your personal natal chart for a personalized forecast.

It calculates cross-aspects between two birth charts, house overlays, and compatibility scores for love, communication, growth and challenge. An AI reading summarizes the relationship dynamics.

Up to 31 days per request. The endpoint returns daily moon phase, sign, illumination percentage and void-of-course periods for each day in the range.

Data-only endpoints cost 0.005 credits. Generic transit forecasts cost 0.02 credits. Natal chart, natal transits and synastry cost 0.05 credits. Life forecast costs 0.08 credits.

Yes. Every request, even those resulting in errors, consumes credits. This is because your credits are tied to the number of requests, regardless of success or failure. If the error is clearly due to a platform problem on our end, we will restore the affected credits (no cash refunds).

Contact us at [email protected]. We take feedback seriously—if your bug report or feature request is meaningful, we can fix or improve the API quickly and grant you 50 free credits as a thank you.

It depends on the API and sometimes even on the endpoint. Some endpoints use data from external sources, which may have stricter limits. We also enforce limits to prevent abuse and keep our platform stable. Check the docs for the specific rate limit for each endpoint.

We operate on a credit system. Credits are prepaid, non-refundable units you spend on API calls and tools. Credits are consumed FIFO (oldest first) and are valid for 12 months from the purchase date. The dashboard shows each purchase date and its expiry.

Yes. All purchased credits (including fractional balances) are valid for 12 months from purchase. Unused credits automatically expire and are permanently deleted at the end of the validity period. Expired credits cannot be restored or converted to cash or other value. Transitional rule: credits bought before 22 Sep 2025 are treated as purchased on 22 Sep 2025 and expire on 22 Sep 2026 (unless an earlier expiry was stated at purchase).

Yes—within their validity window. Unused credits remain available and roll over month-to-month until they expire 12 months after purchase.

Credits are non-refundable. Only buy what you need—you can always top up later. If a platform-side error causes a failed charge, we may restore the affected credits after investigation. No cash refunds.

Prices are set in credits, not dollars. Each endpoint lists its own cost—see the “Credits / request” badge above. You’ll always know exactly what you’re spending.
← Back to APIs