# gateway.apiosk.com WeatherAPI Forecast

> gateway.apiosk.com WeatherAPI Forecast is a paid API for AI agents from gateway.apiosk.com, paid per call via x402, $0.175/call, status down (last checked 2026-09-15).

Returns current weather conditions and multi-day hourly forecast data including temperature, humidity, wind, precipitation, UV index, and astronomical data for a given location

## Facts

- Endpoint: GET https://gateway.apiosk.com/weatherapi/forecast
- Price: $0.175/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gateway-apiosk-com-weatherapi-forecast-a132dd96
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_y9qkuEENd_SFZjYlGXw5H

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 gateway-apiosk-com-weatherapi-forecast-a132dd96
```

Example prompt: What's the weather like in London right now, and what's the forecast for today — include temperature in Celsius, chance of rain, UV index, and sunrise/sunset times?

## When to prefer this

Use this endpoint when you need structured current weather and multi-day forecast data including hourly breakdowns, UV index, precipitation probability, and astronomical data (sunrise/sunset/moon phase) for a named city or coordinates. Prefer this over raw weather lookups when you need the full WeatherAPI response schema with condition codes, icons, and astro data in a single pay-per-call model without a subscription.

## Known failure modes

- Invalid or unrecognized location name returns an error or empty result
- Missing required query parameters causes a 400-level error
- Exceeded rate limit or payment failure returns a 402 Payment Required
- Network timeout if WeatherAPI upstream is slow
- Historical dates beyond the supported range may return no data

## How this service works

API call to weatherapi

## Output

Returns a JSON object with current conditions (temperature in C and F, feels-like, humidity, wind speed, UV index, weather condition with icon, last updated time) plus a daily forecast with hourly breakdowns (temp, humidity, wind, rain chance per hour) and astronomical data (sunrise, sunset, moonrise, moonset, moon phase, illumination) for each forecast day, all tagged with location metadata (city, region, country, lat/lon, timezone).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "current": {
  "uv": 0.6,
  "is_day": 1,
  "temp_c": 32.3,
  "temp_f": 90.1,
  "humidity": 41,
  "wind_kph": 13,
  "condition": {
   "code": 1000,
   "icon": "//cdn.weatherapi.com/weather/64x64/day/113.png",
   "text": "Sunny"
  },
  "feelslike_c": 33.5,
  "last_updated": "2026-06-23 19:45"
 },
 "forecast": {
  "forecastday": [
   {
    "day": {
     "uv": 7.4,
     "avgtemp_c": 25.4,
     "condition": {
      "code": 1063,
      "icon": "//cdn.weatherapi.com/weather/64x64/day/176.png",
      "text": "Patchy rain nearby"
     },
     "maxtemp_c": 34.1,
     "mintemp_c": 17.4,
     "avghumidity": 60,
     "maxwind_kph": 16.9,
     "totalsnow_cm": 0,
     "totalprecip_mm": 1.04,
     "daily_chance_of_rain": 57,
     "daily_chance_of_snow": 0
    },
    "date": "2026-06-23",
    "hour": [
     {
      "time": "2026-06-23 00:00",
      "temp_c": 18.6,
      "humidity": 72,
      "wind_kph": 10.8,
      "condition": {
       "code": 1000,
       "icon": "//cdn.weatherapi.com/weather/64x64/night/113.png",
       "text": "Clear"
      },
      "time_epoch": 1782169200,
      "feelslike_c": 18.6,
      "chance_of_rain": 7
     }
    ],
    "astro": {
     "sunset": "09:21 PM",
     "moonset": "12:56 AM",
     "sunrise": "04:43 AM",
     "moonrise": "03:11 PM",
     "moon_phase": "Waxing Gibbous",
     "moon_illumination": 69
    },
    "date_epoch": 1782172800
   }
  ]
 },
 "location": {
  "lat": 51.5171,
  "lon": -0.1062,
  "name": "London",
  "tz_id": "Europe/London",
  "region": "City of London, Greater London",
  "country": "United Kingdom",
  "localtime": "2026-06-23 19:50",
  "localtime_epoch": 1782240635
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gateway-apiosk-com-weatherapi-forecast-a132dd96/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.apiosk.com](https://www.zero.xyz/host/gateway.apiosk.com/llms.txt)
