Migration & utility
Health
GET/health
Liveness check and the supported date range; no key needed.
Request
No request body.
Example
curl -X GET "https://api.bestastroapi.in/health" \
-H "x-api-key: $BESTASTRO_KEY"Response
[]is a list.{key}is a key that varies.- Times carry the UTC offset of the place. A time after midnight has the next date.
| Field | Type | Meaning |
|---|---|---|
| status | string | ok |
| dates | object | Dates we can calculate |
| dates.from | stringISO 8601 | First moment |
| dates.to | stringISO 8601 | Last moment |
Raw sample
200 application/json
{
"dates": {
"from": "1849-12-26T00:00:00+00:00",
"to": "2150-01-22T00:00:00+00:00"
},
"status": "ok"
}Real output for the example request above.
Errors use one format. See error codes. Also in openapi.json.