Skip to content
AstroWay/api v2.254.12 · docs
all systems operational

Astrology widgets for your website

The public HTML widgets GET /v1/embed/* return a ready iframe fragment - SVG wheel, horoscope, numerology, and more. No API key, rate-limited per visitor IP (120 requests an hour, separate from /v1/public/*, so a page with several widgets does not run into it), cached public, max-age=300. Great for marketing pages; for high-traffic production use the SDK.

<iframe src="https://api.astroway.info/v1/embed/wheel?date=1990-05-15&time=14:30&lat=50.45&lng=30.52&tz=2&theme=dark"
width="460" height="560" style="border:0"></iframe>

How you embed depends on what your site runs on. The content is the same either way; what changes is how much work is left to you.

Your siteWhat to install
WordPressThe AstroWay plugin: 18 shortcodes and 26 Gutenberg blocks. Eleven widgets work the moment it is activated, with no key.
WordPress with ElementorAstroWay for Elementor: seven widgets you drag straight into the editor.
Tilda, Squarespace, Wix, plain HTMLThe script loader below, or a ready <iframe> from the gallery. One button copies it.
Your own frontendThe same /v1/embed/* endpoints, or the SDK when you want full control of the markup.

The plugins serve exactly what the endpoints on this page serve, but render it in your theme’s own styling and spare you from sizing anything by hand.

A separate widget: the natal chart calculator

Section titled “A separate widget: the natal chart calculator”

The widgets on this page draw what you already know: you supply the date, time and place. When you want the visitor to type their own, we have a different widget for that, the natal chart calculator (the @astroway/widget package). One paste gives you the form, the calculation and the wheel, in ten languages, light and dark.

The difference is not the styling, it is where the maths happens. The calculator runs in the visitor’s browser, and the birth data never reaches a server at all. The /v1/embed/* widgets are computed by us, so their parameters are visible in the iframe URL.

What you needWhat to use
The visitor enters their own birth dataThe @astroway/widget calculator
Birth data must not leave the browserThe @astroway/widget calculator
Horoscopes, transits, tarot, numerology, panchang and twelve more typesThe widgets on this page
Twenty languages instead of tenThe widgets on this page

If you would rather not size the iframe yourself, drop in the loader: it replaces itself with an iframe and matches the height to the content automatically, because the widget reports its own size over postMessage.

<script src="https://cdn.astroway.info/embed.js"
data-widget="wheel" data-date="1990-05-15" data-time="14:30"
data-lat="50.45" data-lng="30.52" data-tz="3"></script>

Any data-* attribute becomes a query parameter, so data-theme="light" and data-lang="en" work exactly as in the iframe example. data-height="500" pins the height and turns auto-sizing off. Several widgets on one page do not interfere with each other.

No key is needed, and none is accepted. The /v1/embed/* endpoints are public, and a key in an attribute would end up in the page source. The loader ignores such attributes and warns in the console.

FileCacheFor whom
https://cdn.astroway.info/embed.js5 minutesThe usual choice. Fixes reach you automatically.
https://cdn.astroway.info/embed.v1.js1 year, immutableWhen you need the bytes never to move. Replaced only for a security fix; behaviour changes go to embed.v2.js.

Live preview of all 16 widgets. Pick the theme and the content language, switch the snippet between an <iframe> and the <script> loader, and copy the ready code.

Accepted by every widget:

ParameterValuesDefaultDescription
themedark · light · consoledarkColor scheme.
languk · en · +18 languagesukContent language. Also read from the Accept-Language header.
disclaimer1 · true · yesoffAdds a footer note that the content is for entertainment and informational purposes only (not medical, psychological, financial, or legal advice).
WidgetEndpointPer-widget parameters
Daily HoroscopeGET /embed/daily-horoscopesign, date
Natal WheelGET /embed/wheel (alias /embed/natal)date, time, lat, lng, tz, city
Transit TimelineGET /embed/transit-timelinedate, days (max 30)
Bodygraph (Human Design)GET /embed/bodygraphdate, time, lat, lng, tz
Vedic KundliGET /embed/kundlidate, time, lat, lng, tz
Mini ChartGET /embed/mini-chartdate, time, lat, lng, tz, city
Planet of DayGET /embed/planet-of-daydate
Moon PhaseGET /embed/moon-phasedate
Daily TarotGET /embed/daily-tarotdate
Monthly ForecastGET /embed/monthly-forecastsign, month (YYYY-MM)
Sky TransitsGET /embed/transitdate
NumerologyGET /embed/numerologyname, date, system (pythagorean · chaldean)
PanchangGET /embed/panchangdate, lat, lng, tz (coordinates required)
SynastryGET /embed/synastrydate_a, time_a, lat_a, lng_a, tz_a, date_b, time_b, lat_b, lng_b, tz_b
Moon CalendarGET /embed/moon-calendarmonth (YYYY-MM), tz
Tarot SpreadGET /embed/tarot-spreadspread (single-card · three-card · decision · career), date, seed, reversed, art

Formats: date - YYYY-MM-DD, time - HH:MM, tz - UTC offset in hours. Omitted parameters fall back to sensible defaults (current date, noon, equator).

Was this helpful?
Suggest an edit

Last updated: