API tier required
REST API
Access Bitcoin Power Law model data programmatically. Integrate price predictions, model corridors, and historical data into your own tools.
Authentication
All API requests require a Bearer token in the Authorization header. Generate keys from your Dashboard.
curl https://bitcoin-power-law.com/api/models \
-H "Authorization: Bearer bpl_your_api_key_here"Endpoints
GET
/api/btc-priceFreeReturns the current Bitcoin price from CoinGecko.
{
"price": 97420,
"change24h": 2.34,
"timestamp": "2026-04-02T12:00:00Z"
}GET
/api/modelsAPI tierReturns model data points over a date range. All models available on API tier.
| Parameter | Type | Description |
|---|---|---|
| model | string | powerlaw | s2f | earlyfit | exponential (default: powerlaw) |
| from | string | Start year, e.g. 2024.0 (default: 2009.0) |
| to | string | End year, e.g. 2030.0 (default: 2036.5) |
| points | integer | Number of data points to return (default: 500, max: 2000) |
curl "https://bitcoin-power-law.com/api/models?model=powerlaw&from=2024&to=2028&points=100" \
-H "Authorization: Bearer bpl_your_api_key_here"{
"model": "powerlaw",
"sigma": 0.302,
"r2": 0.961,
"data": {
"med": [{ "x": 2024.0, "y": 58420 }, ...],
"u1": [{ "x": 2024.0, "y": 116840 }, ...],
"l1": [{ "x": 2024.0, "y": 29210 }, ...],
"u2": [{ "x": 2024.0, "y": 233680 }, ...],
"l2": [{ "x": 2024.0, "y": 14605 }, ...]
}
}Rate Limits
| Tier | API requests | Price refresh | Models |
|---|---|---|---|
| Free | No API access | 5 min | Power Law + S2F |
| API | 1,000 req / day | Real-time | All 4 models |
Exceeded your daily limit? Contact us at api@bitcoin-power-law.com for a custom plan.
Ready to integrate?
Get API access →