# ICANN Accredited Registrar Directory (`bovi/icann-scraper`) Actor

Collect registrar records from ICANN’s public CSV export. Get names, IANA numbers, countries/territories, public contacts, and websites. Use maxResults; no login or API key. Pricing: $0.01 per item + $0.00005 per Actor Start event on Free plan.

- **URL**: https://apify.com/bovi/icann-scraper.md
- **Developed by:** [Vitalii Bondarev](https://apify.com/bovi) (community)
- **Categories:** Business, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 94.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 icann accredited registrar directories

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## ICANN Accredited Registrar Directory Scraper

Extract the public ICANN directory of accredited domain-name registrars: names, IANA numbers, countries or territories, public contacts, and websites. On the Free plan the price is $0.01 per dataset item, plus $0.00005 per Actor Start event.

- Build a reference list of ICANN-accredited registrars for business and lead-data workflows.
- Match registrar names with IANA numbers and countries or territories.
- Export public contact details and registrar websites for research or directory enrichment.
- No login, API key, or cookie needed.
- Cap each run with `maxResults`; the Apify residential proxy is on by default.

### What you get

| Field | Type | Description |
|---|---|---|
| `registrar_name` | string | Accredited registrar name |
| `iana_number` | string | IANA number assigned to the registrar |
| `country` | string | Country or territory (empty string if missing) |
| `public_contact` | string | Public contact information (empty string if missing) |
| `website_url` | string | Registrar website (empty string if missing) |

The Actor reads ICANN's public accredited-registrars CSV export:

`https://www.icann.org/en/contracted-parties/accredited-registrars/list-of-accredited-registrars/csvdownload?page=1`

The directory is maintained by ICANN and may change between runs. Rows without a registrar name or IANA number are skipped.

### Sample output

This is the first row of the live export (`dataset_sample.json`), with the contact string masked as "\[contact hidden]". In the registrar name, `\u0023` is the JSON escape for the number sign.

```json
{
  "registrar_name": "! \u00231 Host Australia, LLC",
  "iana_number": "967",
  "country": "United States of America",
  "public_contact": "[contact hidden]",
  "website_url": "http://www.networksolutions.com"
}
```

### Pricing

This Actor uses pay-per-event billing. The events are listed below; prices are for the Free plan.

| Event | Free-plan price | Billing unit |
|---|---:|---|
| `apify-default-dataset-item` | $0.01 per result | One scraped result with all fields |
| `apify-actor-start` | $0.00005 per start event | One Actor Start event (one per GB of memory, minimum one) |

Free plan, 1,000 results = 1,000 x $0.01 = $10.00, plus the start event.

Free plan, 10,000 results = 10,000 x $0.01 = $100.00, plus the start event.

Example on the Free plan: 499 results = 499 x $0.01 = $4.99, plus one start event at $0.00005, total $4.99005. The Apify Free plan includes $5 of monthly platform usage credit, which covers exactly 499 results after one start event.

Compute, proxy traffic, and storage are included in the event prices; you pay no separate platform usage charges.

### How to use

1. Open the Actor in Apify and start a run.
2. Set `maxResults` to the maximum number of registrar records to return.
3. Keep the default `proxyConfiguration` (Apify residential proxy), or disable the proxy in the input to connect directly.
4. Run the Actor and open the resulting dataset.
5. To refresh the list, repeat the run; Apify Schedules can repeat the run automatically.

Example input:

```json
{
  "maxResults": 50
}
```

Export the dataset as JSON or CSV, or read it through the Apify dataset API.

### Input parameters

| Parameter | What it does | Default |
|---|---|---:|
| `maxResults` | Maximum number of registrar records to return (minimum `1`). | `50` |
| `proxyConfiguration` | Apify proxy configuration. Disable the proxy in the input to connect directly. | Apify residential proxy |
| disableUsageStats | Set to `true` to opt out of the usage summary described below. Not shown in the input form. | `false` |

### Limits and edge cases

| Condition | What you see | What to do |
|---|---|---|
| `maxResults` is not set | The run returns up to 50 records. | Set a higher value for more records. |
| `maxResults` is a positive integer | The whole CSV is fetched on every run, then cut to that number of records. | Raise `maxResults` to get more. |
| `maxResults` cannot be read as a number | The Actor falls back to 50. | Use a positive integer. |
| `maxResults` is zero or negative | The Actor returns without pushing records. | Use a positive integer. |
| The export is empty, has no valid records, or lacks expected columns | The run fails with an error instead of returning an empty dataset. | Check ICANN's export and run again later. |
| A source row has no registrar name or IANA number | That row is skipped. | Review the source export if rows seem missing. |
| The request fails or takes over 45 seconds | The run fails; there is no retry. | Start the run again. |
| ICANN's directory changes between runs | Later runs can contain different records. | Store each dataset when you need history. |

### FAQ

#### How much does it cost to scrape the ICANN registrar directory?

See the Pricing section above for the per-result price and the start event.

#### What happens if the result is empty?

An empty export or one with no valid registrar records fails the run with an error; you do not get an empty dataset. Check the ICANN export and run the Actor again.

#### Why might the Actor not work?

The export must contain the registrar name, IANA number, country or territory, public contact, and link columns. A fetch error, a timeout, an empty export, or missing columns fails the run. Review the run error before retrying.

#### Is scraping this public data legal or allowed?

The Actor collects the public ICANN directory export. Whether a particular use is legal or allowed depends on your use case, the source's terms, and applicable law; this Actor gives no legal guarantee.

### Related actors

- [Website Tech-Stack Detector](https://apify.com/bovi/builtwith-tech-stack-scraper): detects the technologies behind a website; it is a separate Actor with its own input, so check its input schema before pairing it with registrar data.

### Usage statistics

This Actor creates a small, content-free summary at the end of each run, used only to monitor reliability and improve this Actor. No input values, credentials or scraped data are sent.

A copy of the exact record for your run is saved as `USAGE_STATS` in your own Apify key-value store.

To opt out, set `disableUsageStats` to `true` in the input. Nothing is sent then.

[Full list of collected fields](https://api.apify.com/v2/key-value-stores/v9rgHjMKLDGtHf8tD/records/index.html)

# Actor input Schema

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

Maximum number of accredited registrar records to collect.

## `proxyConfiguration` (type: `object`):

Optional Apify proxy configuration. Leave it unset or disable the proxy to connect directly.

## Actor input object example

```json
{
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Dataset with the collected registrar records.

# 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 = {
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bovi/icann-scraper").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 = { "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    } }

# Run the Actor and wait for it to finish
run = client.actor("bovi/icann-scraper").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 '{
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call bovi/icann-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bovi/icann-scraper"
        }
    }
}
```

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/5IjQgvxxfxn4euMrB/builds/E1MhhzJ37rkBvokqQ/openapi.json
