GET /astro-util/moon-separation

Calculate the moon separation for the current time and location for given coordinates.

Query parameters

  • ra number(double) Required

    Right Ascension in degrees

  • dec number(double) Required

    Declination in degrees

Responses

  • 200 application/json

    Successful response

    Hide response attributes Show response attributes object
    • Response object
      Hide Response attributes Show Response attributes object
      • Separation number(double)
      • MoonPhase string

        Values are Unknown, FullMoon, WaningGibbous, LastQuarter, WaningCrescent, NewMoon, WaxingCrescent, FirstQuarter, or WaxingGibbous.

    • Error string
    • StatusCode integer
    • Success boolean
    • Type string
  • 500 application/json

    Internal server error, Unknown error

    Hide response attributes Show response attributes object
    • Response string
    • Error string
    • StatusCode integer
    • Success boolean
    • Type string
GET /astro-util/moon-separation
curl \
 --request GET 'http://localhost:1888/v2/api/astro-util/moon-separation?ra=42.0&dec=42.0'
Response examples (200)
{
  "Response": {
    "Separation": 42.0,
    "MoonPhase": "Unknown"
  },
  "Error": "string",
  "StatusCode": 200,
  "Success": true,
  "Type": "API"
}
Response examples (500)
{
  "Response": "string",
  "Error": "Unknown error",
  "StatusCode": 500,
  "Success": false,
  "Type": "API"
}