---
name: xx402.vercel.app
description: xx402.vercel.app hosts a single weather skill that returns current conditions and temperature for a named city, with payment handled via USDC on Base. It provides point-in-time weather data only, with no forecast or historical capability.
host: xx402.vercel.app
---

# xx402.vercel.app

This host is a minimal, single-purpose weather data endpoint. It serves agents that need to look up current weather for a city by name and are operating in a USDC-on-Base payment context. It does not aggregate multiple data sources or offer extended weather products.

## When to use this host

Use this host when an agent needs the current weather condition and temperature for a specific city by name and can pay via USDC on Base. Do not use it for weather forecasts, multi-day outlooks, or historical weather queries — use a dedicated forecast API (e.g., OpenWeatherMap forecast endpoints or a historical weather service) instead. Also not suitable for non-city locations such as coordinates, zip codes, or rural areas unless the skill resolves them by name.

## Capabilities

### Current Weather Lookup

Retrieves the current weather condition and temperature for a specified city by name. Covers only present conditions, not forecasts or historical records.

- **`fetch-current-weather`** — Returns current weather condition and temperature for a given city, paid via USDC on Base.

## Skill reference

### `fetch-current-weather`

**WeatherNow API** — Returns current weather condition and temperature for a given city, paid via USDC on Base.

*Use when:* Use when an agent needs the current weather conditions and temperature for a specific city by name.

*Not for:* Do not use for historical weather data, forecasts, or non-city locations; use a dedicated forecast or historical weather API instead.

**Inputs:**

- `location` (string, required) — City name to retrieve current weather for (e.g. 上海, 北京, Shanghai, Beijing).

**Returns:** Returns a JSON object with city name, weather condition string, and numeric temperature for the requested city.

**Example:** `GET https://xx402.vercel.app/weather?location=北京`

---
