Your Stars API (1.0.0)

Download OpenAPI specification:Download

API documentation for Your Stars

Ascendant and Midheaven

Calculate the Ascendant (ASC) or Midheaven (MC) based on birth data.

This endpoint computes the zodiac sign, degree, and decan for the Ascendant (ASC) or Midheaven (MC) using the Swiss Ephemeris. It requires full birth details (date, time, location) and returns astrological data for the selected points. The request must specify whether to calculate ASC, MC, or both.

header Parameters
YS-API-Key
required
string
Example: your-api-key-here

API key required for authentication.

Request Body schema: application/json
year
required
integer
month
required
integer
day
required
integer
hour
required
integer
minute
required
integer
second
integer
latitude
required
number
longitude
required
number
timezone
required
number
points
required
Array of strings
Items Enum: "asc" "mc"

Points to calculate ("asc" for Ascendant, "mc" for Midheaven).

full_name
string

Optional name for personalization.

place
string

Optional place name for personalization.

showInterpretation
boolean
Default: true

Flag to include detailed interpretations in the response. Defaults to true.

Responses

Request samples

Content type
application/json
{
  • "year": 1988,
  • "month": 11,
  • "day": 18,
  • "hour": 3,
  • "minute": 47,
  • "second": 30,
  • "latitude": 36.1627,
  • "longitude": -86.7816,
  • "timezone": -6,
  • "points": [
    ],
  • "full_name": "Logan",
  • "place": "Nashville, Tennessee",
  • "showInterpretation": true
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": [
    ]
}

Houses

Calculate detailed astrological house placements and interpretations

This endpoint calculates comprehensive astrological data including house placements, degrees, decans, and personalized interpretations for specified celestial bodies based on birth data. The calculation includes planets, lunar nodes (northnode, southnode), Chiron, and the Midheaven (MC). The system uses Swiss Ephemeris for precise astronomical calculations and provides rich astrological insights.

Request Body schema: application/json
planets
required
Array of strings
Items Enum: "sun" "moon" "mercury" "venus" "mars" "jupiter" "saturn" "uranus" "neptune" "pluto" "northnode" "southnode" "chiron"

Array of celestial bodies to calculate (planets, nodes, and angles)

year
required
integer [ 1800 .. 2100 ]
month
required
integer [ 1 .. 12 ]
day
required
integer [ 1 .. 31 ]
hour
required
integer [ 0 .. 23 ]
minute
required
integer [ 0 .. 59 ]
second
integer [ 0 .. 59 ]
Default: 0
latitude
required
number [ -90 .. 90 ]
longitude
required
number [ -180 .. 180 ]
timezone
required
number [ -12 .. 14 ]
full_name
string

Optional name for personalization

place
string

Optional birth location name

showInterpretation
boolean
Default: true

Flag to include detailed interpretations in the response. Defaults to true.

Responses

Request samples

Content type
application/json
{
  • "planets": [
    ],
  • "year": 1982,
  • "month": 3,
  • "day": 25,
  • "hour": 14,
  • "minute": 12,
  • "second": 30,
  • "latitude": 34.0522,
  • "longitude": -118.2437,
  • "timezone": -7,
  • "full_name": "Sophia",
  • "place": "Los Angeles, California",
  • "showInterpretation": true
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": [
    ]
}

Moon Phase

Calculate the moon phase based on birth data.

This endpoint calculates the moon phase, including the phase name, angle between the moon and sun, illumination percentage, waxing/waning status, and a symbolic interpretation. It uses the Swiss Ephemeris for astronomical accuracy and returns the moon’s current relationship to the sun.

Request Body schema: application/json
full_name
string
year
required
integer
month
required
integer
day
required
integer
hour
required
integer
minute
required
integer
second
integer
timezone
required
number
latitude
required
number
longitude
required
number
place
string
showInterpretation
boolean
Default: true

Flag to include detailed interpretations in the response

Responses

Request samples

Content type
application/json
{
  • "full_name": "Carlyn",
  • "year": 1985,
  • "month": 9,
  • "day": 14,
  • "hour": 22,
  • "minute": 18,
  • "second": 0,
  • "timezone": -7,
  • "latitude": 47.6062,
  • "longitude": -122.3321,
  • "place": "Seattle, Washington",
  • "showInterpretation": true
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Natal Chart

Generate a natal chart SVG based on birth data.

Generates a natal chart in SVG format based on the user's birth data and optional drawing preferences. Calculates planetary positions, house cusps, and aspects to create the SVG representation.

header Parameters
YS-API-Key
required
string
Example: your-api-key-here

API key for authentication.

Request Body schema: application/json
full_name
string

Optional name for personalization.

year
required
integer
month
required
integer
day
required
integer
hour
required
integer
minute
required
integer
second
integer
timezone
number
latitude
required
number
longitude
required
number
place
string

Optional place name for personalization.

size
integer

Size of the SVG image in pixels.

Responses

Request samples

Content type
application/json
{
  • "full_name": "Mason",
  • "year": 1995,
  • "month": 2,
  • "day": 9,
  • "hour": 16,
  • "minute": 28,
  • "second": 45,
  • "timezone": -5,
  • "latitude": 40.7128,
  • "longitude": -74.006,
  • "place": "New York, New York",
  • "size": 800
}

Response samples

Content type
application/json
{
  • "success": false,
  • "error": "Invalid JSON in request body"
}

Planets

Calculate planetary positions based on birth data.

This endpoint calculates the zodiac sign, degree, and symbolic decan for one or more planets or sensitive points based on the provided birth data (date, time, and location). The response includes sign placement, precise degree, symbolic decan (name and planetary ruler), and an optional interpretation if showInterpretation is true.

header Parameters
YS-API-Key
required
string
Example: your-api-key-here

API key required for authentication.

Request Body schema: application/json
required
string or Array of strings
year
required
integer
month
required
integer
day
required
integer
hour
required
integer
minute
required
integer
second
integer
latitude
required
number
longitude
required
number
timezone
required
number
full_name
string
place
string
showInterpretation
boolean
Default: true

Flag to include detailed interpretations in the response. Defaults to true.

Responses

Request samples

Content type
application/json
{
  • "planets": [
    ],
  • "year": 1984,
  • "month": 10,
  • "day": 2,
  • "hour": 21,
  • "minute": 11,
  • "second": 15,
  • "latitude": 34.0522,
  • "longitude": -118.2437,
  • "timezone": -7,
  • "full_name": "Ethan",
  • "place": "Los Angeles, California",
  • "showInterpretation": true
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": [
    ]
}

Synastry

Calculate synastry aspects between two people's natal charts.

This endpoint calculates astrological aspects (e.g., conjunction, square, trine, opposition) between the natal planets of two individuals. It compares the planetary positions of both people to determine potential relationship dynamics and compatibility based on selected aspects and orbs.

Request Body schema: application/json
required
object
required
object
planets
required
Array of strings
Items Enum: "sun" "moon" "mercury" "venus" "mars" "jupiter" "saturn" "uranus" "neptune" "pluto" "chiron" "northnode" "southnode" "mc"
aspects
Array of strings
Items Enum: "conjunction" "opposition" "trine" "square" "sextile"
orb
number
showInterpretation
boolean
Default: true

Flag to include detailed interpretations in the response

Responses

Request samples

Content type
application/json
{
  • "personA": {
    },
  • "personB": {
    },
  • "planets": [
    ],
  • "aspects": [
    ],
  • "orb": 5,
  • "showInterpretation": true
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": [
    ]
}

Transits

Calculate transiting aspects to a natal chart.

Calculates daily transiting aspects (e.g., conjunctions, squares, trines) between specified transiting planets and the natal positions derived from a user's birth data over a given date range. The maximum supported range is 90 days.

Request Body schema: application/json
full_name
string
year
required
integer
month
required
integer
day
required
integer
hour
required
integer
minute
required
integer
second
integer
timezone
required
number
latitude
required
number
longitude
required
number
place
string
startDate
required
string <date>
endDate
required
string <date>
planets
required
Array of strings
Items Enum: "sun" "moon" "mercury" "venus" "mars" "jupiter" "saturn" "uranus" "neptune" "pluto" "chiron" "northnode" "southnode" "mc"
aspects
Array of strings
Items Enum: "conjunction" "opposition" "trine" "square" "sextile"
exactThreshold
number
showInterpretation
boolean
Default: true

Flag to include detailed interpretations in the response

Responses

Request samples

Content type
application/json
{
  • "full_name": "Alisha",
  • "year": 1982,
  • "month": 11,
  • "day": 3,
  • "hour": 14,
  • "minute": 26,
  • "second": 0,
  • "timezone": -8,
  • "latitude": 34.0522,
  • "longitude": -118.2437,
  • "place": "Los Angeles, California",
  • "startDate": "2025-03-29",
  • "endDate": "2025-03-30",
  • "planets": [
    ],
  • "aspects": [
    ],
  • "exactThreshold": 1,
  • "showInterpretation": true
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": [
    ]
}