{
"location": {
"latitude": 40.7484,
"longitude": -73.9967,
"city": "New York",
"state": "NY",
"time_zone": "America/New_York",
"forecast_office": "OKX"
},
"updated": "2026-11-20T06:32:09+00:00",
"units": "us",
"periods": [
{
"name": "Overnight",
"start": "2026-11-20T05:00:00-05:00",
"end": "2026-11-20T06:00:00-05:00",
"is_daytime": false,
"temperature": 44,
"temperature_unit": "F",
"precipitation_chance_percent": 0,
"wind_speed": "3 mph",
"wind_direction": "W",
"summary": "Partly Cloudy",
"detail": "Partly cloudy, with a low around 44. West wind around 3 mph."
},
{
"name": "Friday",
"start": "2026-11-20T06:00:00-05:00",
"end": "2026-11-20T18:00:00-05:00",
"is_daytime": true,
"temperature": 67,
"temperature_unit": "F",
"precipitation_chance_percent": 0,
"wind_speed": "6 mph",
"wind_direction": "W",
"summary": "Sunny",
"detail": "Sunny. High near 67, with temperatures falling to around 62 in the afternoon. West wind around 6 mph."
},
{
"name": "Friday Night",
"start": "2026-11-20T18:00:00-05:00",
"end": "2026-11-21T06:00:00-05:00",
"is_daytime": false,
"temperature": 45,
"temperature_unit": "F",
"precipitation_chance_percent": 0,
"wind_speed": "5 mph",
"wind_direction": "N",
"summary": "Mostly Clear",
"detail": "Mostly clear, with a low around 45. North wind around 5 mph."
}
],
"source": "US National Weather Service (weather.gov)"
}
curl --location --request GET 'https://zylalabs.com/api/15110/us+weather+api/40158/7-day+forecast?lat=40.7128&lon=-74.006&zip=10001&units=us' --header 'Authorization: Bearer YOUR_API_KEY'
{
"location": {
"latitude": 40.7484,
"longitude": -73.9967,
"city": "New York",
"state": "NY",
"time_zone": "America/New_York",
"forecast_office": "OKX"
},
"updated": "2026-11-20T06:32:09+00:00",
"units": "us",
"hours": [
{
"start": "2026-11-20T05:00:00-05:00",
"end": "2026-11-20T06:00:00-05:00",
"is_daytime": false,
"temperature": 44,
"temperature_unit": "F",
"precipitation_chance_percent": 0,
"wind_speed": "3 mph",
"wind_direction": "W",
"summary": "Partly Cloudy",
"humidity_percent": 73
},
{
"start": "2026-11-20T06:00:00-05:00",
"end": "2026-11-20T07:00:00-05:00",
"is_daytime": true,
"temperature": 45,
"temperature_unit": "F",
"precipitation_chance_percent": 0,
"wind_speed": "3 mph",
"wind_direction": "W",
"summary": "Sunny",
"humidity_percent": 68
},
{
"start": "2026-11-20T07:00:00-05:00",
"end": "2026-11-20T08:00:00-05:00",
"is_daytime": true,
"temperature": 44,
"temperature_unit": "F",
"precipitation_chance_percent": 0,
"wind_speed": "3 mph",
"wind_direction": "W",
"summary": "Sunny",
"humidity_percent": 70
}
],
"source": "US National Weather Service (weather.gov)"
}
curl --location --request GET 'https://zylalabs.com/api/15110/us+weather+api/40159/hourly+forecast?lat=40.7128&lon=-74.006&zip=10001&units=us&hours=24' --header 'Authorization: Bearer YOUR_API_KEY'
{
"location": {
"latitude": 40.7484,
"longitude": -73.9967,
"city": "New York",
"state": "NY",
"time_zone": "America/New_York",
"forecast_office": "OKX"
},
"station": {
"id": "KNYC",
"name": "New York City, Central Park"
},
"observed_at": "2026-11-20T09:51:00+00:00",
"summary": "Clear",
"temperature_c": 11.1,
"temperature_f": 52,
"feels_like_c": null,
"feels_like_f": null,
"dewpoint_c": 0.6,
"humidity_percent": 48,
"wind_speed_kmh": 7.6,
"wind_speed_mph": 4.7,
"wind_direction_degrees": 290,
"wind_gust_kmh": null,
"pressure_hpa": 1027.1,
"visibility_km": 16.1,
"source": "US National Weather Service (weather.gov)"
}
curl --location --request GET 'https://zylalabs.com/api/15110/us+weather+api/40160/current+conditions+from+the+nearest+weather+station?lat=40.7128&lon=-74.006&zip=10001' --header 'Authorization: Bearer YOUR_API_KEY'
{"count":1,"alerts":[{"id":"urn:oid:2.49.0.1.840.0.ef2cf1609df4ccaacd0257e7294d1ccf2c1d2855.001.1","event":"Rip Current Statement","severity":"Moderate","urgency":"Expected","certainty":"Likely","headline":"Rip Current Statement issued November 20 at 9:14AM EST until November 20 at 7:00PM EST by NWS Miami FL","area":"Coastal Broward County; Coastal Miami Dade County","effective":"2026-11-20T09:14:00-05:00","expires":"2026-11-20T19:00:00-05:00","ends":"2026-11-20T19:00:00-05:00","sender":"NWS Miami FL","description":"* WHAT...Dangerous rip currents.\n\n* WHERE...Coastal Broward County and Coastal Miami Dade County.\n\n* WHEN...Until 7 PM EST this evening.\n\n* IMPACTS...Rip currents can sweep even the best swimmers away\nfrom shore into deeper water.","instruction":"Swim near a lifeguard. If caught in a rip current, relax and\nfloat. Don't swim against the current. If able, swim in a\ndirection following the shoreline. If unable to escape, face the\nshore and call or wave for help."}],"source":"US National Weather Service (weather.gov)"}
curl --location --request GET 'https://zylalabs.com/api/15110/us+weather+api/40161/active+weather+alerts?lat=40.7128&lon=-74.006&zip=10001' --header 'Authorization: Bearer YOUR_API_KEY'
साइन अप करने के बाद, प्रत्येक डेवलपर को एक पर्सनल API एक्सेस की असाइन की जाती है, जो अक्षरों और अंकों का एक यूनिक संयोजन होता है, जिसका उपयोग हमारे API एंडपॉइंट तक पहुंचने के लिए किया जाता है। प्रमाणीकरण के लिए अमेरिकी मौसम API के साथ बस अपने बेयरर टोकन को Authorization हेडर में शामिल करें।
| हेडर | विवरण |
|---|---|
Authorization
|
आवश्यक
होना चाहिए Bearer access_key. जब आप सब्सक्राइब हों तो ऊपर "Your API Access Key" देखें।
|
कोई लंबी अवधि की प्रतिबद्धता नहीं। कभी भी अपग्रेड, डाउनग्रेड या कैंसल करें।
अमेरिका में मौसम कोऑर्डिनेट्स या ZIP कोड द्वारा: 7-दिन और घंटेवार पूर्वानुमान, वर्तमान स्थितियाँ और सक्रिय अलर्ट।
अमेरिका की राष्ट्रीय मौसम सेवा (सार्वजनिक डोमेन)
संयुक्त राज्य अमेरिका और क्षेत्र केवल निकटतम स्टेशन से वर्तमान स्थितियाँ आती हैं और यह एक घंटे पुरानी हो सकती हैं
यह अगले सात दिनों के पूर्वानुमान की अवधि लौटाता है, जिन्हें आमतौर पर दिन और रात की अवधियों में बाँटा जाता है। प्रत्येक अवधि में उसका नाम, शुरू और समाप्ति का समय, दिन का दर्जा, तापमान, वर्षा की संभावना, हवा, सारांश और विस्तृत विवरण शामिल होता है। .
स्थान ऑब्जेक्ट पूर्वानुमान बिंदु की पहचान अक्षांश देशांतर शहर राज्य समय क्षेत्र और पूर्वानुमान कार्यालय के साथ करता है इन फ़ील्ड का उपयोग निर्धारित स्थान दिखाने और टाइमस्टैम्प की सही स्थानीय समय में व्याख्या करने के लिए करें
पूर्वानुमान के टाइमस्टैम्प समय-क्षेत्र ऑफ़सेट वाले ISO 8601 मान होते हैं, जैसे `2026-11-20T06:00:00-05:00` पूर्वानुमान प्रतिक्रियाएँ `units: "us"` के साथ इकाई प्रणाली की पहचान करती हैं और तापमान फ़ारेनहाइट तथा हवा की गति मील प्रति घंटे में प्रदान करती हैं Only the translated text should be returned Do not add periods or commas If there was an error in the translation only "error" should be returned
यह निकटतम रिपोर्टिंग स्टेशन से नवीनतम अवलोकन लौटाता है जिसमें स्टेशन की पहचान अवलोकन का समय सारांश तापमान महसूस होने वाला तापमान ओसांक आर्द्रता हवा का दबाव दृश्यता और स्टेशन का स्थान शामिल हैं कुछ फ़ील्ड की रिपोर्ट न होने पर उनका मान null हो सकता है
अलर्ट प्रतिक्रिया में एक संख्या और अलर्ट की एक सरणी होती है प्रत्येक अलर्ट में उसकी घटना गंभीरता तात्कालिकता निश्चितता शीर्षक प्रभावित क्षेत्र प्रभावी और समाप्ति समय जारी करने वाला प्रेषक विवरण और सुरक्षा निर्देश शामिल हो सकते हैं
अनुरोध भौगोलिक निर्देशांकों या ज़िप कोड के माध्यम से अमेरिका के किसी स्थान को लक्षित कर सकते हैं निर्देशांक-आधारित अनुरोध अक्षांश और देशांतर का उपयोग करते हैं जबकि ज़िप कोड वाले अनुरोध पूर्वानुमान अवलोकन या चेतावनी लौटाने से पहले संबंधित अमेरिकी स्थान की पहचान करते हैं
Null फ़ील्ड को शून्य मानों के बजाय अनुपलब्ध प्रेक्षण मानें उदाहरण के लिए `feels_like_f` या `wind_gust_mph` null हो सकते हैं यदि स्टेशन ने उनकी रिपोर्ट नहीं की हो एप्लिकेशन को अनुपलब्ध फ़ील्ड छोड़ देने चाहिए उन्हें चिह्नित करना चाहिए या अन्यथा सहज रूप से संभालना चाहिए