Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    Scraper APIWeb

    web.contacts

    Give a company's domain, get the contact details its website publishes: e-mail addresses, phone numbers, social profiles, organisation name and postal address, each with the page it was found on.

    Id
    web.contacts
    Version
    1
    Billed per
    request — 1 unit for a charged run
    Runs
    in the background; use wait or poll

    Start it with POST /v1/scrapers/web.contacts/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.

    Inputs

    The fields of input. A field that is not listed here is refused.

    Inputs of web.contacts
    FieldTypeDescription
    domainstringThe company's domain, e.g. acme.com. Give this or url, not both. Its home page is read at https://<domain>/, then https://www.<domain>/ and http://<domain>/ if that cannot be reached.Limit: at most 253 characters.
    urlstringThe page to start from instead of a domain (normally the home page): http or https, on a public host name.Limit: at most 2048 characters.
    max_pagesintegerThe most pages to read, the home page included. 1 reads the home page only.Limit: 1 to 15. Default: 5.
    include_personalbooleanFalse (the default): only role addresses (info@, sales@, support@) are returned; addresses that name a person or cannot be classed are withheld and counted in emails_withheld. True: they are returned too, marked by kind; they are personal data and you need a lawful basis of your own to hold and use them.Default: false.
    timeout_snumberSeconds for the whole run, every page included.Limit: 10 to 180. Default: 60.
    • Give exactly one of domain and url. Both, or neither, is refused with invalid_input.
    • It reads the home page, then the pages of the same site its links name as contact, imprint or legal notice, about, team, locations or support, and privacy — max_pages in all, 5 by default. A link that leaves the site is never followed. pages lists what was read.
    • Every value in the record was on one of those pages, and says which page and how it was published there. Nothing is guessed, and nothing is looked up anywhere else.
    • What include_personal does: without it, the record holds only addresses of a function — info@, sales@, support@ — marked role. An address that names a person (jane.doe@), and one that cannot be told either way (jsmith@, berlin@), is left out; emails_withheld says how many were, never which. With "include_personal": true they are returned too, marked person or unclassified.
    • Using people's addresses is your responsibility. An address that names a person is personal data, also when a website publishes it. If you ask for such addresses, you decide what is done with them, and you need a lawful basis of your own to store them and to write to them: GDPR and the ePrivacy rules in Europe, CCPA and CAN-SPAM in the United States, and the like elsewhere. We do not check that for you.
    • A role address can still be read by one person only — a sole trader's info@ — and phone numbers are returned as the site publishes them, without knowing whose they are. Treat the whole record with that in mind.
    • A website names others too: an arbitration board or an authority on its imprint, the agency that built it, the supervisory authority on its privacy page. An address on another domain has on_site_domain: false, and is left out when only the imprint or the privacy page gives it — unless its domain carries the site's name or it is a free-mail address. No phone number is taken from a privacy page. A number on an imprint can still be somebody else's.
    • A phone number is returned as the site writes it. e164 is filled only when the site writes the number with its country calling code; the country is never guessed from the site, its language or its domain. Fax numbers are left out.
    • social holds the organisation's own profile pages. Share buttons, single posts and people's LinkedIn pages are not returned.
    • No JavaScript is run. Details a site shows only after its scripts have run are not found, and a site that builds its menu in the browser is read as its home page alone.
    • A site that publishes no contact details ends ok with one record and empty lists. A run that read the home page and could not read one of the other pages ends partial with pages_unread; pages_not_read lists them. When the home page cannot be read, the run ends failed with no record and no charge — see the reasons of this family.
    • Billed per request: a charged run costs 1 unit, however many pages it read.

    Record fields

    Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.

    Record fields of web.contacts
    FieldTypeNotes
    domainstringThe domain that was asked for (the host of url, without www.).
    site_domainstringThe registrable domain of the site that answered; differs from domain when the site redirects to another one.
    home_urlstringThe address of the home page as it answered, after redirects.
    organisationobject or nullFrom schema.org structured data only; null when the site has none.
    name (in organisation)string or nullThe organisation's name as its structured data gives it.
    legal_name (in organisation)string or nullIts legal name (schema.org legalName), when given.
    source (in organisation)"json-ld" | "microdata"The kind of structured data it was read from.
    page (in organisation)stringThe page that carries it.
    emailsarray of objectRole addresses first, the site's own domain first.
    address (in emails[])stringThe e-mail address, in lower case.
    kind (in emails[])"role" | "person" | "unclassified"role: a function's address (info@, sales@, support@). person: reads as a named person (jane.doe@) or is published as a person's — personal data. unclassified: cannot be told from the address — treat as personal data. Only role is returned unless the run asked for include_personal.
    on_site_domain (in emails[])booleanTrue when the address is on the site's own domain. An address on another domain (a free-mail account, a parent company, the same name under another ending) is returned only when a page links or declares it, or when its domain carries the site's name; one that only the imprint or the privacy page gives is left out unless it carries the site's name or is a free-mail address.
    obfuscated (in emails[])booleanTrue when the page hides the address from plain search (Cloudflare e-mail protection, or name [at] domain [dot] com) and it was decoded.
    sources (in emails[])array of objectWhere it was found, in reading order (at most 5).
    page (in emails[].sources[])stringThe address of the page the e-mail address was found on.
    how (in emails[].sources[])"mailto" | "text" | "structured_data"How the page publishes it: a mailto: link, visible text, or schema.org structured data (JSON-LD or microdata).
    emails_withheldintegerHow many addresses were found and not returned because they name a person or cannot be classed and the run did not ask for include_personal. Always 0 when it did.Default: 0.
    phonesarray of objectPhone numbers (never fax numbers), in reading order. None is taken from a privacy page, and on an imprint a number written beside somebody else's e-mail address is left out.
    raw (in phones[])stringThe number as the site writes it.
    e164 (in phones[])string or nullThe number in E.164 (+14155550100), only when the site writes it with its country calling code. Null for a number written in national form: the country is never guessed from the site, its language or its domain.
    calling_code (in phones[])string or nullThe country calling code of e164 ("49", "1"). A code, not a country: +1 and +7 are shared by several.
    sources (in phones[])array of objectWhere it was found, in reading order (at most 5).
    page (in phones[].sources[])stringThe address of the page the number was found on.
    how (in phones[].sources[])"tel" | "text" | "structured_data"A tel: link, visible text (only a number written with + and its country code, or one directly after a label such as Tel or Phone), or schema.org structured data.
    socialobjectThe profile pages the site links to, by network, most prominent first; a network's list is empty when the site links none.
    linkedin (in social)array of stringLinkedIn company, school or showcase pages. Never a person's /in/ page.
    x (in social)array of stringX (Twitter) accounts, as https://x.com/<handle>.
    facebook (in social)array of stringFacebook pages.
    instagram (in social)array of stringInstagram accounts.
    youtube (in social)array of stringYouTube channels (@handle, /channel/, /c/ or /user/).
    github (in social)array of stringGitHub organisations or accounts (never a repository).
    tiktok (in social)array of stringTikTok accounts.
    addressesarray of objectPostal addresses from schema.org structured data only.
    street (in addresses[])string or nullschema.org streetAddress.
    locality (in addresses[])string or nullschema.org addressLocality (the town).
    region (in addresses[])string or nullschema.org addressRegion.
    postal_code (in addresses[])string or nullschema.org postalCode.
    country (in addresses[])string or nullschema.org addressCountry, as written (a code or a name).
    text (in addresses[])string or nullThe address as one line, when the site gives it unstructured in its structured data.
    source (in addresses[])"json-ld" | "microdata"The kind of structured data it was read from.
    page (in addresses[])stringThe page that carries it.
    contact_pagestring or nullThe site's contact page, when one was found and read; null otherwise.
    pagesarray of objectThe pages that were read, in order.
    url (in pages[])stringThe address that answered.
    kind (in pages[])"home" | "contact" | "legal" | "about" | "team" | "support" | "privacy"Why it was read: the home page, or what its link on the home page was recognised as.
    status (in pages[])integerIts HTTP status.
    truncated (in pages[])booleanTrue when the page was longer than 4000000 bytes and only that much was searched.Default: false.
    pages_not_readarray of objectPages that were chosen and not read. The run is partial when one could not be read (refused, error, timeout); a linked page that does not exist, is not HTML or redirects off the site is listed here without making it partial.
    url (in pages_not_read[])stringThe address that was asked for.
    kind (in pages_not_read[])stringWhat its link was recognised as.
    reason (in pages_not_read[])stringWhy it was not read: a reason of the fetch (blocked, timeout, …), http_<status>, not_html, off_site_redirect, or temporarily_unavailable / internal_error when the failure was on our side.
    fetched_atstring (date-time)When the reading of the site ended, in UTC.

    Example request

    # Start a run and wait up to 60 seconds for it to finish
    curl -X POST "https://api.enrichednow.com/v1/scrapers/web.contacts/runs?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"input":{"domain":"katzsdelicatessen.com","max_pages":2}}'
    
    # Read its records, with the id the first call answered
    curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    from enrichednow import EnrichedNow
    
    client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY
    
    # Start a run, wait for it to end, and get its records
    result = client.scrape("web.contacts", {
        "domain": "katzsdelicatessen.com",
        "max_pages": 2,
    })
    print(result.run.id, result.run.status, result.run.record_count)
    
    # Read its records: pages are fetched as you go
    for record in result.records:
        print(record)

    Install it with pip install enrichednow, then save as run.py and run python3 run.py

    import EnrichedNow from "enrichednow";
    
    const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
    
    // Start a run, wait for it to end, and get its records
    const { run, records } = await client.scrape("web.contacts", {
      domain: "katzsdelicatessen.com",
      max_pages: 2,
    });
    console.log(run.id, run.status, run.record_count);
    
    // Read its records: pages are fetched as you go
    for await (const record of records) console.log(record);

    Install it with npm install enrichednow, then save as run.mjs and run node run.mjs

    package main
    
    import (
    	"context"
    	"fmt"
    	"log"
    	"time"
    
    	enrichednow "github.com/enrichednow/enrichednow-go"
    )
    
    func main() {
    	client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
    	if err != nil {
    		log.Fatal(err)
    	}
    	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
    	defer cancel()
    
    	// Start a run, wait for it to end, and get its records
    	run, records, err := client.Scrape(ctx, "web.contacts", map[string]any{"domain": "katzsdelicatessen.com", "max_pages": 2})
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Println(run.ID, run.Status, run.RecordCount)
    
    	// Read its records: pages are fetched as you go
    	for records.Next() {
    		fmt.Println(string(records.Current()))
    	}
    	if err := records.Err(); err != nil {
    		log.Fatal(err)
    	}
    }

    Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go

    import com.enrichednow.EnrichedNowClient;
    import com.enrichednow.ScrapeResult;
    import java.util.Map;
    
    public class Run {
        public static void main(String[] args) {
            EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
    
            // Start a run, wait for it to end, and get its records
            ScrapeResult result = client.scrape("web.contacts", Map.of("domain", "katzsdelicatessen.com", "max_pages", 2));
            System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
    
            // Read its records: pages are fetched as you go
            for (Map<String, Object> record : result.records()) {
                System.out.println(record);
            }
        }
    }

    Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

    enrichednow run web.contacts --input domain=katzsdelicatessen.com --input max_pages=2

    Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

    It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.

    The body on its own:

    JSON
    {
      "input": {
        "domain": "katzsdelicatessen.com",
        "max_pages": 2
      }
    }

    Example response

    The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.

    JSON
    {
      "id": "run_841742f37553189ff9c27ba1",
      "scraper_id": "web.contacts",
      "scraper_version": 1,
      "status": "ok",
      "reason": null,
      "input": {
        "domain": "katzsdelicatessen.com",
        "max_pages": 2
      },
      "record_count": 1,
      "units": 1,
      "units_per_request": 1,
      "units_per_record": null,
      "units_per_page": null,
      "diagnostics": {
        "requests": 1,
        "bytes": 259214,
        "wall_ms": 885,
        "facts": {}
      },
      "created_at": "2026-11-16T22:37:50.170950Z",
      "started_at": "2026-11-16T22:37:50.178331Z",
      "finished_at": "2026-11-16T22:37:51.066313Z"
    }

    Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.

    JSON
    {
      "records": [
        {
          "domain": "katzsdelicatessen.com",
          "site_domain": "katzsdelicatessen.com",
          "home_url": "https://katzsdelicatessen.com/",
          "organisation": null,
          "emails": [
            {
              "address": "press@katzsdelicatessen.com",
              "kind": "role",
              "on_site_domain": true,
              "obfuscated": false,
              "sources": [
                {
                  "page": "https://katzsdelicatessen.com/",
                  "how": "mailto"
                },
                {
                  "page": "https://katzsdelicatessen.com/",
                  "how": "text"
                },
                {
                  "page": "https://katzsdelicatessen.com/contact",
                  "how": "mailto"
                }
              ]
            }
          ],
          "emails_withheld": 0,
          "phones": [
            {
              "raw": "212-254-2246",
              "e164": null,
              "calling_code": null,
              "sources": [
                {
                  "page": "https://katzsdelicatessen.com/",
                  "how": "tel"
                },
                {
                  "page": "https://katzsdelicatessen.com/contact",
                  "how": "tel"
                }
              ]
            }
          ],
          "social": {
            "linkedin": [],
            "x": [
              "https://x.com/KatzsDeli"
            ],
            "facebook": [
              "https://www.facebook.com/katzsdeli"
            ],
            "instagram": [
              "https://www.instagram.com/katzsdeli"
            ],
            "youtube": [],
            "github": [],
            "tiktok": []
          },
          "addresses": [],
          "contact_page": "https://katzsdelicatessen.com/contact",
          "pages": [
            {
              "url": "https://katzsdelicatessen.com/",
              "kind": "home",
              "status": 200,
              "truncated": false
            },
            {
              "url": "https://katzsdelicatessen.com/contact",
              "kind": "contact",
              "status": 200,
              "truncated": false
            }
          ],
          "pages_not_read": [],
          "fetched_at": "2026-11-19T18:07:42.156462Z"
        }
      ],
      "next_cursor": null
    }

    What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].

    • Shortened: emails[0].sources: 4 items, the first 3 shown.

    A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the Web scrapers are in their own section there.