Solar Irradiance
by Saylor Innovations Data Desk in Weather & location
Peak sun hours and solar irradiance by location - monthly kWh per m2 per day, air temperature and wind from NASA POWER 25-year climatology
https://saylorinnovations.com/api/solar/irradiance- Price
- $0.01
- per call in USDC
- Uptime
- 100%
- last 30 days
- Response time
- 572 ms
- 821 ms slowest 5%
- Last check
- Passed
- 44 min ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
GET https://saylorinnovations.com/api/solar/irradiance
Each call costs $0.01 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
GET https://saylorinnovations.com/api/solar/irradiance?lat=51.5&lon=-0.12Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
lat | string | Yes | Latitude in decimal degrees |
lon | string | Yes | Longitude in decimal degrees |
Example response
The provider's example. We can't check it without paying.
Example response, 101 lines
{
"annual": {
"air_temp_c": 10.39,
"solar_kwh_m2_day": 2.9398,
"wind_10m_m_s": 5.01
},
"best_month": {
"air_temp_c": 15.48,
"month": 6,
"solar_kwh_m2_day": 5.2968,
"wind_10m_m_s": 4.41
},
"location": {
"elevation_m": 73.15,
"lat": 51.5,
"lon": -0.12
},
"monthly": [
{
"air_temp_c": 4.14,
"month": 1,
"solar_kwh_m2_day": 0.8366,
"wind_10m_m_s": 5.78
},
{
"air_temp_c": 4.27,
"month": 2,
"solar_kwh_m2_day": 1.5079,
"wind_10m_m_s": 5.74
},
{
"air_temp_c": 6.09,
"month": 3,
"solar_kwh_m2_day": 2.6426,
"wind_10m_m_s": 5.41
},
{
"air_temp_c": 9.02,
"month": 4,
"solar_kwh_m2_day": 4.0387,
"wind_10m_m_s": 4.65
},
{
"air_temp_c": 12.27,
"month": 5,
"solar_kwh_m2_day": 4.8749,
"wind_10m_m_s": 4.74
},
{
"air_temp_c": 15.48,
"month": 6,
"solar_kwh_m2_day": 5.2968,
"wind_10m_m_s": 4.41
},
{
"air_temp_c": 17.63,
"month": 7,
"solar_kwh_m2_day": 5.0887,
"wind_10m_m_s": 4.43
},
{
"air_temp_c": 17.31,
"month": 8,
"solar_kwh_m2_day": 4.1856,
"wind_10m_m_s": 4.49
},
{
"air_temp_c": 14.65,
"month": 9,
"solar_kwh_m2_day": 3.2347,
"wind_10m_m_s": 4.65
},
{
"air_temp_c": 11.29,
"month": 10,
"solar_kwh_m2_day": 1.8506,
"wind_10m_m_s": 5.19
},
{
"air_temp_c": 7.33,
"month": 11,
"solar_kwh_m2_day": 0.9874,
"wind_10m_m_s": 5.2
},
{
"air_temp_c": 4.79,
"month": 12,
"solar_kwh_m2_day": 0.6619,
"wind_10m_m_s": 5.49
}
],
"period": "25-year climatology",
"source": "NASA POWER (Prediction Of Worldwide Energy Resources)",
"units": "solar in kWh per square metre per day (equals peak sun hours); temperature in C; wind in m/s at 10 m",
"worst_month": {
"air_temp_c": 4.79,
"month": 12,
"solar_kwh_m2_day": 0.6619,
"wind_10m_m_s": 5.49
}
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.01.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://saylorinnovations.com/api/solar/irradiance?lat=51.5&lon=-0.12'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://saylorinnovations.com/api/solar/irradiance?lat=51.5&lon=-0.12' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.01 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.01" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.01 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fsaylorinnovations.com%2Fapi%2Fsolar%2Firradiance
const res = await pay("https://saylorinnovations.com/api/solar/irradiance?lat=51.5&lon=-0.12");
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.01 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.01"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.get("https://saylorinnovations.com/api/solar/irradiance?lat=51.5&lon=-0.12")
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 44 min ago | Passed | 402 | 511 ms | $0.01 |
| 5 h ago | Passed | 402 | 821 ms | $0.01 |
| 10 h ago | Passed | 402 | 572 ms | $0.01 |