Skip to content
Bitcoin Mining Calculators Logo

Widget Builder

Embed live Mining Climate Rating and Operator Stress Index widgets on your site.

Configure

<iframe src="https://bitcoinminingcalcs.com/embed/mcr?theme=dark&sparkline=true" width="600" height="220" style="border:none;border-radius:12px;" loading="lazy" title="BitcoinMiningCalcs MCR Widget"></iframe>

Live Preview

Public API

Fetch live MCR and OSI data as JSON for custom integrations. No authentication required. Rate limited to 60 requests/minute per IP.

GET/functions/v1/get-widget?type=mcr

Example response using current-format timestamps. Live values come from the endpoint.

{
  "index": "MCR",
  "score": 62.4,
  "label": "Moderate",
  "updated_at": "CURRENT_UPDATE_TIMESTAMP",
  "next_update_at": "NEXT_SCHEDULED_UPDATE",
  "sparkline": [
    { "score": 58.1, "t": "7_DAYS_AGO" },
    { "score": 60.3, "t": "6_DAYS_AGO" },
    { "score": 62.4, "t": "CURRENT_UPDATE_TIMESTAMP" }
  ]
}
GET/functions/v1/get-widget?type=osi

Example response using current-format timestamps. Live values come from the endpoint.

{
  "index": "OSI",
  "scenarios": {
    "low":  { "score": 22, "label": "Low Stress",  "scenario": "$0.03" },
    "mid":  { "score": 48, "label": "Moderate",     "scenario": "$0.06" },
    "high": { "score": 74, "label": "High Stress",  "scenario": "$0.09" }
  },
  "updated_at": "CURRENT_UPDATE_TIMESTAMP",
  "next_update_at": "NEXT_SCHEDULED_UPDATE"
}

Usage Notes

  • Base URL: https://bitcoinminingcalcs.com
  • CORS enabled — callable from any origin
  • Cached for 15 min (public) / 30 min (CDN) via Cache-Control headers
  • Rate limit: 60 requests/min per IP — returns 429 with Retry-After: 60
  • No API key required