✨
Star Chart
Generates a star chart with the given parameters, and returns the url
post
https://api.astronomyapi.com
/api/v2/studio/star-chart
Generate star chart
To generate an image of a constellation the
type
in the view
object must be set to constellation
. The 3 letter id of the constellation must be passed in the parameters for the view object.The 3 letter constellation id is case sensitive, only lower case is allowed
{
"style": "inverted",
"observer": {
"latitude": 33.775867,
"longitude": -84.39733,
"date": "2019-12-20"
},
"view": {
"type": "constellation",
"parameters": {
"constellation": "ori" // 3 letter constellation id
}
}
}
To generate an image of an area in the sky, set the
type
to area
, then pass the RA and Dec values in the position
object for the view parameters
. Currently equatorial coordinates are supported by the API. Additionally the parameter zoom
can be provided to scale the image, but it's optional.// Note how this request does not have the field `style`
// The API will use the default style
{
"observer": {
"latitude": 33.775867,
"longitude": -84.39733,
"date": "2019-12-20"
},
"view": {
"type": "area",
"parameters": {
"position": {
"equatorial": {
"rightAscension": 14.83,
"declination": -15.23
}
},
"zoom": 3 //optional
}
}
}




Last modified 6mo ago