# NASA POWER Historical Solar Irradiance & Weather API

> NASA POWER Historical Solar Irradiance & Weather API is a paid API for AI agents from x402-datashop-production.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns historical daily solar irradiance and weather data (from NASA POWER) for any latitude/longitude coordinate over a specified date range

## Facts

- Endpoint: GET https://x402-datashop-production.up.railway.app/v1/solar/history
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nasa-power-historical-solar-irradiance-weather-api-8950875f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BKuFGnN9X_trfYWFukRbm

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability nasa-power-historical-solar-irradiance-weather-api-8950875f
```

Example prompt: Pull the historical daily solar irradiance (ALLSKY_SFC_SW_DWN) and 2-meter temperature from NASA POWER for latitude 48.85, longitude 2.35, covering June 1 to June 30, 2024.

## When to prefer this

Use this endpoint when you need historical daily solar and weather data (going back to 1981) for any coordinate on Earth, especially for PV project due diligence, agrivoltaic site assessment, off-grid energy system design, or any application requiring NASA POWER climate parameters. Prefer this over general weather APIs when you specifically need solar irradiance metrics and multi-decade historical depth at daily resolution.

## Known failure modes

- Date range exceeds 366 days — API rejects with an error
- Start date before 1981-01-01 — not covered by NASA POWER dataset
- Invalid or out-of-range latitude/longitude values
- More than 6 NASA POWER parameter codes requested
- Unknown or misspelled POWER parameter code
- Location has no data (e.g. open ocean edge cases) — returns -999 for all days
- Payment failure — x402 micropayment of $0.01 USDC not completed

## How this service works

Historical daily solar irradiance and weather series from NASA POWER for any lat/lon: ALLSKY_SFC_SW_DWN (kWh/m2/day), T2M (deg C), WS10M (m/s) and other POWER codes. Query: ?latitude=48.85&longitude=2.35&start=20260601&end=20260630&parameters=ALLSKY_SFC_SW_DWN,T2M. Coverage 1981..present (few days lag), max 366 days per call, -999 marks missing days. 24h cache. Sized for PV project due diligence, agrivoltaics and off-grid design.

## Output

A daily time-series dataset for the requested location and date range, containing values for each requested NASA POWER parameter code (e.g. ALLSKY_SFC_SW_DWN in kWh/m²/day, T2M in °C, WS10M in m/s). Missing days are marked with -999. Data covers from 1981 to near-present with a few days lag, served with 24-hour cache, up to 366 days per call.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "latitude",
      "longitude",
      "start",
      "end"
     ],
     "properties": {
      "end": {
       "type": "string",
       "description": "End date YYYYMMDD (max 366 days after start)"
      },
      "start": {
       "type": "string",
       "description": "Start date YYYYMMDD (>= 19810101)"
      },
      "latitude": {
       "type": "number",
       "description": "Latitude, decimal degrees (-90..90)"
      },
      "longitude": {
       "type": "number",
       "description": "Longitude, decimal degrees (-180..180)"
      },
      "parameters": {
       "type": "string",
       "default": "ALLSKY_SFC_SW_DWN,T2M",
       "description": "1-6 comma-separated NASA POWER codes"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nasa-power-historical-solar-irradiance-weather-api-8950875f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-datashop-production.up.railway.app](https://www.zero.xyz/host/x402-datashop-production.up.railway.app/llms.txt)
