# AiToollab Weather Forecast by City

> AiToollab Weather Forecast by City is a paid API for AI agents from api.aitoollab.top, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-07).

Returns a multi-day weather forecast (date, condition, max/min temperature) for a specified city

## Facts

- Endpoint: GET https://api.aitoollab.top/api/weather/forecast/%7Bcity%7D?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-07
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aitoollab-weather-forecast-by-city-7ea56850
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YxKUmHCyiqs9tBE4SI-cl

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 aitoollab-weather-forecast-by-city-7ea56850
```

Example prompt: What's the weather forecast for Tokyo over the next few days — give me the daily conditions and high/low temperatures?

## When to prefer this

Use this endpoint when you need a simple city-based weather forecast with daily high/low temperatures and condition labels, and you are operating in an x402 micropayment-enabled environment. It is a lightweight, low-cost option at $0.02 USDC per call suitable for quick lookups by city name.

## Known failure modes

- City name not found or unrecognized — likely returns an error or empty forecast array
- Malformed city path parameter — may return 400 or empty response
- Service unavailable — upstream weather data provider may be down
- Rate limiting or payment failure — 402 response if USDC payment not processed

## How this service works

AiToollab，普通人用AI做副业的实战平台。收录10+AI副业方向、50+提示词模板、真实赚钱案例。每周更新，找方向、找工具、找案例，一站搞定。

## Output

A JSON object containing the city name and an array of daily forecast entries, each with a date string, weather condition label (e.g. 'Sunny'), maximum temperature, and minimum temperature in Celsius.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "city": "{city}",
  "forecast": [
   {
    "date": "2026-04-27",
    "weather": "Sunny",
    "max_temp": 25,
    "min_temp": 18
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aitoollab-weather-forecast-by-city-7ea56850/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.aitoollab.top](https://www.zero.xyz/host/api.aitoollab.top/llms.txt)
