About the API:
The ultraviolet index, or UV index, is an international standard measurement of the strength of the sunburn-producing ultraviolet (UV) radiation at a particular place and time.
The UV index is designed as an open-ended linear scale, directly proportional to the intensity of UV radiation that causes human skin to sunburn
This API will provide you with the UV index for the locations of your preference.
Just pass the latitude and longitude of the location you want to know the UV index, and receive the current index, the maximum UV index and what it would be in UTC time, and sun info, such as rise, sunset, dawn, night, and sun position.
This API is ideal for those who need to create an app that will provide their users with information about the UV index of the place to where they will be traveling, and provide recommendations based on the user's skin type.
Create alarms for your users to remember them to put sunblock or sunscreens based on the current UV index and more.
Besides the number of API calls per month, there are no other limitations.
Just pass the latitude and longitude from where you want to get the UV index in real time.
All times are expressed in UTC.
Object | Description |
---|---|
lat |
[Required] Latitude. |
lng |
[Required] Longitude. |
{"result":{"uv":8.8844,"uv_time":"2022-10-12T18:18:18.886Z","uv_max":9.3573,"uv_max_time":"2022-10-12T17:35:56.449Z","ozone":285.7,"ozone_time":"2022-06-02T12:05:13.749Z","safe_exposure_time":{"st1":19,"st2":23,"st3":30,"st4":38,"st5":60,"st6":113},"sun_info":{"sun_times":{"solarNoon":"2022-10-12T17:35:56.449Z","nadir":"2022-10-12T05:35:56.449Z","sunrise":"2022-10-12T11:43:37.526Z","sunset":"2022-10-12T23:28:15.371Z","sunriseEnd":"2022-10-12T11:45:55.477Z","sunsetStart":"2022-10-12T23:25:57.421Z","dawn":"2022-10-12T11:21:23.292Z","dusk":"2022-10-12T23:50:29.605Z","nauticalDawn":"2022-10-12T10:55:39.424Z","nauticalDusk":"2022-10-13T00:16:13.473Z","nightEnd":"2022-10-12T10:29:59.183Z","night":"2022-10-13T00:41:53.714Z","goldenHourEnd":"2022-10-12T12:13:11.709Z","goldenHour":"2022-10-12T22:58:41.188Z"},"sun_position":{"azimuth":0.37898939830176526,"altitude":1.0469926114702273}}}}
curl --location --request GET 'https://zylalabs.com/api/553/uv+index+real-time+and+forecasted+api/388/uv+index+real-time?lat=20.64&lng=-87.08' --header 'Authorization: Bearer YOUR_API_KEY'
Get hourly UV Index Forecast by location.
Object | Description |
---|---|
lat |
[Required] Latitude. |
lng |
[Required] Longitude. |
{"result":[{"uv":0,"uv_time":"2022-10-12T11:43:37.190Z","sun_position":{"azimuth":-1.4381127929163937,"altitude":-0.011591245921121297}},{"uv":0.4025,"uv_time":"2022-10-12T12:43:37.190Z","sun_position":{"azimuth":-1.3399770748085613,"altitude":0.229166452022905}},{"uv":1.6702,"uv_time":"2022-10-12T13:43:37.190Z","sun_position":{"azimuth":-1.2212709579761107,"altitude":0.46378101422792745}},{"uv":4.0448,"uv_time":"2022-10-12T14:43:37.190Z","sun_position":{"azimuth":-1.0615387814752695,"altitude":0.6865806125726018}},{"uv":6.6608,"uv_time":"2022-10-12T15:43:37.190Z","sun_position":{"azimuth":-0.8232711365480813,"altitude":0.885345674223837}},{"uv":8.8844,"uv_time":"2022-10-12T16:43:37.190Z","sun_position":{"azimuth":-0.446766237000798,"altitude":1.032303283371161}},{"uv":9.3573,"uv_time":"2022-10-12T17:43:37.190Z","sun_position":{"azimuth":0.0766034084526181,"altitude":1.0783727177317428}},{"uv":8.4014,"uv_time":"2022-10-12T18:43:37.190Z","sun_position":{"azimuth":0.5683392266808724,"altitude":0.9985844733953702}},{"uv":5.9162,"uv_time":"2022-10-12T19:43:37.190Z","sun_position":{"azimuth":0.8994704760397326,"altitude":0.832754241611713}},{"uv":3.2096,"uv_time":"2022-10-12T20:43:37.190Z","sun_position":{"azimuth":1.1101281721242626,"altitude":0.6252661169707424}},{"uv":1.1571,"uv_time":"2022-10-12T21:43:37.190Z","sun_position":{"azimuth":1.255190616849617,"altitude":0.3982547637099161}},{"uv":0.2113,"uv_time":"2022-10-12T22:43:37.190Z","sun_position":{"azimuth":1.3661412690128316,"altitude":0.16143959036573388}}]}
curl --location --request GET 'https://zylalabs.com/api/553/uv+index+real-time+and+forecasted+api/389/uv+index+forecasted+hourly?lat=20.702179325130942&lng=-87.07169921875001' --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 UV Index Real-Time and Forecasted API REST 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 commitments. One click upgrade/downgrade or cancellation. No questions asked.
Zyla API Hub is, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.
Prices are listed in USD. We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the worldβs most reliable payment companies. If you have any trouble with paying by card, just contact us at [email protected]
Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further
Prices are based on a recurring monthly subscription depending on the plan selected β plus overage fees applied when a developer exceeds a planβs quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.
Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.
You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]
Service Level:
80%
Response Time:
145ms
Service Level:
96%
Response Time:
124ms
Service Level:
100%
Response Time:
1,160ms
Service Level:
100%
Response Time:
808ms
Service Level:
50%
Response Time:
379ms
Service Level:
100%
Response Time:
361ms
Service Level:
67%
Response Time:
1,512ms