Find an API

Search public APIs with auth details & Postman guides

← All APIs

OpenUV - Global Real-Time UV Index Forecast API

openuv · Company

Company No Auth Free & Open API

The missing minimalistic JSON real-time UV Index API for awesome Developers, Innovators and Smart Home Enthusiasts

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

GET GET /forecast

Get hourly UV Index Forecast by location and date. Optional altitude, ozone level and datetime could be provided.

https://api.apis.guru/v2/specs/openuv.io/v1/forecast?dt=2018-02-04T04:39:06.467Z&alt=1050&lat=78.67&lng=115.67&ozone=304.5

Hover any highlighted part to learn what it does

Headers — extra info sent with the request
x-access-token example
curl -X GET "https://api.apis.guru/v2/specs/openuv.io/v1/forecast?dt=2018-02-04T04%3A39%3A06.467Z&alt=1050&lat=78.67&lng=115.67&ozone=304.5" \
  -H "x-access-token: example"
import requests
params = {
    "dt": "2018-02-04T04:39:06.467Z",
    "alt": "1050",
    "lat": "78.67",
    "lng": "115.67",
    "ozone": "304.5"
}
headers = {
    "x-access-token": "example"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/openuv.io/v1/forecast",
    params=params,
    headers=headers,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/openuv.io/v1/forecast');
url.searchParams.set('dt', '2018-02-04T04:39:06.467Z');
url.searchParams.set('alt', '1050');
url.searchParams.set('lat', '78.67');
url.searchParams.set('lng', '115.67');
url.searchParams.set('ozone', '304.5');

const response = await fetch(url, {
  headers: {
    'x-access-token': 'example'
  },
}); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/openuv.io/v1/forecast")
	q := baseURL.Query()
	q.Set("dt", "2018-02-04T04:39:06.467Z")
	q.Set("alt", "1050")
	q.Set("lat", "78.67")
	q.Set("lng", "115.67")
	q.Set("ozone", "304.5")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)
	req.Header.Set("x-access-token", "example")

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/openuv.io/v1/forecast")
uri.query = URI.encode_www_form({
  "dt" => "2018-02-04T04:39:06.467Z",
  "alt" => "1050",
  "lat" => "78.67",
  "lng" => "115.67",
  "ozone" => "304.5"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)
req["x-access-token"] = "example"

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/openuv.io/v1/forecast?" . http_build_query([
    "dt" => "2018-02-04T04:39:06.467Z",
    "alt" => "1050",
    "lat" => "78.67",
    "lng" => "115.67",
    "ozone" => "304.5"
]);
$opts = ["http" => [
    "method" => "GET",
    "header" => implode("\r\n", [
        "x-access-token: example"
    ]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET GET /protection

Get daily protection time by location, UV Index from and UV Index to with 10 minutes accuracy. Optional altitide and ozone level could be provided.

https://api.apis.guru/v2/specs/openuv.io/v1/protection?to=3.6&alt=1050&lat=78.67&lng=115.67&from=2.5&ozone=304.5

Hover any highlighted part to learn what it does

Headers — extra info sent with the request
x-access-token example
curl -X GET "https://api.apis.guru/v2/specs/openuv.io/v1/protection?to=3.6&alt=1050&lat=78.67&lng=115.67&from=2.5&ozone=304.5" \
  -H "x-access-token: example"
import requests
params = {
    "to": "3.6",
    "alt": "1050",
    "lat": "78.67",
    "lng": "115.67",
    "from": "2.5",
    "ozone": "304.5"
}
headers = {
    "x-access-token": "example"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/openuv.io/v1/protection",
    params=params,
    headers=headers,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/openuv.io/v1/protection');
url.searchParams.set('to', '3.6');
url.searchParams.set('alt', '1050');
url.searchParams.set('lat', '78.67');
url.searchParams.set('lng', '115.67');
url.searchParams.set('from', '2.5');
url.searchParams.set('ozone', '304.5');

const response = await fetch(url, {
  headers: {
    'x-access-token': 'example'
  },
}); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/openuv.io/v1/protection")
	q := baseURL.Query()
	q.Set("to", "3.6")
	q.Set("alt", "1050")
	q.Set("lat", "78.67")
	q.Set("lng", "115.67")
	q.Set("from", "2.5")
	q.Set("ozone", "304.5")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)
	req.Header.Set("x-access-token", "example")

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/openuv.io/v1/protection")
uri.query = URI.encode_www_form({
  "to" => "3.6",
  "alt" => "1050",
  "lat" => "78.67",
  "lng" => "115.67",
  "from" => "2.5",
  "ozone" => "304.5"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)
req["x-access-token"] = "example"

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/openuv.io/v1/protection?" . http_build_query([
    "to" => "3.6",
    "alt" => "1050",
    "lat" => "78.67",
    "lng" => "115.67",
    "from" => "2.5",
    "ozone" => "304.5"
]);
$opts = ["http" => [
    "method" => "GET",
    "header" => implode("\r\n", [
        "x-access-token: example"
    ]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET GET /uv

Get real-time UV Index by location. Optional altitude, ozone level and datetime could be provided.

https://api.apis.guru/v2/specs/openuv.io/v1/uv?dt=2018-02-04T04:39:06.467Z&alt=1050&lat=78.67&lng=115.67&ozone=304.5

Hover any highlighted part to learn what it does

Headers — extra info sent with the request
x-access-token example
curl -X GET "https://api.apis.guru/v2/specs/openuv.io/v1/uv?dt=2018-02-04T04%3A39%3A06.467Z&alt=1050&lat=78.67&lng=115.67&ozone=304.5" \
  -H "x-access-token: example"
import requests
params = {
    "dt": "2018-02-04T04:39:06.467Z",
    "alt": "1050",
    "lat": "78.67",
    "lng": "115.67",
    "ozone": "304.5"
}
headers = {
    "x-access-token": "example"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/openuv.io/v1/uv",
    params=params,
    headers=headers,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/openuv.io/v1/uv');
url.searchParams.set('dt', '2018-02-04T04:39:06.467Z');
url.searchParams.set('alt', '1050');
url.searchParams.set('lat', '78.67');
url.searchParams.set('lng', '115.67');
url.searchParams.set('ozone', '304.5');

const response = await fetch(url, {
  headers: {
    'x-access-token': 'example'
  },
}); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/openuv.io/v1/uv")
	q := baseURL.Query()
	q.Set("dt", "2018-02-04T04:39:06.467Z")
	q.Set("alt", "1050")
	q.Set("lat", "78.67")
	q.Set("lng", "115.67")
	q.Set("ozone", "304.5")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)
	req.Header.Set("x-access-token", "example")

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/openuv.io/v1/uv")
uri.query = URI.encode_www_form({
  "dt" => "2018-02-04T04:39:06.467Z",
  "alt" => "1050",
  "lat" => "78.67",
  "lng" => "115.67",
  "ozone" => "304.5"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)
req["x-access-token"] = "example"

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/openuv.io/v1/uv?" . http_build_query([
    "dt" => "2018-02-04T04:39:06.467Z",
    "alt" => "1050",
    "lat" => "78.67",
    "lng" => "115.67",
    "ozone" => "304.5"
]);
$opts = ["http" => [
    "method" => "GET",
    "header" => implode("\r\n", [
        "x-access-token: example"
    ]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));

Postman Setup Guide

Get Postman ↗
  1. See official documentation for authentication and setup.

What can you build with OpenUV - Global Real-Time UV Index Forecast API?

OpenUV - Global Real-Time UV Index Forecast API is a Company API. Developers commonly use company APIs for:

  • enriching CRM records with company firmographics
  • building lead-generation and prospecting tools
  • verifying business identity and registration details
  • monitoring competitors and market intelligence
  • powering B2B data enrichment pipelines

No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. OpenUV - Global Real-Time UV Index Forecast API is free to use, making it a low-risk choice to experiment with.

New to APIs? Read our beginner's guide

Open documentation ↗