# x402 Weather API Hub – Datanest Forecast Endpoint

> x402 Weather API Hub – Datanest Forecast Endpoint is a paid API for AI agents from x402-weather.vercel.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-21).

Returns weather forecast data for a given location via the Datanest provider, billed at $0.10 USDC per call through x402 micropayments

## Facts

- Endpoint: POST https://x402-weather.vercel.app/api/datanest-forecast/%7Bpath%7D?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-weather-api-hub-datanest-forecast-endpoint-d794bb5e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AiPx0klk2T2eDY2A5xHqD

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-weather-api-hub-datanest-forecast-endpoint-d794bb5e -d '<json body>'
```

Example prompt: Can you get me the weather forecast for Chicago using the Datanest forecast API — I need to know what conditions to expect over the next few days?

## When to prefer this

Choose this endpoint when you need programmatic weather forecast data and want to pay per-call with USDC micropayments via x402 rather than subscribing to a monthly API plan. It is particularly useful for agents that make infrequent or variable-volume forecast requests where a subscription would be wasteful, and when the Datanest provider's forecast data quality meets your needs.

## Known failure modes

- Invalid or unrecognized location query returns an error or empty data object
- Payment failure via x402 micropayment protocol results in 402 response and no data
- RapidAPI/Datanest upstream unavailability causes service errors
- Missing required 'query' field returns a validation error
- Ambiguous location names may return data for the wrong place

## How this service works

21 paid weather API endpoints powered by x402 micropayments

## Output

A JSON object containing forecast data sourced from the Datanest/RapidAPI provider, including weather conditions, temperature, and precipitation details for the queried location and time period.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "Location query for forecast data"
  },
  "location": {
   "type": "string",
   "description": "City name or coordinates"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object",
   "description": "Response data from the underlying RapidAPI provider"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-weather-api-hub-datanest-forecast-endpoint-d794bb5e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-weather.vercel.app](https://www.zero.xyz/host/x402-weather.vercel.app/llms.txt)
