Ship a zodiac compatibility feature, a daily horoscope widget, or a full natal chart reader. No astrology knowledge required.
The astrology domain is the highest-volume domain in the RoxyAPI catalog. Natal charts power dating apps and personality readers. Daily horoscopes drive DAU, push notifications, and streaks. Synastry is the premium dating-app bolt-on. Every response ships with plain English interpretation text, so you never have to write a word about planets.
What you can build
Zodiac dating and compatibility apps, Co-Star style
Daily horoscope widgets and wellness embeds
Full birth chart readers with sun, moon, rising
Moon phase widgets for cycle-tracking and meditation apps
"What is happening for me today" transit forecasts
Prerequisites
A RoxyAPI key. Get your API key. The key is created the moment checkout completes, and the welcome email carries a one-time link that shows it.
Nothing else. All planetary math runs on our servers.
New here? The API Playground lets you browse every endpoint and see real response shapes. The playground supports live calls without an API key.
Install
bash
npm install @roxyapi/sdk
bash
pip install roxy-sdk
bash
composer require roxyapi/sdk
bash
dotnet add package RoxyApi.Sdk
Set the API key once at SDK construction. Detailed setup in SDK install + usage.
Call the endpoint
The #1 astrology call is the daily horoscope. One GET, no birth data, takes a sign and returns the full forecast. Pick a language tab and paste.
import { createRoxy } from '@roxyapi/sdk';
const roxy = createRoxy(process.env.ROXY_API_KEY!);
const { data, error } = await roxy.astrology.getDailyHoroscope({
path: { sign: 'aries' },
});
if (error) throw error;
console.log(data.overview); // main forecast
console.log(data.love); // love and relationship outlook
console.log(data.luckyNumber); // e.g. 7
python
import os
from roxy_sdk import create_roxy
roxy = create_roxy(os.environ['ROXY_API_KEY'])
horoscope = roxy.astrology.get_daily_horoscope(sign='aries')
print(horoscope['overview'])
print(horoscope['love'])
print(horoscope['luckyNumber'])
php
<?php
use function RoxyAPI\Sdk\createRoxy;
$roxy = createRoxy(getenv('ROXY_API_KEY'));
$horoscope = $roxy->astrology->getDailyHoroscope(sign: 'aries');
echo $horoscope['overview'];
echo $horoscope['love'];
echo $horoscope['luckyNumber'];
csharp
using RoxyApi;
var roxy = new RoxyClient(Environment.GetEnvironmentVariable("ROXY_API_KEY")!);
var horoscope = await roxy.Astrology.Horoscope["aries"].Daily.GetAsync();
Console.WriteLine(horoscope!.Overview); // main forecast
Console.WriteLine(horoscope.Love); // love and relationship outlook
Console.WriteLine(horoscope.LuckyNumber); // e.g. 7
bash
claude mcp add-json --scope user roxy-astrology '{"type":"http","url":"https://roxyapi.com/mcp/astrology","headers":{"X-API-Key":"YOUR_KEY"}}'
Then ask Claude, "give me the Aries horoscope for today." The agent picks the right tool, fills in the sign, calls the API. Full setup for Cursor, Claude Desktop, Antigravity, and other clients: MCP guide.
The response looks like:
json
{
"sign": "Aries",
"date": "2026-04-23",
"overview": "A crowded calendar can leave hardly any room for fun, though a quick treat can fit anyway. Sharp-minded Mercury drifts through your house of identity and presence, likely loosening a worry with level thinking. Meanwhile, your identity realm hosts idealistic Neptune, painting an inner picture of peace. Capable, cheerful energy often shapes how everyday moments go. If you sense a pull toward something different, why not test unusual ideas, start somewhere new or wear a bright shade? In any case, daily delights are yours to savor now.",
"love": "The protective Moon settles into Leo, your romance sector, today, easing old guardedness into tender openness. Equally, sweet-natured Venus drifts through your money sector up to April 24, sparking a deep craving for slow dinners. What feels good to your heart may be growing clearer: an inner yes worth hearing. Whenever love asks for more ease than usual, you could skip the big talk. Every new profile can blur together if dating apps feel endless, yet one real exchange can stand out. Rams, a soft touch can say a great deal.",
"career": "Since your sector of identity and presence hosts persevering Saturn, steadier ground would give you calm. In parallel, your zone of money holds the warmhearted Sun, feeding your desire for credit. Earlier suggestions of yours could be starting to take root. Praise going to someone else can sting more than expected; still, one honest talk can reset things. Regular practice is making you more capable. If a professional dream keeps drifting into your thoughts, you might map one first step.",
"finance": "Your home realm holds buoyant Jupiter, lifting hopeful thoughts about abundance. You want room to experiment while ingenious Uranus travels through your realm of money until April 26. Awareness of your limits often keeps money plans realistic; consider this a safeguard for your prospects. A pricey night out with friends can make saying no a struggle, but you can set a friendly limit. If safety with money has felt important lately, grow a buffer, save a bit or start a coin jar. The load can lighten again soon.",
"health": "A hectic season can make skipped meals and breaks feel normal, though one proper meal can reset you. Your planetary guide Mars is in your identity zone, with quiet care fueling a bold urge to get stronger. Your identity sector holds articulate Mercury, sparking a hopeful strategy for vitality. A strong core of vitality may carry you past minor demands. If your mind feels busier than your body wants, try to breathe on purpose. All told, a rested you is a radiant you.",
"advice": "Your money domain holds sweet-natured Venus through April 24, possibly brightening your tone with real affection. Meanwhile, your identity domain spotlights inquisitive Mercury, sharpening an eager wish to explain. Your sense of timing could rank among your hidden strengths. If your inner critic sounds louder than usual, never hesitate to invite some fun. A hasty reply can look efficient when you first send it, yet a second of thought saves a lot. Joy is a perfectly productive use of hours.",
"column": "Flirting might flow with a breezy, refreshingly low-stakes charm; Aries, consider this a flicker of romance. A mischievous spark may light up since the protective Moon arrives in Leo in your sector of romance and play today. Besides that, in your identity domain, your sign ruler Mars rests, giving playful competition a healthy edge. If an old hobby from years back begs for a comeback, why not dust it off with joy? Calm and clarity are closer than they seem.",
"focus": "love",
"events": [
{
"type": "sign-ingress",
"at": "2026-04-23T19:40:43Z",
"bodies": [
"Moon"
],
"placements": [
{
"name": "Moon",
"sign": "leo",
"house": 5
}
],
"sign": "leo",
"house": 5,
"through": "2026-04-26T01:04:26Z"
}
],
"positions": [
{
"name": "Sun",
"sign": "taurus",
"house": 2,
"isRetrograde": false,
"dignity": "peregrine",
"enteredAt": "2026-04-20T01:39:06Z",
"leavesAt": "2026-05-21T00:36:44Z"
},
{
"name": "Moon",
"sign": "cancer",
"house": 4,
"isRetrograde": false,
"dignity": "domicile",
"enteredAt": "2026-04-21T17:00:15Z",
"leavesAt": "2026-04-23T19:40:43Z"
},
{
"name": "Mercury",
"sign": "aries",
"house": 1,
"isRetrograde": false,
"dignity": "peregrine",
"enteredAt": "2026-04-15T03:21:29Z",
"leavesAt": "2026-05-03T02:56:56Z"
},
{
"name": "Venus",
"sign": "taurus",
"house": 2,
"isRetrograde": false,
"dignity": "domicile",
"enteredAt": "2026-03-30T16:00:52Z",
"leavesAt": "2026-04-24T04:03:25Z"
},
{
"name": "Mars",
"sign": "aries",
"house": 1,
"isRetrograde": false,
"dignity": "domicile",
"enteredAt": "2026-04-09T19:36:09Z",
"leavesAt": "2026-05-18T22:25:28Z"
},
{
"name": "Jupiter",
"sign": "cancer",
"house": 4,
"isRetrograde": false,
"dignity": "exaltation",
"enteredAt": "2025-06-09T21:02:10Z",
"leavesAt": "2026-06-30T05:52:22Z"
},
{
"name": "Saturn",
"sign": "aries",
"house": 1,
"isRetrograde": false,
"dignity": "fall",
"enteredAt": "2026-02-14T00:11:39Z",
"leavesAt": "2028-04-13T03:39:44Z"
},
{
"name": "Uranus",
"sign": "taurus",
"house": 2,
"isRetrograde": false,
"dignity": "fall",
"enteredAt": "2025-11-08T02:19:31Z",
"leavesAt": "2026-04-26T00:51:32Z"
},
{
"name": "Neptune",
"sign": "aries",
"house": 1,
"isRetrograde": false,
"dignity": "peregrine",
"enteredAt": "2026-01-26T17:34:38Z",
"leavesAt": "2038-05-22T00:12:56Z"
},
{
"name": "Pluto",
"sign": "aquarius",
"house": 11,
"isRetrograde": false,
"dignity": "peregrine",
"enteredAt": "2024-11-19T20:38:57Z",
"leavesAt": "2043-03-09T01:01:26Z"
}
],
"luckyNumber": 9,
"luckyColor": "Red",
"compatibleSigns": [
"Aquarius",
"Leo",
"Sagittarius"
],
"crystal": {
"id": "hematite",
"name": "Hematite"
},
"activeTransits": [
"Sun in Taurus (your house of money and personal worth)",
"Moon in Cancer (your house of home and roots)",
"Mercury in Aries (your house of identity and presence)",
"Venus in Taurus (your house of money and personal worth)",
"Mars in Aries (your house of identity and presence)",
"Jupiter in Cancer (your house of home and roots)",
"Saturn in Aries (your house of identity and presence)"
],
"moonSign": "Cancer",
"moonPhase": "Waxing Crescent Moon",
"energyRating": 7
}
focus names the topic the reading is mainly about (love, career, finance, health, or overview for a bigger-picture day), a fixed English value in every language you can route your own content on. events lists every dated event the reading names and positions where each of the ten bodies stands, when it entered and leaves its sign and when a retrograde turns direct, so every date and claim in the prose can be checked against the response itself. Both stay in English whatever lang you pass. No language model runs at request time: every reading is composed deterministically from text written and audited in advance, so a sign and date always return the same column, the whole piece ready to publish, and the same six sections beside it.
Pass timezone (an IANA name such as America/New_York) so the daily reads the day on the clock of your readers: it decides which events fall on the date and when the date turns over. It defaults to UTC.
Render the result
RoxyAPI ships an official drop-in component for the horoscope endpoints, so the render layer is one line. RoxyHoroscopeCard from @roxyapi/ui reads overview, the four categories, luckyNumber, luckyColor, compatibleSigns, and the energy rating straight off the response, so you pass the data and ship. Prefer your own markup? The response is plain JSON, render it however you like.
bash
npm install @roxyapi/ui-react
The data flows the same way: your server route returns the unwrapped response, the client component renders it. Set period to daily, weekly, monthly, or yearly to match the endpoint you called.
tsx
'use client';
import { RoxyHoroscopeCard, type RoxyHoroscopeCardProps } from '@roxyapi/ui-react';
import { useState } from 'react';
export function DailyHoroscope() {
const [data, setData] = useState<RoxyHoroscopeCardProps['data']>(undefined);
async function load(sign: string) {
const res = await fetch(`/api/horoscope?sign=${sign}`); // your backend route
setData(await res.json());
}
if (!data) return <button onClick={() => load('aries')}>Read the Aries forecast</button>;
return <RoxyHoroscopeCard data={data} period="daily" />;
}
RoxyHoroscopeCardProps['data'] is the spec-derived response type from the component. Never declare a local interface for a RoxyAPI response, it drifts the moment the spec changes. Your /api/horoscope route must return the unwrapped response, not the SDK envelope. The SDK gives you { data, error }, so destructure data and send that:
ts
// app/api/horoscope/route.ts (server side, holds the key)
import { createRoxy, type GetAstrologyHoroscopeBySignDailyData } from '@roxyapi/sdk';
type Sign = GetAstrologyHoroscopeBySignDailyData['path']['sign'];
const roxy = createRoxy(process.env.ROXY_API_KEY!);
export async function GET(req: Request) {
const sign = (new URL(req.url).searchParams.get('sign') ?? 'aries') as Sign;
const { data, error } = await roxy.astrology.getDailyHoroscope({ path: { sign } });
if (error) throw error;
return Response.json(data);
}
Never call RoxyAPI directly from a browser. Anyone viewing page source sees your key. Put the fetch in a Next.js route, a Vercel function, or any backend you control. The component renders on the client, the key stays on the server. See the Next.js integration guide for the drop-in pattern.
Ship the rest
Four more endpoints cover every mainstream astrology feature. Same auth header, structure is identical.
Natal chart, the #1 birth-data call
POST /astrology/natal-chart returns planets, houses, aspects, ascendant, midheaven, plus an interpretation block on every planet tuned to its exact sign and house. This is what dating apps, personality readers, and Co-Star clones call first. Render it with RoxyNatalChart (the houseSystem prop selects the layout), or RoxyWesternPlanetsTable for a column view. Pass the unwrapped data, same as the horoscope card.
Do not ask users to type coordinates. Call GET /location/search?q=New+York first, take latitude, longitude, and timezone from cities[0], feed them in. The city search returns the IANA identifier which resolves to the DST-correct offset for the birth date automatically.
Synastry, the dating-app pro tier
POST /astrology/synastry takes two people, returns a 0 to 100 compatibility score, inter-aspects, strengths, and challenges. Perfect for relationship features. Render it with RoxySynastryChart, a dual-wheel with the inter-aspects table built in.
Compatibility score, the match-card one-liner
POST /astrology/compatibility-score returns the same percent plus a one-line archetype. Lighter than synastry, ideal for dating-app match cards. Render it with RoxyCompatibilityCard, a score card with category breakdown.
Moon phase, zero-friction viral feature
GET /astrology/moon-phase/current needs no input. Returns phase name, illumination, sign, and a meaning block. Wellness, meditation, and cycle-tracking apps put this on the home screen. Render it with RoxyMoonPhase, where the mode prop switches between the single-phase card and the calendar.
See the full list at the API Reference, 39 endpoints in total including weekly, monthly and yearly horoscopes, transits with natal overlay, monthly aspect and declination calendars, node passages, and the moon calendar.
Ready-made template
The /templates/astrology-starter-app template ships a working Western astrology app you can clone, white-label, and deploy. MIT licensed. For the render layer, drop in <roxy-natal-chart> from @roxyapi/ui.
Present a natal chart responsibly
Start with a sign badge and add detail gradually
GET /astrology/signs returns the sign reference list for a selector or profile badge. GET /astrology/signs/{id} adds the detailed sign profile. The published month-and-day ranges are a general reference, not a calculation of the Sun position at a particular birth instant. Near a sign boundary, use the natal calculation with the actual date, time, and timezone rather than treating a fixed date range as definitive.
Begin with a user-selected sign badge. Add an optional full-chart flow when the user supplies birth time and place, then a sign-level horoscope feed and, if wanted, a two-person compatibility view. Collect each extra input when its feature needs it. In a compatibility view, let users expand the category scores after the overall result, and present them as interpretations rather than evidence of relationship success.
When birth time is missing, do not present a noon placeholder as a reliable Ascendant or set of houses. Ask for the time, or explain the limits of a date-only reading. Resolve the birth city to an IANA timezone before submitting a local date and time; do not convert to UTC and also pass the original zone.
Keep the secret key in your backend. Store birth records only with an appropriate purpose and access controls, and let users correct or delete them. Cache by the complete request, including chart options and response language; invalidate saved charts when the input changes. Display the Sun, Moon and Ascendant first, then expand planets, houses and aspects as needed.
Gotchas
Timezone accepts decimal or IANA string. Pass -5 or "America/New_York". IANA is preferred because the server resolves it to the DST-correct offset for the birth date, so a January 1990 New York chart gets EST not EDT.
Retrograde is per-planet, never global. The response has isRetrograde: true on individual planets. Never render "Mercury retrograde" as a global flag, check the specific planet.
Timezone is required for natal, synastry, and compatibility-score. There is no default. Geocode the city, do not guess.
The three big placements are Sun, Moon, Ascendant. Read the Sun and Moon name and sign from planets; the Ascendant is the separate top-level ascendant object.
Validating against desktop software? Cast both charts at the same coordinates. Positions are apparent geocentric on the true ecliptic of date (light time and aberration applied, nutation included), the convention chart programs and the NASA JPL Horizons observer tables print, so planets compare directly. The Ascendant, Midheaven and every house cusp sit on the same frame and agree with the reference to the arcsecond, but they move with the birthplace: a reference that casts at a town position rounded to whole arcminutes shifts the angles and cusps by several arcminutes, unevenly across the twelve, while the planets stay put. Pass the coordinates the reference used and the charts line up. birthDetails echoes the coordinates every chart was cast at.
Sign names are lowercase in URL paths.aries, not Aries. Server is case-insensitive but your logs will be cleaner if you normalize early.
Hi, I am Rosie, your guide to the RoxyAPI insight tools.
Ask me to read your birth chart, pull a card, or map your numbers, and I will interpret what it means for you. Unlike most AIs, I never make the numbers up: every reading runs on real, verified calculations. Curious about the API, pricing, or docs instead? Ask me that too.