Transit API — Where everything is, and what it is about to do.

Retrograde countdowns, full moon alerts, eclipse maps, and the transits landing on a specific person's chart - the things that keep an astrology product alive between visits. Fourteen endpoints cover the tropical side properly, with Placidus cusps, essential dignity, minor aspects and worldwide eclipse visibility. Fifteen more cover sidereal, and one covers KP. Events arrive already phrased, already timed, already placed in past, present or future, in both UTC and the reader's own clock.

Get API Key → Read the docs
30+
Endpoints
2 zodiacs
Tropical & sidereal
<50ms
Median latency
JSON
Documented fields
Ari Tau Gem Can Leo Vir Lib Sco Sag Cap Aqu Pis Tropical & Sidereal the same sky, both ways

Placidus, Koch, Whole Sign · Sun through Pluto · Chiron, Lilith, Part of Fortune

  • Western in full Fourteen tropical endpoints, not a sidereal engine with the ayanamsa off.
  • Eclipse visibility Which countries and cities actually see it, filterable to one country.
  • Timed windows When an aspect enters orb, when it is exact, when it leaves.
  • Progress built in Days elapsed, days remaining and percent through, already counted.
  • Both clocks Every moment in UTC and local, any IANA time zone.
  • Swiss Ephemeris Positions that match the reference tables your users will check.
What you can launch this week

The sky, already turned
into something you can publish.

Mercury retrograde countdowns. Full moon alerts. Transit hits on a birth chart. Eclipse maps. These are the pages and push notifications that keep an astrology product alive between visits, and none of them need you to touch an ephemeris.

Retrograde trackers

  • What is retrograde right now, and until when
  • Each period comes with how far through it we are
  • Days elapsed and days left, already worked out
  • A ready-made progress bar for the most searched question in astrology

Moon phase widgets

  • Current phase with illumination as a percentage
  • The sign and exact degree the Moon is sitting in
  • Next new moon and next full moon, timed
  • A whole lunation traced from its new moon forward

Personal transit reports

  • Which transits are hitting a user's own chart
  • When each one begins, peaks and passes
  • Applying or separating, with orb and strength
  • The feature that turns a free reader into a subscriber

Eclipse maps and coverage

  • Which countries and cities will actually see it
  • Start, maximum and end times with total duration
  • Filter to a single country for local coverage
  • Positions given in both tropical and sidereal at once

Daily sky snapshots

  • Every planet's sign, degree and house right now
  • Essential dignity — domicile, exaltation, detriment, fall
  • Part of Fortune and Black Moon Lilith alongside
  • House cusps in whichever system your audience uses

Aspect feeds

  • Major and minor aspects with orb and strength
  • Timed windows — when an aspect enters, peaks and leaves
  • Between transiting planets, or against a birth chart
  • Enough to write a daily column from

Push notification engines

  • One call returns everything coming in the next month
  • Ingresses, stations, eclipses and phases, merged in order
  • Choose your window, from a week to a year ahead
  • Filter to the events your audience cares about

Ephemeris tables

  • A full month of daily positions in one response
  • Tropical for Western work, sidereal for Vedic
  • The classic reference page, generated rather than scanned
  • Evergreen pages that quietly earn traffic for years

Chart wheels on demand

  • A tropical wheel with glyphs, cusps and aspect lines
  • North and South Indian squares for Vedic audiences
  • Rendered and cached, delivered as a plain image link
  • No drawing library anywhere in your codebase

Swiss Ephemeris underneath, so the positions match the reference tables your users will check them against.

Western, in full

A tropical transit API
that stands on its own.

Fourteen endpoints on the Western side alone — not a sidereal engine with the ayanamsa switched off. Placidus cusps, essential dignity, minor aspects, timed windows, mundane eclipse visibility. Everything a Western practitioner would expect to find, and several things they would not.

Positions and angles

  • Sun through Pluto, with Chiron
  • House placement in your choice of system
  • Twelve cusps plus the four angles
  • Part of Fortune and Black Moon Lilith

Dignity

  • Domicile, exaltation, detriment and fall
  • Judged the Western way, not translated from Vedic
  • Returned with the position, not as a second call
  • The layer most transit APIs simply skip

Aspects, three ways

  • A snapshot of what is in aspect right now
  • Timed windows between two moving planets
  • Transits landing on a natal chart, dated
  • Majors and minors, with orb and strength

Events with timing

  • Retrograde and direct stations, to the minute
  • Sign ingress windows for every planet
  • Combustion periods near the Sun
  • All of it forward-looking, not just today

Eclipses, two kinds

  • Positional, for personal and transit work
  • Mundane, with worldwide city-level visibility
  • Dozens of countries listed per eclipse
  • Filter to one country for local coverage

Moon and ephemeris

  • Phases with illumination and exact degree
  • Full lunations traced from new moon forward
  • A month of daily positions in one call
  • A rendered tropical wheel when you want the picture
And the sidereal side

Serving India too?
It is the same key.

Fifteen more endpoints on the Vedic side, and one for KP. Not a translation layer — sign-based graha drishti where that is the right model, degree orbs where it is not, and nakshatras treated as the sidereal concept they are.

Three levels of detail

  • Basic for a quick where-are-the-grahas call
  • Advanced adds dignity, avastha and combustion
  • Extended adds Sanskrit names and navamsa
  • Pay for the weight you actually need

Nakshatra and drishti

  • Nakshatra transits with pada and lord
  • Parashari sign aspects, done properly
  • Degree-orb aspects when you want them instead
  • Ayanamsa and node type both your choice

Panchang in the timeline

  • Ekadashi, purnima and amavasya alongside transits
  • Merged into one chronological feed
  • Choose your window and your event types
  • Everything a daily notification needs, in one call

KP and charts

  • Placidus cusps with KP sub-lords
  • Ruling planets for the moment
  • D1 and D9 images, North and South styles
  • Rendered on our side, cached, linked
Why it saves you weeks

An event you can publish,
not a number to interpret.

Anyone can return a longitude. The work is everything that has to happen before a longitude becomes a sentence on a page.

Written for you

  • Events arrive with a title already phrased
  • Signs named at both ends of a movement
  • Degrees given readably, not as raw decimals
  • Drop it into a feed without a formatting pass

Positioned in time

  • Past, current or upcoming, already labelled
  • How many days away, already counted
  • How far through a period we are, as a percentage
  • Your progress bars come pre-filled

In the user's own time

  • Every moment given in UTC and local
  • Any IANA time zone accepted
  • No conversion bugs on your side
  • Durations formatted as well as counted

Thirty endpoints. Tropical and sidereal, Western dignity and Vedic drishti, KP cusps and mundane eclipse maps. One key, one JSON shape, one bill.

A tropical API that stands on its own

House cusps in your choice of system with all four angles, Western essential dignity returned alongside the position rather than as a second call, major and minor aspects with orb and strength, Part of Fortune and Black Moon Lilith, and a rendered circular wheel. The layers most transit APIs skip are the ones a Western practitioner checks first.

Events, not just positions

A longitude is a number. What you can publish is a retrograde that runs until October, an aspect that peaks on Thursday, an eclipse fifty-nine countries will see. Everything comes back with a phrased title, both endpoints of the movement named, the duration counted, and its place in time already labelled.

The transits hitting one person

Send a birth chart and a date range and get every transit that lands on it, with entry, exact and exit timing. Telling someone what the sky is doing is a free feature. Telling them what it is doing to them is the one they subscribe for.

One integration, both traditions

The tropical and sidereal sides mirror each other endpoint for endpoint, so the same call shape serves a reader in Chicago and a reader in Chennai. Ayanamsa and node type are yours to choose, nakshatras are treated as the sidereal concept they are, and KP gets its own cusps and ruling planets.

04 / Transits · Tropical · Sidereal · KP

All Transit APIs endpoints

Every endpoint returns structured JSON with documented fields, validated coordinates, and IANA timezone IDs.

30+
Endpoints

Western · Positions & Angles

4 EP

Tropical positions with house placement and essential dignity, twelve cusps with all four angles, a rendered wheel, and a full month of daily positions.

  • POST /api/v3/transit/western/planets
  • POST /api/v3/transit/western/cusps
  • POST /api/v3/transit/western/charts
  • POST /api/v3/transit/western/ephemeris

Western · Aspects

3 EP

A snapshot of what is in aspect now, timed windows between two moving planets, and transits landing on a natal chart with entry, exact and exit timing.

  • POST /api/v3/transit/western/aspects
  • POST /api/v3/transit/western/transit-aspects
  • POST /api/v3/transit/western/natal-transit-aspects

Western · Events & Eclipses

7 EP

Retrograde and station windows, sign ingresses, combustion, moon phases, positional eclipses, and mundane eclipses with worldwide city-level visibility.

  • POST /api/v3/transit/western/retrograde
  • POST /api/v3/transit/western/ingress
  • POST /api/v3/transit/western/moon-phases
  • POST /api/v3/transit/western/eclipses-mundane
  • POST /api/v3/transit/western/upcoming
+2 more in the docs →

Sidereal · Positions

6 EP

Three levels of weight - basic for a quick snapshot, advanced for dignity and avastha, extended for Sanskrit names and navamsa - plus charts and a monthly ephemeris.

  • POST /api/v3/transit/vedic/basic
  • POST /api/v3/transit/vedic/advanced
  • POST /api/v3/transit/vedic/extended
  • POST /api/v3/transit/vedic/charts
  • POST /api/v3/transit/vedic/ephemeris
+1 more in the docs →

Sidereal · Nakshatra & Events

9 EP

Nakshatra transits with pada and lord, Parashari drishti, degree-orb natal aspects, retrogrades, ingresses, combustion, eclipses, moon phases, and a merged timeline that can carry panchang events too.

  • POST /api/v3/transit/vedic/nakshatra
  • POST /api/v3/transit/vedic/aspects
  • POST /api/v3/transit/vedic/natal-transit-aspects
  • POST /api/v3/transit/vedic/retrograde
  • POST /api/v3/transit/vedic/upcoming
+4 more in the docs →

KP

1 EP

Placidus cusps with KP sub-lords on planets and cusps, plus the ruling planets for the moment.

  • POST /api/v3/transit/kp/planets
One call

Ask what is retrograde. Get a progress bar.

Real response, trimmed. The phrasing, the timing and the arithmetic are all done before it reaches you.

Request
curl -X POST https://starsapi.com/api/v3/transit/western/retrograde \
  -H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
  -d '{"query_type":"current"}'
Response live
{
  "query": { "zodiac": "tropical", "motion": "all" },
  "statuses": [
    {
      "title": "Mercury Direct in Cancer → Scorpio",
      "planet": "Mercury",
      "motion_label": "Direct",
      "station_type": "Station Direct",
      "start_utc": "2026-07-23 22:57:51",
      "end_utc": "2026-10-24 07:12:42",
      "start_sign": "Cancer",
      "start_degrees": "16:18:59",
      "end_sign": "Scorpio",
      "end_degrees": "20:58:44",
      "duration_days": 92,
      "progress_pct": 25.1,
      "days_elapsed": 23,
      "days_remaining": 70
    }
  ]
}
Frequently asked

Planetary transit API — questions before you build.

Is there a free planetary transit API I can try without a card?
Yes. StarsAPI's free tier lets you evaluate any endpoint without entering a credit card, so you can pull live planetary positions, current retrogrades and the next eclipse before deciding anything. Paid plans start at $29 a month and include every endpoint on the platform — transits, Vedic, Western, numerology and horoscopes on one key.
How do I get current planetary positions through an API?
One call returns every planet's sign, exact degree and house placement for any moment you name, in tropical or sidereal. The Western side adds essential dignity — domicile, exaltation, detriment and fall — alongside the position rather than as a second request, plus Part of Fortune and Black Moon Lilith, and house cusps in whichever system your audience uses.
Is there a Mercury retrograde API for building a tracker?
Yes, and most of the work is already done for you. Each period returns with a phrased title, the station type, the signs and degrees at both ends, exact start and end times, how many days it runs, how many have passed, how many remain, and how far through it we are as a percentage. Your progress bar is filled in before you write any layout code.
Can I get transits to a natal chart with exact dates?
Yes. Send birth details and a date range and you get every transiting planet that aspects a natal position in that window, each with when it enters orb, when it is exact and when it leaves. Telling someone what the sky is doing is a free feature on any site; telling them what it is doing to their own birth chart is the one people subscribe for.
Is there a moon phase API with the current phase and next full moon?
Yes. The current phase comes with its illumination percentage and the exact sign and degree the Moon occupies, along with the timing of what comes next. You can trace an entire lunation from the new moon that began it, or pull cycles forward as far as you need, with everything labelled past, current or upcoming and the days between counted.
Can I find out which countries will see an eclipse?
Yes, and this is unusual in a transit API. Alongside the ordinary eclipse endpoint there is a mundane one returning worldwide visibility — how many countries can see it and which, down to city level, with start, maximum and end times and the total duration. Filter to one country when you only want local coverage. Positions come back in tropical and sidereal at once.
Is there an ephemeris API for daily planetary positions?
Yes — a full month of daily positions in a single response, tropical for Western work and sidereal for Vedic. Ephemeris tables are the kind of evergreen reference page that quietly earns search traffic for years, and generating them beats scanning a printed book.
How accurate are the calculations?
They come from the Swiss Ephemeris, which is what professional astrology software runs on. Positions match the printed reference tables your users will inevitably check them against — and a single degree of disagreement is enough to lose an experienced reader's trust permanently, which is why this is not a place to economise.
Does the API support both tropical and sidereal zodiacs?
Both, and each is a first-class citizen. Fourteen endpoints cover the tropical side in its own right, with Placidus cusps and Western dignity, and fifteen cover sidereal with nakshatras, Parashari drishti and selectable ayanamsa. The two sides mirror each other endpoint for endpoint, so the same call shape serves a reader in Chicago and a reader in Chennai.
Can I get everything coming up in one call for notifications?
Yes. The upcoming endpoint merges sign ingresses, retrograde stations, combustion periods and eclipses into a single feed in date order. Choose a window from a week to a year, filter to the event types you care about, and on the Vedic side fold in ekadashi, purnima and amavasya as well. It exists precisely for the job of deciding what to notify a user about tomorrow.
Can I get transit chart images without drawing them myself?
Yes. A tropical wheel with glyphs, cusps and aspect lines, or North and South Indian squares for Vedic audiences. They are rendered and cached on our side and handed over as a plain image link, so there is no charting library anywhere in your codebase and nothing to maintain when your framework changes.
Do transit calls need birth details or time zone handling?
Only the calls that compare against a birth chart need birth details; everything else is the sky itself and needs nothing personal. Time zones are handled for you — every moment comes back in UTC and local time, you name the zone with a standard identifier, and durations arrive both counted and formatted. That removes the most common source of bugs in any product that talks about when something happens.
Ready when you are

Every domain.
One subscription.

Plans from $29/mo. Vedic, Western, Numerology, Transits, Horoscopes, AI Astrologers and Reports, with the Location API included.