# 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.

Website contact details, one of the Web scrapers.

| | |
| --- | --- |
| 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](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

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

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `domain` | string | no | The 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. |
| `url` | string | no | The 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_pages` | integer | no | The most pages to read, the home page included. 1 reads the home page only. Limit: 1 to 15. Default: `5`. |
| `include_personal` | boolean | no | False (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_s` | number | no | Seconds 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](https://docs.enrichednow.com/results-and-statuses.md#web).
- 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`.

| Field | Type | Notes |
| --- | --- | --- |
| `domain` | string | The domain that was asked for (the host of `url`, without www.). |
| `site_domain` | string | The registrable domain of the site that answered; differs from `domain` when the site redirects to another one. |
| `home_url` | string | The address of the home page as it answered, after redirects. |
| `organisation` | object or null | From schema.org structured data only; null when the site has none. |
| `organisation.name` | string or null | The organisation's name as its structured data gives it. |
| `organisation.legal_name` | string or null | Its legal name (schema.org legalName), when given. |
| `organisation.source` | "json-ld" \| "microdata" | The kind of structured data it was read from. |
| `organisation.page` | string | The page that carries it. |
| `emails` | array of object | Role addresses first, the site's own domain first. |
| `emails[].address` | string | The e-mail address, in lower case. |
| `emails[].kind` | "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`. |
| `emails[].on_site_domain` | boolean | True 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. |
| `emails[].obfuscated` | boolean | True when the page hides the address from plain search (Cloudflare e-mail protection, or `name [at] domain [dot] com`) and it was decoded. |
| `emails[].sources` | array of object | Where it was found, in reading order (at most 5). |
| `emails[].sources[].page` | string | The address of the page the e-mail address was found on. |
| `emails[].sources[].how` | "mailto" \| "text" \| "structured_data" | How the page publishes it: a `mailto:` link, visible text, or schema.org structured data (JSON-LD or microdata). |
| `emails_withheld` | integer | How 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`. |
| `phones` | array of object | Phone 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. |
| `phones[].raw` | string | The number as the site writes it. |
| `phones[].e164` | string or null | The 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. |
| `phones[].calling_code` | string or null | The country calling code of `e164` ("49", "1"). A code, not a country: +1 and +7 are shared by several. |
| `phones[].sources` | array of object | Where it was found, in reading order (at most 5). |
| `phones[].sources[].page` | string | The address of the page the number was found on. |
| `phones[].sources[].how` | "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. |
| `social` | object | The profile pages the site links to, by network, most prominent first; a network's list is empty when the site links none. |
| `social.linkedin` | array of string | LinkedIn company, school or showcase pages. Never a person's /in/ page. |
| `social.x` | array of string | X (Twitter) accounts, as https://x.com/<handle>. |
| `social.facebook` | array of string | Facebook pages. |
| `social.instagram` | array of string | Instagram accounts. |
| `social.youtube` | array of string | YouTube channels (@handle, /channel/, /c/ or /user/). |
| `social.github` | array of string | GitHub organisations or accounts (never a repository). |
| `social.tiktok` | array of string | TikTok accounts. |
| `addresses` | array of object | Postal addresses from schema.org structured data only. |
| `addresses[].street` | string or null | schema.org streetAddress. |
| `addresses[].locality` | string or null | schema.org addressLocality (the town). |
| `addresses[].region` | string or null | schema.org addressRegion. |
| `addresses[].postal_code` | string or null | schema.org postalCode. |
| `addresses[].country` | string or null | schema.org addressCountry, as written (a code or a name). |
| `addresses[].text` | string or null | The address as one line, when the site gives it unstructured in its structured data. |
| `addresses[].source` | "json-ld" \| "microdata" | The kind of structured data it was read from. |
| `addresses[].page` | string | The page that carries it. |
| `contact_page` | string or null | The site's contact page, when one was found and read; null otherwise. |
| `pages` | array of object | The pages that were read, in order. |
| `pages[].url` | string | The address that answered. |
| `pages[].kind` | "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. |
| `pages[].status` | integer | Its HTTP status. |
| `pages[].truncated` | boolean | True when the page was longer than 4000000 bytes and only that much was searched. Default: `false`. |
| `pages_not_read` | array of object | Pages 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. |
| `pages_not_read[].url` | string | The address that was asked for. |
| `pages_not_read[].kind` | string | What its link was recognised as. |
| `pages_not_read[].reason` | string | Why 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_at` | string (date-time) | When the reading of the site ended, in UTC. |

## Example request

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
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}}'
```

## 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](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the Web scrapers](https://docs.enrichednow.com/results-and-statuses.md#web) are in their own section there.
