Перейти до вмісту
AstroWay/api v2.130.2 · docs
усі системи в нормі

Fixed star catalogue

GET
/fixed-stars/catalog
request.sh
curl -X GET https://api.astroway.info/v1/fixed-stars/catalog \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json"

The star names this API accepts, from Swiss Ephemeris fixstars.cat: traditional name, Bayer nomenclature, constellation and magnitude, with the 36-star astrological default set flagged. Optional ?maxMagnitude= trims to the bright end. Static lookup, no chart needed.

Successful calculation

Media type application/json
object
ok
boolean
data
object
count
number
nullable
total
number
nullable
defaultSetSize
number
nullable
maxMagnitude
object
source
string
nullable
stars
Array<object>
nullable
object
name
string
nullable
traditionalName
string
nullable
nomenclature
string
nullable
constellation
string
nullable
magnitude
number
nullable
default
boolean
nullable
Example
{
"ok": true
}

Validation error

Media type application/json
Example
{
"ok": false,
"error": {
"code": "INVALID_INPUT",
"message": "Validation failed: date: Date must be YYYY-MM-DD",
"details": [
{
"path": "date",
"message": "Date must be YYYY-MM-DD"
}
]
}
}

Missing or invalid API key

Media type application/json
Example
{
"ok": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Invalid API key"
}
}
Корисно?