{"uid":"cap_8gk1KhJgK9rceSFvHmw5w","slug":"cn-data-china-weather-forecast-200f56bf","name":"CN Data – China Weather Forecast","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-forecast?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 配对使用）"},"lon":{"type":"number","description":"经度"},"city":{"type":"string","description":"中文城市名（14 个预设）"},"days":{"type":"integer","description":"预报天数 1-16，默认 7"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"data":{"days":3,"forecast":[{"date":"2026-10-05","sunset":"2026-10-05T17:44","sunrise":"2026-10-05T05:52","weather":"小雨","weekday":"周一","tempMaxC":27.1,"tempMinC":21.4,"weatherCode":61,"precipitationMm":3.2,"windSpeedMaxKmh":18.7,"precipitationProbability":65}],"location":{"name":"上海","latitude":31.2304,"timezone":"Asia/Shanghai","longitude":121.4737}},"endpoint":"/cn/weather-forecast"}},"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_Tgu0q_L_poPduS1CUBboT","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 a multi-day weather forecast for Chinese cities by city name or lat/lon coordinates, delivered as machine-readable JSON.","exampleAgentPrompt":"What's the weather forecast for Shanghai over the next 5 days — give me daily highs, lows, precipitation chances, and wind speed in JSON?","exampleUseCases":[{"title":"Event planning in Chinese city","prompt":"I'm organizing an outdoor event in Chengdu on October 10th — can you pull the 7-day weather forecast starting today so I can check if it's likely to rain?"},{"title":"Logistics routing around weather","prompt":"We're shipping goods overland through Wuhan next week. Can you get me the 10-day weather forecast for Wuhan (lat 30.59, lon 114.3) so we can plan around storms or heavy rain?"},{"title":"Travel packing for China trip","prompt":"I'm flying to Guangzhou in 3 days. Can you get me the 5-day forecast there — daily temperature ranges and precipitation — so I know what clothes to bring?"}],"resultDescription":"A JSON object with `ok: true` and a `data` block containing: location metadata (name, latitude, longitude, timezone), number of forecast days, and an array of daily forecasts each with date, weekday (in Chinese), weather description (in Chinese), weather code, max/min temperature in Celsius, precipitation in mm, precipitation probability percentage, max wind speed in km/h, and sunrise/sunset timestamps.","failureModes":["HTTP 402 returned if payment not yet made — must pay $0.02 USDC on Base and retry","Unknown city name returns an error if not among the 14 preset Chinese cities","Missing both city and lat/lon parameters results in a bad request error","Days parameter outside 1-16 range may return a validation error or default to 7","Network timeout on the Cloudflare Worker edge node"],"whenToPreferThis":"Choose this endpoint when you need structured, machine-readable weather forecast data specifically for Chinese cities, especially when other international weather APIs do not support Chinese city names or Chinese-language descriptions. It requires no API key or signup — just a $0.02 USDC micropayment via the x402 protocol. Prefer it over scraping Chinese weather sites, which return unstructured HTML.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T12:41:07.666Z","isFirstParty":false,"canonicalSlug":"cn-data-china-weather-forecast-200f56bf"}