| icon | embed |
|---|---|
| title | Embed Widget |
| sidebarTitle | Embed |
| description | Embed ChainPatrol's threat protection metrics on your website |
| unlisted | true |
The ChainPatrol Embed Widget allows you to display your organization's threat protection metrics directly on your website. This widget provides real-time updates on your security metrics and can be customized to match your website's theme.
To embed the widget on your website, use an iframe with the following URL structure:
<iframe
src="https://embed.chainpatrol.io/?slug=YOUR_ORGANIZATION_SLUG&theme=dark"
width="1000"
height="400"
frameborder="0"
style="border: none;"
></iframe>The widget accepts the following URL parameters:
| Parameter | Description | Default | Options |
|---|---|---|---|
slug |
Your organization's unique identifier | none | your org slug |
theme |
The color theme of the widget | dark |
light, dark, transparent |
width |
The width of the widget | 1000px |
Any valid CSS width value |
- Default dark theme:
https://embed.chainpatrol.io/?slug=chainpatrol&theme=dark - Light theme:
https://embed.chainpatrol.io/?slug=chainpatrol&theme=light - Transparent background:
https://embed.chainpatrol.io/?slug=chainpatrol&theme=transparent - Custom width:
https://embed.chainpatrol.io/?slug=chainpatrol&theme=dark&width=800px - 30-day metrics:
https://embed.chainpatrol.io/?slug=chainpatrol&theme=dark&timeRange=30d
The widget displays the following metrics:
- Total Reports
- Total Threats
- Takedowns Filed
- Takedowns Completed
- Domain Threats
- Twitter Threats
- Telegram Threats
- Other Threats
The widget automatically adapts to your website's theme based on the theme parameter:
light: White background with dark textdark: Dark background with light texttransparent: Transparent background that blends with your website
The embed widget is served over HTTPS and includes security headers to prevent clickjacking and other common web vulnerabilities. The widget only displays publicly available metrics and does not expose any sensitive information.