API access
Query nxbase programmatically with a personal token you create on your account page. A token acts with your access: admins see everything hosted, members see the public projection.
Base URL
https://enextgen.it/nxbase-apiAuthentication
Send your token as a Bearer header:
Authorization: Bearer nxb_your_token_hereEndpoint
GET /dataโ JSON rows (paginated)GET /data.csvโ all matching rows as CSVGET /healthโ liveness (no auth)
Filters (multi-value):
parameter, source, commodity, activity,
flow, site, period, unit…
plus sort, dir, page, limit.
Examples
curl:
curl -H "Authorization: Bearer nxb_xxx" \
"https://enextgen.it/nxbase-api/data.csv?parameter=Import%20mix&period=2024"Python (pandas):
import io, requests, pandas as pd
r = requests.get(
"https://enextgen.it/nxbase-api/data.csv",
params={"parameter": "Total output", "source": "EMBER generation 2025"},
headers={"Authorization": "Bearer nxb_xxx"},
)
df = pd.read_csv(io.StringIO(r.text))Managing tokens
Create, list and revoke tokens on your account page. The full token is shown once, at creation โ store it then. A revoked token stops working immediately.