China National Bureau of Statistics API
data.stats.gov.cn
China's statistics portal - economic indicators, datasets, time series, and release calendars.
- Actions
- 6
- Category
- Government Legal
- Login
- Not required
- Output
- JSON
Call the China National Bureau of Statistics API
Submit a task, then poll the job until it settles. This example runs act_data_stats_gov_cn_indicator_catalog_tree.
curl -X POST https://api.anakin.io/v1/wire/task \
-H "X-API-Key: $ANAKIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action_id": "act_data_stats_gov_cn_indicator_catalog_tree",
"params": {
"pid": "f4c6cd795fea436c807163397dd36b98"
}
}'6 actions on data.stats.gov.cn
Read
Indicator Catalog Tree
act_data_stats_gov_cn_indicator_catalog_treeread1 credit / callReturns child nodes of the indicator category tree for browsing statistics.
- pid
- string · required
Indicator Metadata Listing
act_data_stats_gov_cn_indicator_metadata_listingread1 credit / callLists indicator definitions and metadata for a category, including names and units.
- cid
- string · required
- date_range
- string · required
Indicator Search Results
act_data_stats_gov_cn_indicator_search_resultsread2 credits / callReturns indicators matching a keyword, with latest values, regions, and period labels.
- search_keyword
- string · required
- page
- integer · required
- page_size
- integer · required
Region Filter Tree
act_data_stats_gov_cn_region_filter_treeread1 credit / callReturns hierarchical region groupings such as national, macro-regions, and provinces for an indicator catalog.
- indicator_cid
- string · required
Region List
act_data_stats_gov_cn_region_listread1 credit / callLists flat province-level region codes and display names for a region catalog node.
- da_cid
- string · required
Release Calendar
act_data_stats_gov_cn_release_calendar_monthlyread2 credits / callReturns scheduled statistical release events across a month range, with titles and publication times.
- start_date
- string · required
- end_date
- string · required
China National Bureau of Statistics API questions
- Is there an API for China National Bureau of Statistics?
- China National Bureau of Statistics does not offer a public data API for this, but Anakin Wire provides 6 maintained endpoints for data.stats.gov.cn. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
- How do I scrape China National Bureau of Statistics data?
- POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when data.stats.gov.cn changes its markup, Anakin updates the action.
- Do I need a China National Bureau of Statistics account?
- No. Every China National Bureau of Statistics action listed here runs anonymously — no account and no credentials required.
- What does the China National Bureau of Statistics API cost?
- Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.
More Government Legal APIs
Arizona State Bar
Arizona State Bar - attorney profiles, directory search, meeting calendar, and discipline records.
Avvo
Attorney directory - lawyer search by practice area, listings, and full profiles.
BOE (Spain)
Spain's official gazette - BOE, BORME, and consolidated legislation search and detail.
Bundesanzeiger
German federal gazette - company filings and publication detail retrieval.
Buy NSW
NSW procurement portal - contract notices, tenders, supplier panels, and standing offers.
CanLII
Canadian legal institute - court decisions, statutes, and legal databases.