Embeddable Charts
Embed live ChartInspect charts on any website with a single keyless iframe.
Paste a live ChartInspect chart onto any website with a single <iframe>. The embed is keyless, your API key is never placed in the page, and it updates automatically as new data lands.
Generating an embed snippet requires an active Pro subscription, but the resulting iframe needs no key and works for any visitor. Only free charts can be embedded.
#Quick start
Paste this snippet anywhere in your HTML. Replace mvrv-z-score with the chart you want.
<iframe
src="https://chartinspect.com/embed/chart/mvrv-z-score"
width="100%"
height="400"
loading="lazy"
referrerpolicy="strict-origin-when-cross-origin"
title="MVRV Z-Score chart by ChartInspect"
style="display:block;width:100%;border:0;border-radius:12px;overflow:hidden;">
</iframe>The easiest way to get a ready-to-paste snippet is the Embed tab in the API Playground: pick a chart, set the theme and height, verify a Pro API key, and copy the generated code.
#URL format
https://chartinspect.com/embed/chart/{chartId}?theme=dark&height=400The {chartId} is the chart's slug, the same id used in its page URL (/charts/{chartId}).
#Parameters
All parameters are optional query-string values on the embed URL.
| Parameter | Values | Default | Description |
|---|---|---|---|
theme | dark, light | dark | Color theme of the embedded chart. |
height | 200–1200 | 400 | Chart height in pixels. Values outside the range fall back to 400. Match this to your iframe height. |
scale | linear, log (alias: logarithmic) | chart default | Price-axis scale. |
timeframe | e.g. 1y, 5y, all | chart default | Initial visible range. Leave blank for the chart's default. |
Example with several options:
<iframe
src="https://chartinspect.com/embed/chart/mvrv-z-score?theme=light&height=500&scale=log&timeframe=all"
width="100%"
height="500"
loading="lazy"
referrerpolicy="strict-origin-when-cross-origin"
title="MVRV Z-Score chart by ChartInspect"
style="display:block;width:100%;border:0;border-radius:12px;overflow:hidden;">
</iframe>#Notes and limits
- Free charts only. Pro-tier charts cannot be embedded; an embed URL for a Pro chart returns 404.
- Keyless. The iframe never carries an API key, so it is safe to publish in client-side HTML.
- Responsive width. Set the iframe
widthto100%to fill its container; set both the iframeheightattribute and theheightURL parameter to the same value so the chart area maps exactly to the frame. - Attribution. Each embed shows a small "Powered by ChartInspect" link back to the full chart. Please keep it visible.
- Loading. The generated snippet uses native lazy loading so off-screen embeds do not delay the host page's first render.
#Troubleshooting
- Blank frame: confirm the chart id is a real, free chart (try
https://chartinspect.com/charts/{chartId}in a browser). Pro charts and unknown ids return 404. - Scrollbar or clipping: make the iframe
heightattribute equal to theheightURL parameter. The playground clamps both values to the supported200–1200range.