kitegraph
API access is included on the Professional and Business plans

Construct an exact statistic

Build a statistic for a specific country, company, or state from a source's dimensions.

Search returns common statistics. For an exact one, construct it from a source's dimensions. This builds German GDP.

1. See the dimensions

curl "https://api.kitegraph.com/v1/sources/worldbank" -H "Authorization: Bearer kg_live_…" → dimensions: statistic, country

2. Find the values

curl "https://api.kitegraph.com/v1/sources/worldbank/dimensions/country?search=germ" \ -H "Authorization: Bearer kg_live_…" → { "values": [ { "value": "DEU", "label": "Germany" } ] }

3. Construct it

Pass one value per dimension. The API mints a stable id and resolves the series.

curl "https://api.kitegraph.com/v1/statistic?source=worldbank&statistic=NY.GDP.MKTP.CD&country=DEU" \ -H "Authorization: Bearer kg_live_…"

4. Use it in a chart

Reference the minted id like any statistic, or use the full selection inline.

curl -X POST "https://api.kitegraph.com/v1/charts" \ -H "Authorization: Bearer kg_live_…" -H "Content-Type: application/json" \ -d '{ "kind": "line", "series": [{ "source": "worldbank", "select": { "statistic": "NY.GDP.MKTP.CD", "country": "DEU" } }] }'

See the Sources reference for every source's dimensions.

Construct an exact statistic — Kitegraph docs