Skip to content
BestAstroAPI

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"

Try it live

Sends a real request from your browser.

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.
FieldTypeMeaning
statusstringok
datesobjectDates we can calculate
dates.fromstringISO 8601First moment
dates.tostringISO 8601Last 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.

Welcome! How will you use it?

We'll show you what matters to you. You can switch any time at the top.