Accurate planetary positions and astrological data for your apps. Perfect for astrologers, developers, and cosmic enthusiasts building magical tools.
# Call this URL within your site...
curl "https://cutemagick.com/api/ephemeris
&year=1918
&month=11
&day=11
&hour=3
&minute=33
&latitude=37.7749
&longitude=-122.419"
// ...get back real astrology data like this!
{
"planets": [
{
"name": "Sun",
"sign": "Leo",
"degree": 29,
"house": 1,
"retrograde": false,
},
{
"name": "Moon",
// ...and so on
}
],
"houses": [
{
"first": ["Mercury", "Pluto"]
// second, third...
}
],
"aspects": [
{
"planet1": "Venus",
"planet2": "Jupiter",
"aspect": "Conjunct",
"orb": 3
},
// more, as you can imagine
],
}
Swiss Ephemeris accuracy with planetary positions, signs, degrees, and retrograde status.
Works anywhere on Earth with latitude/longitude coordinates and timezone support.
Clean, structured JSON output that's easy to integrate into any application.
Support for Placidus sign house calculation systems.
Aspect calculations between planets with orb precision.
Automatically converts time parameters to your local time β based on the provided latitude and longitude.
GET https://cutemagick.com/api/swisseph
year
β Four-digit year, -3000 (BCE) to 3000month
β Month of events or birthdays e.g. 8 for Augustday
- Day of date, e.g. 14hour
β Hour of day in 24-hour format, e.g. 15
for 3PM.minute
β Minute of hour, 0β59latitude
β Location of event or birth latitude e.g. 34.234longitude
β Location of event or birth longitude e.g. -118.23401chartType
β Natal
| Synastry
compare
β Object with same properties as required β for synastry"03"
are OK but not required.// Fetch a natal chart
const url =
"https://cutemagick.com/api/swisseph?
&year=1918
&month=11
&day=11
&hour=3
&minute=33
&latitude=37.7749
&longitude=-122.419";
const response = await fetch(url);
const data = await response.json();
// Example: list all planets
console.log(data.planets);
import requests
# Define chart parameters
params = {
"year": 1918,
"month": 11,
"day": 11,
"hour": 3,
"minute": 33,
"latitude": 37.7749,
"longitude": -122.419
}
# Send request
response = requests.get("https://cutemagick.com/api/swisseph", params=params)
# Parse response as JSON
data = response.json()
# Example: print planets
print(data["planets"])
// A real birth chart
// π June 1, 1926, 9:30 AM, Los Angeles, California
{
"planets": [
{
"name": "Sun",
"sign": "Leo",
"degree": 29,
"house": 1,
"retrograde": false
},
{
"name": "Moon",
"sign": "Cancer",
"degree": 14,
"house": 2,
"retrograde": false
},
{
"name": "Mercury",
"sign": "Virgo",
"degree": 5,
"house": 1,
"retrograde": true
},
{
"name": "Venus",
"sign": "Libra",
"degree": 22,
"house": 3,
"retrograde": false
},
{
"name": "Mars",
"sign": "Scorpio",
"degree": 10,
"house": 4,
"retrograde": false
},
{
"name": "Jupiter",
"sign": "Sagittarius",
"degree": 18,
"house": 5,
"retrograde": false
},
{
"name": "Saturn",
"sign": "Capricorn",
"degree": 2,
"house": 6,
"retrograde": true
},
{
"name": "Uranus",
"sign": "Aquarius",
"degree": 27,
"house": 7,
"retrograde": false
},
{
"name": "Neptune",
"sign": "Pisces",
"degree": 9,
"house": 8,
"retrograde": false
},
{
"name": "Pluto",
"sign": "Sagittarius",
"degree": 15,
"house": 5,
"retrograde": true
}
],
"houses": [
{
"first": [
"Sun",
"Mercury"
]
},
{
"second": [
"Moon"
]
},
{
"third": [
"Venus"
]
},
{
"fourth": [
"Mars"
]
},
{
"fifth": [
"Jupiter",
"Pluto"
]
},
{
"sixth": [
"Saturn"
]
},
{
"seventh": [
"Uranus"
]
},
{
"eighth": [
"Neptune"
]
},
{
"ninth": []
},
{
"tenth": []
},
{
"eleventh": []
},
{
"twelfth": []
}
],
"aspects": [
{
"planet1": "Sun",
"planet2": "Moon",
"aspect": "Square",
"orb": 1.5
},
{
"planet1": "Venus",
"planet2": "Jupiter",
"aspect": "Conjunct",
"orb": 3
},
]
}
Try Cute Swiss Ephemeris free for 30 days with 111 requests/day. After that, $10/month for up to 1,111 requests/day.
30-Day Access
111/day
API requests
Unlimited Access
$10
per month
We use the Swiss Ephemeris, based on NASAβs JPL DE431 data, ensuring precision down to fractions of a degree.
Currently supported: Placidus
Yes! The API supports dates from 3000 BCE to 3000 CE.
Represent BCE years with a leading minus sign β
for example, year=-44
gives results for 44 BCE.
The rate limit is 111 requests a day while you trying out the trial. After that, it's bumped up to 1,111 requests a day.
You can call the API from any language with standard HTTP libraries. For step-by-step guides, examples, and best practices, visit the Library.
Absolutely π Planetary positions for specific times and locations never change, so caching results is safe and highly recommended.
Join developers and astrologers using our API to create beautiful, accurate astrological applications.
β¨ Made with love for astrologers, developers, and cosmic enthusiasts