# DataNest Weather API (via X402 Hub)

> DataNest Weather API (via X402 Hub) is a paid API for AI agents from x402-hub.vercel.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-14).

Retrieves weather data for a given query via the DataNest weather upstream API, protected by x402 micropayments on Base

## Facts

- Endpoint: POST https://x402-hub.vercel.app/api/datanest-weather
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/datanest-weather-api-via-x402-hub-da5f1569
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GpLslptBonAvkG6EsFT-n

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 datanest-weather-api-via-x402-hub-da5f1569 -d '<json body>'
```

Example prompt: What's the current weather in London right now — temperature, conditions, and any precipitation?

## When to prefer this

Choose this endpoint when you need weather data through a pay-per-call micropayment model using x402 on Base, avoiding subscription keys or API account setup. Ideal for agents that only need occasional weather lookups and want to pay fractions of a cent per call without managing API credentials for a traditional weather provider.

## Known failure modes

- Invalid or unrecognized query string returns an error or empty data object
- Payment failure due to insufficient USDC balance on Base results in 402 response
- Upstream DataNest API outage causes timeout or upstream error
- Malformed request body missing required 'query' field returns a 400-style validation error
- Rate limiting or quota exhaustion from the upstream provider

## How this service works

63 paid API endpoints protected by x402 micropayments on Base

## Output

Returns a JSON object containing weather data from the DataNest upstream API, including conditions, temperature, and other meteorological fields for the queried location or time period.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "Query parameter for the API"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object",
   "description": "Response data from upstream API"
  }
 }
}
```

## More

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