# PitchPilot Weather Tool

> PitchPilot Weather Tool is a paid API for AI agents from pitchpilot-outreach-api.pitchpilot-agents.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Returns current weather conditions and a 3-hour forecast for a given latitude/longitude coordinate pair.

## Facts

- Endpoint: GET https://pitchpilot-outreach-api.pitchpilot-agents.workers.dev/tools/weather
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pitchpilot-weather-tool-d0a43c20
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qIUFmDaVp1Z8Iagc9JCXt

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 pitchpilot-weather-tool-d0a43c20
```

Example prompt: What's the current weather at latitude 40.71 and longitude -74.01? I need temperature, wind speed, humidity, and a short forecast for the next few hours.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call weather lookup by GPS coordinates within an automated agent workflow, especially if you are already using the PitchPilot micro-utilities suite and paying via x402/USDC on Base. It is best for lightweight, real-time spot checks rather than extended forecasts or bulk location queries.

## Known failure modes

- Missing required lat/lon query params returns a 4xx validation error
- Latitude out of range (-90 to 90) or longitude out of range (-180 to 180) returns a validation error
- Payment not attached or insufficient USDC triggers a 402 Payment Required response
- Upstream weather provider outage may return a 5xx error or stale data
- Invalid numeric format for lat/lon causes request rejection

## How this service works

Paid micro-utilities for cold-email outreach agents: domain deliverability audits, cold-email grading, template generation, plus a tools toolbox (hashing, JWT decode, IDs, slugs, JSON, regex, crypto prices, domain age, weather). Paid via x402 (USDC on Base).

## Output

A JSON object with 'current' (temperature_2m in Celsius, wind_speed_10m in km/h, relative_humidity_2m in %, weather_code integer, weather_description string) and 'next_3h' array of hourly forecast objects (time, temperature_2m), plus an optional weather_code_map dictionary.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "lat",
      "lon"
     ],
     "properties": {
      "lat": {
       "type": "number",
       "maximum": 90,
       "minimum": -90,
       "description": "Latitude"
      },
      "lon": {
       "type": "number",
       "maximum": 180,
       "minimum": -180,
       "description": "Longitude"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "current"
     ],
     "properties": {
      "current": {
       "type": "object"
      },
      "next_3h": {
       "type": "array",
       "items": {
        "type": "object"
       }
      },
      "weather_code_map": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "current": {
   "weather_code": 2,
   "temperature_2m": 21.3,
   "wind_speed_10m": 12.1,
   "weather_description": "Partly cloudy",
   "relative_humidity_2m": 48
  },
  "next_3h": [
   {
    "time": "2026-01-01T12:00",
    "temperature_2m": 21.8
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pitchpilot-weather-tool-d0a43c20/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pitchpilot-outreach-api.pitchpilot-agents.workers.dev](https://www.zero.xyz/host/pitchpilot-outreach-api.pitchpilot-agents.workers.dev/llms.txt)
