{"uid":"cap_tsA2gAb62oixHeLtc165C","slug":"cn-data-china-weather-2124df0f","name":"CN Data - China Weather","description":"Chinese market and China-focused public data over the x402 protocol. No API key and no signup: call any endpoint, receive HTTP 402 with payment terms, pay the listed amount in USDC on Base and retry. Every response is JSON. Some Chinese-language sources are published only as web pages — these endpoints return them as clean, machine-readable JSON.","url":"https://cn-data-x402.cn-data-x402-worker.workers.dev/cn/weather?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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":"number","description":"纬度（与 lon 配对使用），如 31.23"},"lon":{"type":"number","description":"经度，如 121.47"},"city":{"type":"string","description":"中文城市名（14 个预设），如 上海"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"data":{"air":{"pm10":61,"level":"良","pm2_5":35.2,"usAqi":84},"weather":"多云","location":{"name":"北京","latitude":39.9042,"timezone":"Asia/Shanghai","longitude":116.4074},"feelsLikeC":16.9,"observedAt":"2026-10-02T21:00","weatherCode":2,"temperatureC":17.4,"windSpeedKmh":8.6,"humidityPercent":62,"precipitationMm":0,"windDirectionDeg":210},"endpoint":"/cn/weather"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_91D38gPp8iEJAnUyO4wkB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current weather conditions and air quality for a Chinese city, given a city name or lat/lon coordinates, as machine-readable JSON","exampleAgentPrompt":"What's the current weather and air quality in Shanghai right now — temperature, humidity, wind, and PM2.5?","exampleUseCases":[{"title":"Live Beijing air quality check","prompt":"What's the current air quality in Beijing — PM2.5, PM10, and US AQI — and is it considered good or unhealthy today?"},{"title":"Weather briefing for Chengdu trip","prompt":"I'm traveling to Chengdu soon — can you tell me the current temperature, feels-like temperature, weather conditions, and wind speed there?"},{"title":"Coordinate-based weather for remote location","prompt":"Can you get me the current weather for coordinates 23.13 latitude and 113.26 longitude in China — temperature, humidity, and precipitation?"}],"resultDescription":"A JSON object with ok:true and a data field containing: current weather description (Chinese), weather code, temperature in Celsius, feels-like temperature, wind speed (km/h), wind direction (degrees), humidity (%), precipitation (mm), air quality metrics (PM2.5, PM10, US AQI, quality level string), location details (name, latitude, longitude, timezone), and observation timestamp (ISO 8601).","failureModes":["Unrecognized city name returns an error — only 14 preset Chinese city names are supported","Missing both city and lat/lon parameters causes a 400-class error","HTTP 402 returned on first unauthenticated call — agent must pay $0.02 USDC on Base and retry","Invalid lat/lon values outside China may return no data or unexpected results","Stale observation timestamp if upstream weather source is delayed"],"whenToPreferThis":"Choose this endpoint when you need current weather and air quality data specifically for Chinese cities, especially when the city name is in Chinese or when you need air quality metrics (PM2.5, PM10, US AQI) alongside standard weather. Prefer this over generic global weather APIs when targeting mainland China locations — it handles Chinese-language city names natively and bundles air quality data not always available from Western APIs. Use it when operating under the x402 pay-per-call model and no API key is available.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T12:41:14.051Z","isFirstParty":false,"canonicalSlug":"cn-data-china-weather-2124df0f"}