# Weather Forecast by Latitude/Longitude

> Weather Forecast by Latitude/Longitude is a paid API for AI agents from api.facts402.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Returns current weather conditions plus up to 7-day daily summaries (min/max temperature, precipitation, max wind, weather symbol) for any lat/lon coordinate, sourced from MET Norway.

## Facts

- Endpoint: POST https://api.facts402.com/weather?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/weather-forecast-by-latitude-longitude-a65fcb2e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vqz1MBdt0fkek9-Xme4JY

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 weather-forecast-by-latitude-longitude-a65fcb2e -d '<json body>'
```

Example prompt: What's the weather forecast for the next 5 days at latitude 48.8566, longitude 2.3522? I need daily highs and lows, precipitation, and wind.

## When to prefer this

Choose this endpoint when you need point-location weather forecasts (current + multi-day summaries) for any global coordinate, especially for travel, tourism, logistics, or event planning agents. It is particularly well-suited when you have precise lat/lon coordinates and need structured daily summaries (temp range, precipitation, wind) rather than raw hourly data. Backed by MET Norway's high-quality open data, it is a reliable choice for European and global coverage without requiring a proprietary weather API key.

## Known failure modes

- Latitude or longitude out of valid range (-90 to 90 / -180 to 180) returns a validation error
- Days parameter outside 1-7 range returns a validation error
- MET Norway upstream service unavailable may result in a timeout or 502 error
- Coordinates over open ocean or polar extremes may return incomplete or missing data
- Payment failure (insufficient USDC balance) returns 402 Payment Required

## How this service works

Use when an agent needs a weather forecast for a latitude/longitude: current conditions plus up to 7 local-day summaries (min/max temperature, precipitation, max wind, weather symbol) in the local time zone. Data from MET Norway (CC BY 4.0). $0.01 USDC on Base; charged only on 2xx, never for invalid input.

## Output

Returns current weather conditions and a per-day summary for each requested day, including minimum and maximum temperature, precipitation amount, maximum wind speed, and a weather symbol code — all expressed in the location's local time zone.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "lat": {
   "type": "number",
   "title": "Lat",
   "maximum": 90,
   "minimum": -90,
   "description": "Latitude in decimal degrees (WGS84)"
  },
  "lon": {
   "type": "number",
   "title": "Lon",
   "maximum": 180,
   "minimum": -180,
   "description": "Longitude in decimal degrees (WGS84)"
  },
  "days": {
   "type": "integer",
   "title": "Days",
   "default": 3,
   "maximum": 7,
   "minimum": 1,
   "description": "Number of local calendar days to summarise (1-7)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/weather-forecast-by-latitude-longitude-a65fcb2e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.facts402.com](https://www.zero.xyz/host/api.facts402.com/llms.txt)
