Integrate LeadCop.
Protect your registration forms and email lists from disposable, temporary, and fake email addresses. This guide covers everything from a simple no-code setup to full backend API integration.
Quick Start
The fastest way to protect your website — no programming needed. You just need to copy and paste one line of code.
3 steps to protect any website
- 1
Create a free account
Sign up — no credit card required. Your API key is generated automatically.
Create free account → - 2
Copy the script tag
Paste this snippet just before the closing </body> tag in your website's HTML:
HTML<script src="https://leadcop.io/leadcop-email-validator.js" data-api-key="YOUR_API_KEY"> </script> - 3
That's it — you're protected
LeadCop automatically finds every email input field on your site. When someone types a disposable email, they'll see an error.
✅ Real-time validation as users type.
Authentication
Format your secret API key in the Authorization header for REST API requests.
Authorization: Bearer YOUR_API_KEYAPI Endpoint
https://leadcop.io/api/check-emailRequest body
{
"email": "test@mailinator.com"
}Response
{
"isDisposable": true,
"domain": "mailinator.com",
"requestsRemaining": 999
}Error Codes
Missing email parameter
The request body did not include the 'email' field or the value was empty.
Invalid API Key
The Authorization header is missing, incorrectly formatted, or the API key is invalid.
Rate Limit Exceeded
You have sent too many requests in a short period. Upgrade your plan to increase limits.
Shopify Integration
Add LeadCop validation to your Shopify storefront. This will protect your newsletter signups, contact forms, and customer registration inputs.
Theme Integration (theme.liquid)
- Go to your Shopify Admin and click on Online Store > Themes.
- Click the ... (Actions) button next to your active theme, then select Edit Code.
- Open the
layout/theme.liquidfile. - Scroll to the very bottom of the file and paste the following script tag immediately before the closing
</body>tag:
<script
src="https://leadcop.io/leadcop-email-validator.js"
data-api-key="YOUR_API_KEY">
</script>Ensure you replace YOUR_API_KEY with your actual public API key from the LeadCop dashboard.
WordPress Integration
Protect your WordPress site using our native plugin. It automatically integrates with default registration, comments, WooCommerce, and popular form builders.
Plugin Setup (No Code)
- Download the official LeadCop WordPress plugin
.zipfile from your dashboard. - In your WordPress Admin, navigate to Plugins > Add New > Upload Plugin.
- Select the downloaded
.zipfile and click Install Now, then Activate. - Navigate to the new LeadCop menu item in your WordPress admin sidebar.
- Paste your API key into the settings field and click Save Settings.
Supported Form Systems out-of-the-box:
- ✅ WordPress Registration
- ✅ Comment Forms
- ✅ WooCommerce Checkout
- ✅ Contact Form 7
- ✅ WPForms
- ✅ Gravity Forms
Wix Integration
Configure LeadCop on your Wix website. Choose the method depending on whether your site is on a Wix Premium or Wix Free plan.
Method 1: Wix Premium (Custom Code)
- Go to your Wix Dashboard and select Settings.
- Scroll down to the Advanced section and click on Custom Code.
- Click + Add Custom Code in the top right.
- Paste the LeadCop script tag in the code box.
- Set Place Code in to Body - end.
- Select All Pages (or specify your Contact page) and click Apply.
Method 2: Wix Free (HTML Embed workaround)
Wix Free does not support Custom Code. You must embed a custom HTML form and the LeadCop script inside a single **HTML Element (iframe)**:
<form action="YOUR_FORM_SUBMIT_URL" method="POST">
<input type="email" name="email" required />
<button type="submit">Submit</button>
</form>
<script
src="https://leadcop.io/leadcop-email-validator.js"
data-api-key="YOUR_API_KEY">
</script>Webflow Integration
Add LeadCop to your Webflow project. It will automatically intercept native Webflow form submissions.
Site-wide Integration
- Go to your Webflow Project Settings.
- Click on the Custom Code tab.
- Paste the script tag into the Footer Code text area (before the closing
</body>tag). - Click Save Changes and publish your site.
<script
src="https://leadcop.io/leadcop-email-validator.js"
data-api-key="YOUR_API_KEY">
</script>Framer Integration
Inject the LeadCop script into your Framer website to protect signup forms and lead capture widgets.
Framer Custom Code Settings
- Open your project in Framer and click on the Project Settings (gear icon).
- In the left sidebar, click on General.
- Scroll down to the Custom Code section.
- In the End of <body> input field, paste your LeadCop script tag:
<script
src="https://leadcop.io/leadcop-email-validator.js"
data-api-key="YOUR_API_KEY">
</script>Next.js & React Integration
For dynamic React or Next.js applications, query the LeadCop REST API directly from your client components or server-side actions.
Client-side React Hook
Create a custom hook to perform real-time checks as the user types (using a 500ms debounce to limit API requests):
import { useState, useEffect } from "react";
export function useEmailCheck(email: string) {
const [result, setResult] = useState({ isDisposable: false, checking: false });
useEffect(() => {
if (!email || !email.includes("@")) return;
const delay = setTimeout(async () => {
setResult(prev => ({ ...prev, checking: true }));
try {
const res = await fetch("https://leadcop.io/api/check-email", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_KEY",
},
body: JSON.stringify({ email }),
});
const data = await res.json();
setResult({ isDisposable: !!data.isDisposable, checking: false });
} catch {
setResult({ isDisposable: false, checking: false });
}
}, 500);
return () => clearTimeout(delay);
}, [email]);
return result;
}Frequently Asked Questions
Protect your growth.
Set up takes under 2 minutes. Start for free today and clean your lead data instantly.
Start for free today