दिनांक व समय
शहर से समय-क्षेत्र API
शहर-नाम से IANA क्षेत्र व वर्तमान समय; जनसंख्या से विभेदन।
शीर्षलेखों का अनुरोध करें
| Name | Required | Description |
|---|---|---|
X-RapidAPI-Key | required | Your RapidAPI key. Get one free. |
X-RapidAPI-Host | required | timezone-by-city.p.rapidapi.com |
अंतिमबिंदुओं
GET
/v1/time/zone Look up the IANA time zone and current local time of a city
पैरामीटर
| Name | Type | Required | Default | Constraints |
|---|---|---|---|---|
city | string | required | — | matches \S |
country | string | optional | — | — |
कोड उदाहरण
curl --request GET \
--url 'https://timezone-by-city.p.rapidapi.com/v1/time/zone?city=example' \
--header 'x-rapidapi-key: YOUR_API_KEY' \
--header 'x-rapidapi-host: timezone-by-city.p.rapidapi.com' const url = "https://timezone-by-city.p.rapidapi.com/v1/time/zone?city=example";
const options = {
method: "GET",
headers: {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "timezone-by-city.p.rapidapi.com"
}
};
const response = await fetch(url, options);
const data = await response.json();
console.log(data); import requests
url = "https://timezone-by-city.p.rapidapi.com/v1/time/zone"
querystring = {"city": "example"}
headers = {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "timezone-by-city.p.rapidapi.com"
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json()) GET
/v1/time/zone/countries List all countries with timezone data in the dataset, sorted alphabetically by ISO code.
कोड उदाहरण
curl --request GET \
--url 'https://timezone-by-city.p.rapidapi.com/v1/time/zone/countries' \
--header 'x-rapidapi-key: YOUR_API_KEY' \
--header 'x-rapidapi-host: timezone-by-city.p.rapidapi.com' const url = "https://timezone-by-city.p.rapidapi.com/v1/time/zone/countries";
const options = {
method: "GET",
headers: {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "timezone-by-city.p.rapidapi.com"
}
};
const response = await fetch(url, options);
const data = await response.json();
console.log(data); import requests
url = "https://timezone-by-city.p.rapidapi.com/v1/time/zone/countries"
headers = {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "timezone-by-city.p.rapidapi.com"
}
response = requests.get(url, headers=headers)
print(response.json()) इंटरैक्टिव उदाहरण
$ GET /v1/time/zone?city=London
{"city":"London","country":"GB","timezone":"Europe/London","current_time":"2026-07-02T13:00:00+01:00","utc_offset":"+01:00"} सदस्यता और लाइसेंस
RapidAPI पर वाणिज्यिक-तैयार स्तरों के साथ इस एपीआई तक पहुंचें। साइड-प्रोजेक्ट्स, स्टार्टअप्स और उच्च-मात्रा उत्पादन आर्किटेक्चर के लिए डिज़ाइन की गई लचीली योजनाएँ।
डेवलपर सहायता
एकीकृत करने में सहायता चाहिए या कोई कस्टम समापन बिंदु अनुरोध चाहिए? हमारी इंजीनियरिंग टीम प्रमाणीकरण, पेलोड स्कीमा और उच्च-आवृत्ति दर सीमा बढ़ाने में सहायता के लिए यहां है।
सिस्टम प्रदर्शन
99.9% अपटाइम एसएलए के साथ 24/7 निगरानी की जाती है। अल्ट्रा-लो विलंबता प्रतिक्रिया समय सुनिश्चित करने के लिए विश्व स्तर पर वितरित एज कैशिंग के साथ क्लाउड-नेटिव माइक्रोसर्विसेज के ऊपर निर्मित।
सभी सिस्टम चालू