Resources / Guides

How to embed an EPR check on your website

Paste one form into your site and visitors can run a first EPR check. It calls our public API from the browser, needs no key, and works on any page that allows inline scripts.

By Razvan Toma · Founder · Last checked 1 November 2026 · Sources below

Try it here

This is the same code as below, running on this page against the live API.

Copy the code

It needs nothing else. The API allows calls from any website.

<form id="epr-check">
  <label>What do you sell? <input name="p" placeholder="toy car, cotton t-shirt" required></label>
  <button>Check EPR</button>
  <p id="epr-out"></p>
</form>
<script>
document.getElementById('epr-check').onsubmit = async (e) => {
  e.preventDefault();
  const out = document.getElementById('epr-out');
  const products = e.target.p.value.split(',').map((x) => x.trim()).filter(Boolean);
  const r = await fetch('https://epreurep.com/api/v1/check', {
    method: 'POST',
    headers: { 'content-type': 'application/json' },
    body: JSON.stringify({ countries: ['FR', 'DE', 'ES'], products })
  });
  const j = await r.json();
  out.textContent = j.ok
    ? 'Likely French streams: ' + j.streams.join(', ') + '. This is a first guess, not legal advice.'
    : j.message;
};
</script>

Related: API documentation

Word the result carefully

The check is a first guess from the words a visitor types, and the API marks it as indicative. Whether a company is the producer depends on its sales channels and where it's established, so don't show the result as legal advice.

Related: Who needs a representative in France ↗

Lead to the next step

After the check, send the visitor to your partner page at epreurep.com/yourfirm, or create a tracked checkout link with POST /onboarding-links. Orders from either are tracked to you.

Related: Partner programme

Sources

Try the API

Check, quote and a simulated run of each country's steps, free and without a key.

Developers