Skip to content

Declination Series​

POST
/api/calc/declination/series

Declination over a period, plus the dates each body crosses the out-of-bounds limit.

The crossings are the point of this endpoint. A graph is pleasant; the dates the Moon goes out of
bounds are what an astrologer writes down. They are searched on a finer grid than the one the
series is sampled at, so a coarse stepDays costs resolution in the curve but not in the dates.

The series is capped at 400 points. A year at a daily step is 365; a
longer range needs a wider step.

Authorizations​

ApiKeyAuth

API key for authentication. Get your API key from the dashboard.

Type
API Key (header: X-Api-Key)

Request Body​

application/json
JSON
{
  
"startDate": "string",
  
"endDate": "string",
  
"stepDays": 1,
  
"points": [
  
  
"string"
  
]
}

Responses​

Declination series and out-of-bounds crossings

application/vnd.api+json
JSON
{
  
"data": {
  
  
"startDate": "string",
  
  
"endDate": "string",
  
  
"stepDays": 0,
  
  
"points": [
  
  
  
"string"
  
  
],
  
  
"series": {
  
  
  
"additionalProperties": [
  
  
  
  
[
  
  
  
  
]
  
  
  
]
  
  
},
  
  
"crossings": [
  
  
  
{
  
  
  
  
"pointId": "string",
  
  
  
  
"date": "string",
  
  
  
  
"direction": "string",
  
  
  
  
"declination": 0
  
  
  
}
  
  
]
  
}
}

Playground​

Authorization
Body

Samples​

Powered by VitePress OpenAPI

AstroAPI Documentation