# Check domain expiry dates in bulk

**Use case:** 

Paste a list of domains and get each one's registrar, creation, update and expiry dates, days until expiry, status codes and nameservers from RDAP, plus DNS records (A, AAAA, MX, NS, TXT, CAA), SPF, DMARC and email provider. Schedule it weekly to get warned before your or your clients' domains expire. No API key needed.

## Input

```json
{
  "domains": [
    "apify.com",
    "shopify.com",
    "notion.so",
    "figma.com",
    "stripe.com"
  ],
  "includeWhois": true,
  "includeDns": true,
  "maxConcurrency": 10
}
```

## Output

```json
{
  "domain": {
    "label": "Domain",
    "format": "string"
  },
  "registered": {
    "label": "Registered",
    "format": "boolean"
  },
  "registrar": {
    "label": "Registrar",
    "format": "string"
  },
  "createdAt": {
    "label": "CreatedAt",
    "format": "string"
  },
  "expiresAt": {
    "label": "ExpiresAt",
    "format": "string"
  },
  "daysUntilExpiry": {
    "label": "DaysUntilExpiry",
    "format": "integer"
  },
  "emailProvider": {
    "label": "EmailProvider",
    "format": "string"
  },
  "spf": {
    "label": "Spf",
    "format": "string"
  },
  "dmarc": {
    "label": "Dmarc",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Domain WHOIS & DNS Lookup (RDAP, Expiry, MX, SPF) Actor is ready to run with the inputs already set for "Check domain expiry dates in bulk". [Sign up or log in](https://console.apify.com/create-task-from-example/aWQAqw4z6YbCcTy2t) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Check domain expiry dates in bulk" task

The Domain WHOIS & DNS Lookup (RDAP, Expiry, MX, SPF) Actor will start running based on the input automatically. You can also change all the input fields, like domains, registration data (rdap / whois), and more, to match your specific use case.

### 3. Receive the "Check domain expiry dates in bulk" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as domain, registered, registrar, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Check domain expiry dates in bulk" task via API](https://apify.com/rakish_bobby_gwr/domain-whois-dns.md).

## FAQ

### What data does this task return about domains?

The 'Check domain expiry dates in bulk' task returns data including registration status, registrar, creation and expiry dates, days until expiry, nameservers, and DNS records such as SPF and DMARC.

### How can I monitor domain expiry dates over time?

Schedule the task weekly and sort by daysUntilExpiry. Add a Slack or email integration in Apify to get each run's results sent to you.

### What is the purpose of the 'daysUntilExpiry' field?

The 'daysUntilExpiry' field indicates how many days are left before the domain's registration expires, helping users take timely action.

### What type of email provider information does this task provide?

The task identifies the email provider from the MX records, which can include services like Google Workspace or Microsoft 365.

### Is an API key required to run this task?

No API key is needed to use the 'Check domain expiry dates in bulk' task.

### What format should the input domain list be in?

The input for the task should be a list of registrable domains, such as ['apify.com', 'shopify.com', 'notion.so'].

## About this Actor

This example demonstrates how to use [Domain WHOIS & DNS Lookup (RDAP, Expiry, MX, SPF)](https://apify.com/rakish_bobby_gwr/domain-whois-dns.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/rakish_bobby_gwr/domain-whois-dns.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/rakish_bobby_gwr/domain-whois-dns.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`).
