दिनांक व समय
सूर्योदय-सूर्यास्त API
NOAA सौर-विधि से किसी स्थान-तिथि का उदय, अस्त, मध्याह्न व दिन-लंबाई।
शीर्षलेखों का अनुरोध करें
| Name | Required | Description |
|---|---|---|
X-RapidAPI-Key | required | Your RapidAPI key. Get one free. |
X-RapidAPI-Host | required | sunrise-sunset.p.rapidapi.com |
अंतिमबिंदुओं
GET
/v1/astronomy/sun Compute sunrise, sunset, solar noon, and day length for a location
पैरामीटर
| Name | Type | Required | Default | Constraints |
|---|---|---|---|---|
date | string | required | — | matches \S |
lat | number | required | — | -90-90 |
lon | number | required | — | -180-180 |
कोड उदाहरण
curl --request GET \
--url 'https://sunrise-sunset.p.rapidapi.com/v1/astronomy/sun?date=example&lat=0&lon=0' \
--header 'x-rapidapi-key: YOUR_API_KEY' \
--header 'x-rapidapi-host: sunrise-sunset.p.rapidapi.com' const url = "https://sunrise-sunset.p.rapidapi.com/v1/astronomy/sun?date=example&lat=0&lon=0";
const options = {
method: "GET",
headers: {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "sunrise-sunset.p.rapidapi.com"
}
};
const response = await fetch(url, options);
const data = await response.json();
console.log(data); import requests
url = "https://sunrise-sunset.p.rapidapi.com/v1/astronomy/sun"
querystring = {"date": "example", "lat": 0, "lon": 0}
headers = {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "sunrise-sunset.p.rapidapi.com"
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json()) इंटरैक्टिव उदाहरण
$ GET /v1/astronomy/sun?lat=51.5074&lon=-0.1278&date=2026-06-21
{"sunrise":"2026-06-21T03:43:00Z","sunset":"2026-06-21T20:21:00Z","solar_noon":"2026-06-21T12:02:00Z","day_length_hours":16.64} सदस्यता और लाइसेंस
RapidAPI पर वाणिज्यिक-तैयार स्तरों के साथ इस एपीआई तक पहुंचें। साइड-प्रोजेक्ट्स, स्टार्टअप्स और उच्च-मात्रा उत्पादन आर्किटेक्चर के लिए डिज़ाइन की गई लचीली योजनाएँ।
डेवलपर सहायता
एकीकृत करने में सहायता चाहिए या कोई कस्टम समापन बिंदु अनुरोध चाहिए? हमारी इंजीनियरिंग टीम प्रमाणीकरण, पेलोड स्कीमा और उच्च-आवृत्ति दर सीमा बढ़ाने में सहायता के लिए यहां है।
सिस्टम प्रदर्शन
99.9% अपटाइम एसएलए के साथ 24/7 निगरानी की जाती है। अल्ट्रा-लो विलंबता प्रतिक्रिया समय सुनिश्चित करने के लिए विश्व स्तर पर वितरित एज कैशिंग के साथ क्लाउड-नेटिव माइक्रोसर्विसेज के ऊपर निर्मित।
सभी सिस्टम चालू