Appearance
Widget
Use the cryptowi.re widget to show latest crypto headlines on your own website.
You can integrate it three ways:
- npm package (
@cryptowire/widget) - Script loader (
/widget/widget.js) - Direct iframe (
/widget)
Live Example
Adjust options and see the widget update live.
Use source ids from References > Sources.
Option 1: npm Package
sh
npm install @cryptowire/widgetjs
import { mount } from "@cryptowire/widget";
mount({
target: "#cw-news",
baseUrl: "https://cryptowi.re/widget",
sources: "coindesk,decrypt,cointelegraph",
limit: 6,
theme: "light",
});Use source ids from References > Sources.
npm mount() Options
target: CSS selector or HTMLElementbaseUrl: widget page URL (for examplehttps://cryptowi.re/widget)sources: comma-separated source ids (see References > Sources)limit: number of headlines to show (1-20)theme:lightordarkcategory: optional category filtertitle: optional widget title override (if omitted, no title is shown)apiBase: optional API base overrideminHeight: optional minimum iframe height in pixels
Option 2: Script Loader
html
<div id="cw-news"></div>
<script
src="https://cryptowi.re/widget/widget.js"
data-target="#cw-news"
data-limit="6"
data-theme="light"
data-category="Markets"
data-sources="coindesk,decrypt,cointelegraph"></script>Use source ids from References > Sources.
Script Options
src: loader URL (https://cryptowi.re/widget/widget.js)data-target: CSS selector for mount pointdata-limit: number of headlines to show (1-20)data-theme:lightordarkdata-category: optional category filterdata-sources: optional source-id list (see References > Sources)data-title: optional widget title override (if omitted, no title is shown)data-api-base: optional API base overridedata-min-height: optional minimum iframe height in pixels
Option 3: Direct iframe
html
<iframe
src="https://cryptowi.re/widget?sources=coindesk,decrypt,cointelegraph&limit=6&theme=light"
title="Latest crypto news"
style="width:100%;height:420px;border:0;"
loading="lazy"
referrerpolicy="strict-origin-when-cross-origin"></iframe>Use source ids from References > Sources.
iframe Options
src: widget URL + query paramssources: comma-separated source ids (see References > Sources)limit: number of headlines to show (1-20)theme:lightordarkcategory: optional category filtertitle: optional widget title override (if omitted, no title is shown)api: optional API base overridestyle.height: fixed height (or use script/npm mode for auto-resize)