Optional

Form pre-fill API

When a visitor types their email into one of your forms, call our API to get company data instantly and pre-fill the rest of the fields. Less friction, higher conversion.

Call it from your form

Endpoint: GET https://nalloo.com/api/prefill.php

JavaScript · from your form
// On the email input's blur event
emailInput.addEventListener('blur', async () => {
  const email = emailInput.value.trim();
  if (!email.includes('@')) return;
  const cookieId = document.cookie.match(/nui=([a-f0-9]{40})/)?.[1];
  const url = 'https://nalloo.com/api/prefill.php'
    + '?site_key=YOUR_SITE_KEY'
    + '&email=' + encodeURIComponent(email)
    + (cookieId ? '&cookie_id=' + cookieId : '');
  const r = await fetch(url);
  const j = await r.json();
  if (j.ok && j.suggested_fill) {
    if (j.suggested_fill.company && !companyInput.value) companyInput.value = j.suggested_fill.company;
    if (j.suggested_fill.domain  && !websiteInput.value) websiteInput.value = j.suggested_fill.domain;
  }
});

JSON response

JSON
{
  "ok": true,
  "match": { "source": "form_captures", "confidence": 0.95 },
  "company": {
    "domain": "acme.com",
    "name": "Acme Corp",
    "industry": "SaaS",
    "size": "50-200",
    "country": "ES"
  },
  "suggested_fill": {
    "company": "Acme Corp",
    "domain": "acme.com",
    "country": "ES"
  }
}

Limits

Rate limit: 60 requests / minute per site_key + IP. No end-user authentication required — just your site_key.

Go further

Other options

Help

Need a hand?