API Examples

Access China official statistics via our free API. No authentication required.

Quick Start

Base URL

https://chinadata.live/api/v2

Get GDP Data

Request

GET https://chinadata.live/api/v2/data/china-gdp

Python Example

import requests

response = requests.get('https://chinadata.live/api/v2/data/china-gdp')
data = response.json()
print(data)

JavaScript Example

fetch('https://chinadata.live/api/v2/data/china-gdp')
  .then(res => res.json())
  .then(data => console.log(data))

cURL Example

curl https://chinadata.live/api/v2/data/china-gdp

List All Datasets

GET https://chinadata.live/api/v2/datasets
import requests

response = requests.get('https://chinadata.live/api/v2/datasets')
datasets = response.json()
for ds in datasets['data']:
    print(ds['title'])

Common Questions

Do I need an API key?

Current public endpoints require no authentication. Configurable fair-use limits and the Terms of Use apply.

What formats are available?

All data is returned in JSON format.

Is there a rate limit?

Anonymous access may be subject to a configurable daily quota. Check the X-RateLimit-* response headers for the active limit and reset time.

Ready to start?

Access China data for free. No API key required.

ยฉ 2026 China Data Portal

๐Ÿ’ฌ Need custom data?