# Bazaar Gateway Weather API

> Bazaar Gateway Weather API is a paid API for AI agents from bazaar-gateway.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Returns real-time weather conditions and a 3-day forecast for any location worldwide, accepting city name or lat/lon coordinates

## Facts

- Endpoint: GET https://bazaar-gateway.vercel.app/api/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/bazaar-gateway-weather-api-415c8b96
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N628Ce-gwRZ9rhldMvB8_

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 bazaar-gateway-weather-api-415c8b96
```

Example prompt: What's the current weather and 3-day forecast for Singapore right now — temperature, humidity, wind, and precipitation?

## When to prefer this

Use this endpoint when you need real-time weather data or a short-range forecast (up to 3 days) for any global location, especially when you can supply either a city name or exact coordinates. Prefer this over alternatives when the consuming workflow is already using the Bazaar x402 payment ecosystem.

## Known failure modes

- Unknown or misspelled city name returns an error or empty result
- Missing both location and lat/lon parameters causes a validation error
- Coordinates outside valid range (-90 to 90 lat, -180 to 180 lon) may return an error
- Open-Meteo upstream outage causes timeout or 503
- Rate limiting or payment failure returns 402 Payment Required

## How this service works

Real-time weather data and 3-day forecast for any location worldwide. Accepts city name or lat/lon coordinates. Returns temperature, humidity, wind, precipitation, and conditions. Powered by Open-Meteo.

## Output

Returns current weather conditions (temperature, humidity, wind speed, precipitation, conditions) plus a 3-day forecast for the requested location. Data is sourced from Open-Meteo and reflects real-time meteorological readings.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "location": "London"
  }
 }
}
```

## 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": {
      "lat": {
       "type": "string",
       "description": "Latitude (e.g. 1.3521). Use with lon."
      },
      "lon": {
       "type": "string",
       "description": "Longitude (e.g. 103.8198). Use with lat."
      },
      "location": {
       "type": "string",
       "description": "City or place name (e.g. Singapore, Paris, New York). Alternative to lat/lon."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bazaar-gateway-weather-api-415c8b96/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bazaar-gateway.vercel.app](https://www.zero.xyz/host/bazaar-gateway.vercel.app/llms.txt)
