# Domain Expiration API

> Domain Expiration is a domain expiration checker API. Pass any domain and it reads the registry record over RDAP or WHOIS to return the days left until the domain expires, an expiration status from healthy to expired, and its age in days and years, with paid plans adding exact registration timestamps.

**Endpoint:** `GET https://api.apiverve.com/v1/domainexpiration`  
**Category:** Domain Data  
**Cost:** 10 credits per call  
**Canonical page:** https://apiverve.com/marketplace/domainexpiration

## Overview

A domain expiration lookup API for domain expiration monitoring and renewal reminders. Pass a domain to get the days left until it expires, an expiration status and its age in days and years; paid plans add the exact expiration, creation and last-updated dates. To watch a portfolio, send up to 200 domains per request to the batch endpoint from a scheduled job, paced by your plan's per-minute rate limit.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/domainexpiration?domain=myspace.com" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `domain` | string | Yes | The domain to check the expiration date of. domain |

## Response fields

- `domain` — string · The domain name checked for expiration
- `expirationDate` — string · ISO 8601 timestamp of domain expiration date · (premium)
- `daysToExpiration` — number · Number of days until domain expiration
- `expirationStatus` — string · Domain health status by days left: expired (past the date), critical (30 or fewer), warning (31-90), attention (91-365) or healthy (more than 365)
- `createdDate` — string · ISO 8601 timestamp when domain was created · (premium)
- `lastUpdatedDate` — string · ISO 8601 timestamp of last domain update · (premium)
- `daysSinceLastUpdate` — number · Number of days since last domain update · (premium)
- `domainAgeDays` — number · Domain age in days (total lifespan)
- `domainAgeYears` — number · Domain age in years with decimal precision

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "domain": "myspace.com",
    "expirationDate": "2029-02-23T05:00:00Z",
    "daysToExpiration": 1164,
    "expirationStatus": "healthy",
    "createdDate": "1996-02-22T05:00:00Z",
    "lastUpdatedDate": "2023-01-17T00:16:21Z",
    "daysSinceLastUpdate": 1064,
    "domainAgeDays": 10890,
    "domainAgeYears": 29.8
  }
}
```

## Use cases

- **IT Portfolio Auditing** — IT teams monitor days to expiration across company websites to schedule timely renewals and prevent unexpected downtime from lapsed registrations.
- **Drop Catching Preparation** — To catch pending drops before public auctions, domain investors track expiration status and remaining days across target registrations.
- **Fraud Risk Scoring** — Flag suspicious sender domains in security pipelines by checking domain age in days to block phishing attempts from newly created web addresses.
- **Client Asset Onboarding** — When taking over web infrastructure, digital agencies review domain health status to alert clients about pending expirations before site migrations.

## SDKs

- **npm** — `npm install @apiverve/domainexpiration` (https://www.npmjs.com/package/@apiverve/domainexpiration)
- **PyPI** — `pip install apiverve-domainexpiration` (https://pypi.org/project/apiverve-domainexpiration/)
- **NuGet** — `dotnet add package APIVerve.API.DomainExpiration` (https://www.nuget.org/packages/APIVerve.API.DomainExpiration)
- **Source** — https://github.com/apiverve/domainexpiration-api

## More

- Full reference: https://docs.apiverve.com/ref/domainexpiration
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
