# Find which email provider 20 companies use from MX records

**Use case:** 

Reads the live MX records of 20 company domains, including airbnb.com, booking.com, godaddy.com and okta.com, to show who handles each company's email. An MX ending google.com is Google Workspace, one ending mail.protection.outlook.com is Microsoft 365, and pphosted.com is Proofpoint filtering mail before it arrives. The registrar and expiry date come on the same row. It stops at $0.02.

## Input

```json
{
  "domains": [
    "airbnb.com",
    "uber.com",
    "lyft.com",
    "doordash.com",
    "pinterest.com",
    "reddit.com",
    "duolingo.com",
    "zillow.com",
    "expedia.com",
    "booking.com",
    "tripadvisor.com",
    "yelp.com",
    "coinbase.com",
    "robinhood.com",
    "squarespace.com",
    "wix.com",
    "godaddy.com",
    "okta.com",
    "datadoghq.com",
    "openai.com"
  ],
  "dnsRecords": [
    "MX"
  ],
  "includeRawRecord": false,
  "dryRun": false,
  "maxResults": 20,
  "maxCostUsd": 0.02,
  "proxy": {
    "useApifyProxy": true
  },
  "proxyTier": "datacenter",
  "maxConcurrency": 4,
  "maxRequestRetries": 4,
  "requestTimeoutSecs": 30,
  "debug": false
}
```

## Output

```json
{
  "domain": {
    "label": "Domain",
    "format": "string"
  },
  "dnsStatus": {
    "label": "DNS status",
    "format": "string"
  },
  "dnsA": {
    "label": "A",
    "format": "array"
  },
  "dnsAaaa": {
    "label": "AAAA",
    "format": "array"
  },
  "dnsMx": {
    "label": "MX",
    "format": "array"
  },
  "dnsTxt": {
    "label": "TXT",
    "format": "array"
  },
  "dnsCaa": {
    "label": "CAA",
    "format": "array"
  },
  "dnsTruncated": {
    "label": "DNS truncated",
    "format": "boolean"
  }
}
```

## About this Actor

This example demonstrates how to use [Domain Expiry, WHOIS & DNS Lookup: Failed Runs Cost Nothing](https://apify.com/montyburrows/domain-rdap.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/montyburrows/domain-rdap.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/montyburrows/domain-rdap.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
