Docs/API/Embeddable badges

Embeddable badges

Display a product's verification status on your own site.

Simple link

<a href="https://prooflabel.co/brands/transparent-labs/creatine-hmb">
  Verified on ProofLabel — $250 staked
</a>

Dynamic badge via API

Fetch live data from the trust summary API and render it however you want:

async function renderBadge(brand, product) {
  const res = await fetch(
    `https://prooflabel.co/api/trust-summary?brand=${brand}&product=${product}`
  );
  const data = await res.json();

  return `
    <div class="prooflabel-badge">
      <span class="status">${data.status}</span>
      <span class="stake">$${data.totalStaked} staked</span>
      <span class="lab">Tested by ${data.labs[0]}</span>
    </div>
  `;
}

Cache for 5-15 minutes -- data only changes on new claims or dispute resolutions.

Embeddable badges | Assay Network Docs