# Tollkit Weather Forecast

> Tollkit Weather Forecast is a paid API for AI agents from attest.tollkit.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-10).

Returns weather forecasts for a given latitude/longitude as 12-hour periods, paid per-call via x402 in USDC on Base or Solana.

## Facts

- Endpoint: POST https://attest.tollkit.dev/weather?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tollkit-weather-forecast-430468ba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LgostQkF2Ir4webKdFg1b

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 tollkit-weather-forecast-430468ba -d '<json body>'
```

Example prompt: What's the weather forecast for the next 7 days at latitude 38.98, longitude -76.49? Use Tollkit's pay-per-call weather endpoint — no account needed, just pay with USDC.

## When to prefer this

Choose this endpoint when you need quick, anonymous weather forecast lookups by GPS coordinates without registering for an account or managing API keys — ideal for agents that can pay micropayments in USDC via x402. Best for lightweight, pay-as-you-go use cases rather than high-volume or bulk forecast pipelines.

## Known failure modes

- Invalid or out-of-range latitude/longitude returns an error or empty forecast
- Payment failure or insufficient USDC balance blocks the response
- Requesting more than 14 periods is rejected (maximum enforced by schema)
- Coordinates in unsupported regions (e.g. mid-ocean or polar extremes) may return no data
- Network or upstream weather data provider outage results in a service error

## How this service works

Pay-per-call product page extraction. No account, no API key: pay in-band with x402 in USDC on Base or Solana.

## Output

Returns a list of up to 14 sequential 12-hour weather forecast periods for the specified coordinates, each containing conditions, temperatures, and other forecast data. Payment is processed inline via x402 protocol at $0.002 USDC per call — no account or API key required.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "lat": {
   "type": "number",
   "description": "Latitude, e.g. 38.98"
  },
  "lon": {
   "type": "number",
   "description": "Longitude, e.g. -76.49"
  },
  "address": {
   "type": "string",
   "maxLength": 200,
   "description": "US street address instead of lat/lon, e.g. \"1600 Pennsylvania Ave NW, Washington, DC 20500\"."
  },
  "periods": {
   "type": "integer",
   "default": 14,
   "maximum": 14,
   "minimum": 1,
   "description": "How many 12-hour periods to return."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tollkit-weather-forecast-430468ba/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from attest.tollkit.dev](https://www.zero.xyz/host/attest.tollkit.dev/llms.txt)
