# .gov Domain Monitor: New US Government Websites (`hydrocore/us-gov-domain-monitor`) Actor

Track new and removed .gov domains from CISA's official registry. Get domain, agency or city name, type (city, county, federal, tribal, school), state and security contact. Leads for govtech, cybersecurity and web vendors.

- **URL**: https://apify.com/hydrocore/us-gov-domain-monitor.md
- **Developed by:** [Hydrocore Data](https://apify.com/hydrocore) (community)
- **Categories:** Lead generation, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.80 / 1,000 gov domains

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## .gov Domain Monitor: New US Government Websites

Get every **new .gov domain** (and optionally every removed one) from the official [CISA .gov registry export](https://github.com/cisagov/dotgov-data), with the **agency, city or county name, domain type, state and published security contact**. Or export the full list of ~17,000 current .gov domains.

When a city, county, school district, tribe or agency registers a new .gov domain, it is usually launching or moving a website, email system or online service. That is a buying moment.

### Who uses it

- **Govtech and civic SaaS vendors** (website CMS, permitting, payments, 311, agendas): reach local governments as they move to .gov.
- **Cybersecurity firms and MSSPs**: new government domains need email security (DMARC), TLS, monitoring and pen-testing.
- **Web agencies and hosting providers** serving municipalities.
- **Threat-intel and research teams**: watch registrations and removals across federal, state and local government.

### 💡 Use cases

**Apify Store use cases:** Generate leads · Market research · Developer & security tooling

### How it works

CISA publishes the full registry as a CSV that updates about daily. This actor downloads the daily snapshots in your window, diffs them and dates each change by the snapshot where it first appeared. No login, no proxies.

### Input example

```json
{
  "mode": "changes",
  "changedWithinDays": 30,
  "domainTypes": ["City", "County"],
  "maxResults": 100
}
```

### ⬆️ Output

Views: **Overview**, **Security contacts**, **Detailed**. The last row is a `RUN_SUMMARY`; filter by `recordType = "domain"`.

```json
{
  "recordType": "domain",
  "domain": "example-city-tx.gov",
  "changeType": "added",
  "changeDate": "2026-11-05T14:17:21Z",
  "domainType": "City",
  "organizationName": "City of Example",
  "city": "Example",
  "state": "TX",
  "securityContactEmail": null,
  "url": "https://example-city-tx.gov"
}
```

#### Output fields

| Field | Description |
|---|---|
| `recordType` | domain or RUN_SUMMARY |
| `domain` | .gov domain name |
| `changeType` | added, removed, or listed (all mode) |
| `changeDate` | When the change appeared in the official registry export (ISO 8601) |
| `domainType` | City, County, State or territory, Federal - Executive, Tribal, School district, Special district… |
| `organizationName` | Registrant organization |
| `suborganizationName` | Department or office (federal) |
| `city` | Registrant city |
| `state` | Registrant state code |
| `securityContactEmail` | Published security contact (if any) |
| `url` | https:// link to the domain |
| `source` | Data source |
| `scrapedAt` | Fetch timestamp (ISO 8601) |

### 💰 Pricing

Pay per domain saved plus a small start fee.

### Ready-made examples

Open one, click **Try for free** and change the inputs to your own:

- [New .gov domains registered this month](https://apify.com/hydrocore/us-gov-domain-monitor/examples/new-gov-domains-registered-this-month)

### FAQ

**Is this legal?** Yes. CISA publishes the registry as public open data.

**Does a new domain mean a live website?** Not always. It means the organization registered it; many go live within weeks.

### Changelog

- 1.0: First release.

# Actor input Schema

## `mode` (type: `string`):

'changes' compares daily official snapshots; 'all' exports the full current registry (~17,000 domains).

## `changedWithinDays` (type: `integer`):

Window for 'changes' mode (max 90).

## `includeRemoved` (type: `boolean`):

Also return domains that left the registry (expired or deleted).

## `domainTypes` (type: `array`):

Contains-match, e.g. City, County, Federal, Tribal, School district, Special district, State.

## `states` (type: `array`):

2-letter codes, e.g. TX, CA.

## `keywords` (type: `array`):

Match domain, organization, sub-organization or city, e.g. police, water, fire, court.

## `maxResults` (type: `integer`):

Stop after this many rows (you pay per domain).

## `onlyNew` (type: `boolean`):

Skip domains already returned with the same monitor key. Schedule daily or weekly.

## `monitorKey` (type: `string`):

Separate seen-lists per watchlist. Example: daily-watch-1.

## Actor input object example

```json
{
  "mode": "changes",
  "changedWithinDays": 30,
  "includeRemoved": false,
  "maxResults": 100,
  "onlyNew": false,
  "monitorKey": "default"
}
```

# Actor output Schema

## `overview` (type: `string`):

Domain, change, date, organization, type and state

## `contacts` (type: `string`):

Domains with organization and security contact

## `results` (type: `string`):

Every field for each row.

## `summary` (type: `string`):

Counts and filter stats.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "changes",
    "changedWithinDays": 30,
    "maxResults": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("hydrocore/us-gov-domain-monitor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "changes",
    "changedWithinDays": 30,
    "maxResults": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("hydrocore/us-gov-domain-monitor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "changes",
  "changedWithinDays": 30,
  "maxResults": 100
}' |
apify call hydrocore/us-gov-domain-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hydrocore/us-gov-domain-monitor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/PittIyEFQW2sCFTQ6/builds/7iQg2IXlcvAWOtJWJ/openapi.json
