{
"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'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the US Weather API simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime.
US weather by coordinates or ZIP code: 7-day and hourly forecasts, current conditions and active alerts.
US National Weather Service (public domain).
United States and territories only. Current conditions come from the nearest station and can be an hour old.
It returns forecast periods for the next seven days, typically divided into daytime and nighttime periods. Each period includes its name, start and end times, daytime status, temperature, precipitation chance, wind, summary, and detailed description.
The location object identifies the forecast point with latitude, longitude, city, state, time zone, and forecast office. Use these fields to display the resolved location and interpret timestamps in the correct local time.
Forecast timestamps are ISO 8601 values with time-zone offsets, such as `2026-11-20T06:00:00-05:00`. Forecast responses identify the unit system with `units: "us"` and provide temperatures in Fahrenheit and wind speeds in miles per hour.
It returns the latest observation from the nearest reporting station, including station identity, observation time, summary, temperature, feels-like temperature, dew point, humidity, wind, pressure, visibility, and the station’s location. Some fields may be null when unreported.
The alerts response contains a count and an alerts array. Each alert can include its event, severity, urgency, certainty, headline, affected area, effective and expiration times, issuing sender, description, and safety instructions.
Requests can target a US location by geographic coordinates or ZIP code. Coordinate-based requests use latitude and longitude, while ZIP-code requests identify the corresponding US location before returning forecasts, observations, or alerts.
Treat null fields as unavailable observations rather than zero values. For example, `feels_like_f` or `wind_gust_mph` may be null if the station did not report them. Applications should omit, label, or otherwise gracefully handle unavailable fields.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund