Discover/Gov API
live

Gov APInsbd.swj.beijing.gov.cn

Monitor real-time and historical precipitation levels across Beijing's hydrological stations to track rainfall patterns and water levels in your area. Get detailed precipitation data directly from the Beijing Water Authority to support weather forecasting, flood prevention planning, or environmental research.

This API takes change requests — .
Endpoint health
monitored
get_rainfall
Checks pendingself-healing
Endpoints
1
Updated
3h ago
This call costs1 credit / call— charged only on success
Try it
Query date in ISO format YYYY-MM-DD. The response covers the 24-hour period ending at 8:00 AM on this date. Defaults to yesterday when omitted.
api.parse.bot/scraper/50f211e6-1d38-4e24-9fd3-0082ee9dea8d/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/50f211e6-1d38-4e24-9fd3-0082ee9dea8d/get_rainfall?date=2026-08-13' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 1 totalmissing one? ·

Returns rainfall measurements from all monitoring stations in Beijing for a 24-hour period ending at 8:00 AM on the queried date. Includes per-station readings grouped by district and summary statistics (average, maximum, year-to-date cumulative, etc.). When date is omitted, defaults to yesterday.

Input
ParamTypeDescription
datestringQuery date in ISO format YYYY-MM-DD. The response covers the 24-hour period ending at 8:00 AM on this date. Defaults to yesterday when omitted.
Response
{
  "type": "object",
  "fields": {
    "stations": "Array of station rainfall readings, each with station_code, station_name, district, and rainfall_mm",
    "statistics": "Array of summary statistics (average, max, year-to-date, etc.) with the same shape as station entries",
    "query_period": "Human-readable label describing the measurement period (e.g. '2026年08月12日8时 至 2026年08月13日8时')"
  },
  "sample": {
    "data": {
      "stations": [
        {
          "district": "城近郊区",
          "rainfall_mm": 20.5,
          "station_code": "30523930",
          "station_name": "天安门"
        },
        {
          "district": "城近郊区",
          "rainfall_mm": 11.3,
          "station_code": "30523800",
          "station_name": "松林闸"
        },
        {
          "district": "延庆",
          "rainfall_mm": 79.5,
          "station_code": "30745500",
          "station_name": "永宁"
        }
      ],
      "statistics": [
        {
          "district": "统计",
          "rainfall_mm": 15.6,
          "station_code": "1111",
          "station_name": "平均降水量"
        },
        {
          "district": "统计",
          "rainfall_mm": 94.8,
          "station_code": "2222",
          "station_name": "最大降水量"
        }
      ],
      "query_period": "2026 年 08 月 12 日 8 时  至 2026 年 08 月 13 日 8 时"
    },
    "status": "success"
  }
}

About the Gov API

The Gov API on Parse exposes 1 endpoint for the publicly available data on nsbd.swj.beijing.gov.cn. Calls return JSON over HTTPS and are billed per successful response.

Pin a release with the API-Snapshot-Version header so canonical updates don't silently change your contract.