Billing
#GET /v1/plans · public
Plans, prices and limits. It drives the pricing page.
{ "success": true, "day_resets": "00:00 UTC", "annual": "2 months free",
"attribution": "Every plan: credit PakDataHub with a link",
"plans": [
{ "plan": "free", "name": "Free", "kind": "free", "price_usd_month": 0, "price_usd_year": null,
"calls_per_day": 20, "calls_per_min": 10, "max_points_per_call": 1000, "history": "last 5 years",
"history_years": 5, "downloads_per_day": 5, "charts_full_history": true, "whole_dataset_files": false,
"vintages_api": false, "vintage_downloads": false, "webhooks": 0, "sla": false, "pkr_invoice": false,
"for": "Students, journalists, trying it", "support": "community" },
{ "plan": "pro", "name": "Pro", "kind": "subscription", "price_usd_month": 49, "price_usd_year": 490,
"calls_per_day": 20000, "calls_per_min": 300, "max_points_per_call": 5000, "history": "full",
"downloads_per_day": null, "whole_dataset_files": true, "vintages_api": true, "webhooks": 50, … },
… ] }
downloads_per_day: null and webhooks: null mean unlimited. requests_per_day / requests_per_min repeat calls_per_day / calls_per_min for older clients. available says whether a plan is on sale right now and annual_available whether it can be billed yearly. See Plans & limits.
#POST /v1/checkout · public
Start a hosted checkout (LemonSqueezy).
curl -X POST -H "Content-Type: application/json" -d '{"plan": "pro", "billing": "year", "email": "you@example.com"}' "https://api.pakdatahub.com/v1/checkout"
{ "success": true, "checkout_url": "https://checkout.pakdatahub.com/…" }
plan is developer, pro or business; billing is month (default) or year; email is optional and attaches the purchase to an existing account. After payment, the buyer is redirected to https://pakdatahub.com/welcome?token=….
#GET /v1/bulk 🔑 / session
Whole-dataset files: every series of a dataset (rates, fx, remittances, bop …) in one gzipped CSV and, up to a million rows, one Excel workbook, rebuilt nightly when the data changed.
{ "success": true, "included": true, "count": 37, "data": [
{ "dataset": "rates", "name": "Interest rates (KIBOR, policy rate, yields)", "series": 65, "rows": 133574,
"built_at": "2026-11-21T22:20:11Z",
"files": [ { "format": "csv.gz", "bytes": 1203311, "url": "https://…" },
{ "format": "xlsx", "bytes": 3311020, "url": "https://…" } ] } ] }
url is a link valid for 10 minutes on Pro and Business; null (with an upgrade note) on other plans. GET /v1/bulk/{dataset}?format=csv.gz|xlsx returns one link. CSV columns: series_id, series_name, unit, frequency, source, date, value, dims after a first # line with the citation.
#GET /v1/account/key/{token} · public
Redeems the one-time token from the post-checkout redirect for the account's API key. The key is returned once and also emailed.
#GET /v1/billing/portal 🔑 / session
Returns { "success": true, "url": "…" }: the customer-portal link where you update your card, see invoices or cancel. It returns 404 if the account has no subscription.