Vibe Springs · Solar

by Vibe Springs

GETBase

$0.002

per call · USD Coin on Base

Astronomical solar calculator and solar radiation forecast database. Returns highly accurate daily solar cycles: sunrise/sunset times, astronomical/civil/nautical twilights, precise solar noon, day length, maximum UV index, and shortwave solar radiation levels (MJ/m²) for any location globally. Crucial for solar panel yield forecasting, photography timing, agriculture, and outdoor wellness tracking.

Endpoint

GET https://vibesprings.net/api/solar

1

Calls / 30d

1

Unique payers / 30d

Sep 9

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://vibesprings.net/api/solar", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://vibesprings.net/api/solar?date=2024-06-21&days=1&location=Reykjavik" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "data": [
    {
      "date": "2024-06-21",
      "day_length_seconds": 76140,
      "shortwave_radiation_sum_mj_m2": 24.5,
      "solar_noon_utc": "2024-06-21T13:28:00Z",
      "sunrise_utc": "2024-06-21T02:54:00Z",
      "sunset_utc": "2024-06-22T00:03:00Z",
      "uv_index_max": 4.5
    }
  ],
  "latitude": 64.1,
  "location": "Reykjavik, Iceland",
  "longitude": -21.9,
  "timezone": "Atlantic/Reykjavik"
}

Payment details

Pay to0x38c063312719220c676e988f0dee14b4ec0e44c8
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Search & Web and the homepage with a featured placement.

Get featured →

More from Vibe Springs & similar services