# gateway.apiosk.com WeatherAPI Current Conditions

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

Returns real-time current weather conditions including temperature, wind, humidity, UV, air quality, and sky conditions for a given location via WeatherAPI.

## Facts

- Endpoint: GET https://gateway.apiosk.com/weatherapi/current
- Price: $0.155/call
- Payment: x402
- Status: down
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gateway-apiosk-com-weatherapi-current-conditions-167222af
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ec5Fhr6ufXnQYZRnscohU

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-current-conditions-167222af
```

Example prompt: What's the current weather in London right now — temperature, wind speed, humidity, UV index, and air quality?

## When to prefer this

Use this endpoint when you need real-time current weather conditions — not forecasts or historical data — including air quality metrics, UV index, and feels-like temperature. It is a good choice when the calling agent supports x402 micropayments and needs a single-call JSON response covering a comprehensive set of atmospheric variables from WeatherAPI. Prefer over openweather sibling endpoint if WeatherAPI's condition codes, icon CDN, or EPA/DEFRA air quality indices are specifically needed.

## Known failure modes

- Invalid or unrecognized location query returns an error or empty result
- Missing required query parameter returns a 400-level error
- Payment not included or invalid x402 header returns 402 Payment Required
- Upstream WeatherAPI outage may return a 503 or timeout
- Rate limiting or quota exhaustion from upstream provider

## How this service works

API call to weatherapi

## Output

Returns a JSON object with two top-level keys: 'location' (name, region, country, lat/lon, timezone, local time) and 'current' (temp in °C and °F, feels-like, wind speed/direction/gust, humidity, cloud cover, precipitation, visibility, pressure, UV index, is_day flag, condition text and icon URL, and detailed air quality metrics including CO, O3, NO2, SO2, PM2.5, PM10, US EPA index, and GB DEFRA index).

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "current": {
  "uv": 0.6,
  "cloud": 0,
  "is_day": 1,
  "temp_c": 32.3,
  "temp_f": 90.1,
  "vis_km": 10,
  "gust_kph": 16.1,
  "gust_mph": 10,
  "humidity": 41,
  "wind_dir": "E",
  "wind_kph": 13,
  "wind_mph": 8.1,
  "condition": {
   "code": 1000,
   "icon": "//cdn.weatherapi.com/weather/64x64/day/113.png",
   "text": "Sunny"
  },
  "precip_in": 0,
  "precip_mm": 0,
  "vis_miles": 6,
  "air_quality": {
   "co": 181,
   "o3": 133,
   "no2": 16.8,
   "so2": 1.4,
   "pm10": 25.5,
   "pm2_5": 14.2,
   "us-epa-index": 1,
   "gb-defra-index": 2
  },
  "feelslike_c": 33.5,
  "feelslike_f": 92.4,
  "pressure_in": 30,
  "pressure_mb": 1016,
  "wind_degree": 99,
  "last_updated": "2026-06-23 19:30",
  "last_updated_epoch": 1782239400
 },
 "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": 1782240631
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gateway-apiosk-com-weatherapi-current-conditions-167222af/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)
