Find Sun And Moon

Empower your astrological explorations by accessing precise Sun and Moon data through our dedicated 'Sun and Moon' API within the realm of Indian Astrology.

POST https://astroapi-2.divineapi.com/indian-api/v1/find-sun-and-moon

Returns rising and setting details of Sun and Moon in response

Headers

NameTypeDescription

Authorization*

String

your API Access Token

eg: Bearer {token}

Request Body

NameTypeDescription

api_key*

String

your API key

day*

Integer

day of panchang, eg: 24

month*

Integer

month of panchang, eg: 05

year*

Integer

year of panchang, eg: 2023

place

String

place, ex: New Delhi

lat*

Float

latitude, eg: 28.6139

lon*

Float

longitude, eg: 77.2090

tzone*

Float

timezone, eg: 5.5 Timezone List

lan

String

Language en/hi, default en

{
    "success": 1,
    "data": {
        "sunrise": "05:26:20 AM",
        "sunset": "07:09:54 PM",
        "moonrise": "09:02:52 AM",
        "moonset": "11:31:49 PM",
        "weekday": "Budhawara"
    }
}

Take a look at how you might call this method via cURL, NodeJS or JavaScript jQuery AJAX and Python :

curl --location 'https://astroapi-2.divineapi.com/indian-api/v1/find-sun-and-moon' \
--header 'Authorization: Bearer {Your Auth Token}' \
--form 'api_key="{Your API Key}"' \
--form 'day="24"' \
--form 'month="05"' \
--form 'year="2023"' \
--form 'Place="New Delhi"' \
--form 'lat="28.6139"' \
--form 'lon="77.2090"' \
--form 'tzone="5.5"' \
--form 'lan="en"'

Last updated