# AIFoundry Weather

> AIFoundry Weather is a paid API for AI agents from api.aifoundry.sh, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

Returns current weather conditions (temperature, wind, humidity, conditions) for any city name or lat/lon coordinate pair.

## Facts

- Endpoint: GET https://api.aifoundry.sh/v1/weather?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aifoundry-weather-a055b93e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_41DEJe037PFCbwngY3m6H

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 aifoundry-weather-a055b93e
```

Example prompt: What's the current weather in Tokyo right now — temperature, conditions, wind and humidity?

## When to prefer this

Choose this endpoint when you need a single, current weather snapshot for any named city or coordinate pair and want a simple pay-per-call model at $0.01 USDC with no API key setup. Ideal for agents that need lightweight, on-demand weather lookups without committing to a subscription weather service.

## Known failure modes

- Unknown or misspelled city name may result in geocoding failure or empty response
- Missing both location and lat/lon returns a validation error
- Coordinates outside valid ranges (lat > 90, lon > 180) cause bad request errors
- Transient upstream weather data provider errors may return 5xx responses
- Rate limiting or payment failure (x402) blocks the call if credit is exhausted

## How this service works

Current weather for any place on earth. Give a city name or a latitude/longitude pair; get temperature, conditions, wind and humidity.

## Output

Returns current weather data for the requested location including temperature, sky conditions (e.g. clear, cloudy, rain), wind speed/direction, and humidity percentage. Location can be resolved from a city name or explicit lat/lon coordinates.

## 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",
     "properties": {
      "latitude": {
       "type": "number"
      },
      "location": {
       "type": "string",
       "description": "Place name, geocoded for you."
      },
      "longitude": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aifoundry-weather-a055b93e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.aifoundry.sh](https://www.zero.xyz/host/api.aifoundry.sh/llms.txt)
