# x402-data-bazaar Weather Forecast

> x402-data-bazaar Weather Forecast is a paid API for AI agents from x402-data-bazaar.vercel.app, paid per call via x402, $0.008/call, status down (last checked 2026-09-15).

Returns a 1–16 day daily weather forecast (high/low temps in °F, precipitation, chance of rain, max wind, and condition) for any latitude/longitude coordinate.

## Facts

- Endpoint: GET https://x402-data-bazaar.vercel.app/api/weather/forecast
- Price: $0.008/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-data-bazaar-vercel-app-b03cb7f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IFhWjp0-sNbEdT5p1QNq4

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 x402-data-bazaar-vercel-app-b03cb7f8
```

Example prompt: Can you pull the 7-day weather forecast for latitude 40.7, longitude -74.0 — I need daily high and low temps in Fahrenheit, chance of rain, and the general condition for each day?

## When to prefer this

Choose this endpoint when you need structured multi-day (1–16 day) daily weather forecasts keyed to precise lat/lon coordinates, especially when you need temperature ranges in Fahrenheit alongside precipitation and wind data per day. Prefer it over current-conditions endpoints when planning ahead, and over weather-decision-brief endpoints when you want raw forecast data rather than interpreted recommendations.

## Known failure modes

- Missing lat or lon parameter returns an error — both are required
- Invalid or out-of-range coordinate values may return no data or an error from the upstream provider
- days value outside 1–16 range may be clamped or return an error
- Network or upstream Open-Meteo API outage causes a failed response
- Malformed query string (e.g. non-numeric lat/lon) returns a validation error

## How this service works

Daily weather forecast (1-16 days) for any lat/lon -- high/low temps (F), precipitation, chance of rain, max wind, condition. Query: ?lat=40.7&lon=-74.0&days=7. If omitted, defaults to a NYC sample location.

## Output

An array of daily forecast objects each containing the date, low and high temperatures in Fahrenheit, weather condition label (e.g. 'Overcast', 'Clear'), precipitation amount, chance of rain, and max wind speed, plus the timezone for the queried location and a success flag.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "lat",
  "lon"
 ],
 "properties": {
  "lat": {
   "type": "string",
   "description": "Latitude in decimal degrees"
  },
  "lon": {
   "type": "string",
   "description": "Longitude in decimal degrees"
  },
  "days": {
   "type": "string",
   "description": "Forecast length from 1 to 16 days"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "data": {
  "forecast": [
   {
    "date": "2026-03-13",
    "low_f": 31.2,
    "high_f": 42,
    "condition": "Overcast"
   },
   {
    "date": "2026-03-14",
    "low_f": 33.2,
    "high_f": 46.2,
    "condition": "Overcast"
   }
  ],
  "timezone": "America/New_York"
 },
 "source": "Open-Meteo API",
 "success": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-data-bazaar-vercel-app-b03cb7f8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-data-bazaar.vercel.app](https://www.zero.xyz/host/x402-data-bazaar.vercel.app/llms.txt)
