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-priceFree

Returns the current Bitcoin price from CoinGecko.

{
  "price": 97420,
  "change24h": 2.34,
  "timestamp": "2026-04-02T12:00:00Z"
}
GET/api/modelsAPI tier

Returns model data points over a date range. All models available on API tier.

ParameterTypeDescription
modelstringpowerlaw | s2f | earlyfit | exponential (default: powerlaw)
fromstringStart year, e.g. 2024.0 (default: 2009.0)
tostringEnd year, e.g. 2030.0 (default: 2036.5)
pointsintegerNumber 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

TierAPI requestsPrice refreshModels
FreeNo API access5 minPower Law + S2F
API1,000 req / dayReal-timeAll 4 models

Exceeded your daily limit? Contact us at api@bitcoin-power-law.com for a custom plan.

Ready to integrate?

Get API access →