Fixed Stars List
The Fixed Stars List API returns the catalog of fixed stars available for use in subsequent western astrology computations. This endpoint is useful when you want to know which fixed star identifiers the system supports so you can query them or map them into your own UI.
API Endpoint
POST https://astroapi-8.divineapi.com/western-api/v1/fixed-stars-list
Returns Fixed Stars List in response.
Headers
| Name | Type | Description |
|---|---|---|
| Authorization* | String | Your API Access Token, e.g. Bearer {token} |
Request Body
| Name | Type | Description |
|---|---|---|
| api_key* | String | Your API key |
200: OK Fixed Stars List Fetched Successfully
{
"status": "success",
"code": 200,
"message": "Request successful",
"data": [
"Antares",
"Betelgeuse",
"Polaris",
"Sirius",
"Vega",
....
]
}The data array contains the identifiers/names of fixed stars supported by this API. You can store or display these in your application for selection.
Example Code Implementations
Below are example implementations in various programming environments.
cURL
curl --location 'https://astroapi-8.divineapi.com/western-api/v1/fixed-stars-list' \
--header 'Authorization: Bearer your API Access Token' \
--form 'api_key="your API Key"'NodeJS
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://astroapi-8.divineapi.com/western-api/v1/fixed-stars-list',
'headers': {
'Authorization': 'Bearer your API Access Token'
},
formData: {
'api_key': 'your API Key'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
JavaScript jQuery AJAX
var form = new FormData();
form.append("api_key", "your API Key");
var settings = {
"url": "https://astroapi-8.divineapi.com/western-api/v1/fixed-stars-list",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer your API Access Token"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});Python
import requests
url = "https://astroapi-8.divineapi.com/western-api/v1/fixed-stars-list"
payload = {'api_key': 'your API Key'}
files=[
]
headers = {
'Authorization': 'Bearer your API Access Token'
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)