# IANA Protocol Registries Scraper: Ports, Media Types, TLDs (`parseforge/iana-protocol-registries-scraper`) Actor

Search the official IANA protocol registries: service names and port numbers, MIME media types, top-level domains, URI schemes and HTTP status codes. No key. Export CSV, Excel, JSON.

- **URL**: https://apify.com/parseforge/iana-protocol-registries-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Developer tools, Education, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.12 / 1,000 result rows

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

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner.jpg)](https://apify.com/parseforge?fpr=vmoqkp)

### IANA Protocol Registries Scraper: Ports, Media Types, TLDs

**Official IANA registries (ports, MIME types, TLDs, URI schemes, HTTP status codes) as clean rows.** Search the official IANA protocol registries: service names and port numbers, MIME media types, top-level domains, URI schemes and HTTP status codes. No key. Export CSV, Excel, JSON. Export to CSV, JSON, Excel or XML.

| Who uses it | What for |
|---|---|
| Developers and DevOps | Validate or label ports, MIME types, URI schemes and TLDs in security tools, firewalls and linters. |
| Analysts and researchers | Keep an up to date TLD list for domain tooling and email validation. |
| Data teams | Build lookup tables or documentation from the authoritative registry instead of a stale copy. |

### What it does

The Actor downloads the public dataset once per run, applies your filters and returns one flat row per record, ready to sort, filter and load anywhere.

- No login, no API key, no cookies.
- Polite requests: a clear User-Agent, a handful of requests per run, bounded retries.
- Every row carries `dataSource`, `dataLicense` and `sourceUrl` so the license travels with the data.
- Empty or invalid input finishes cleanly with zero rows and a clear message in the run status.

### Input

| Field | Type | Description |
|---|---|---|
| `registry` | string | Which IANA registry to read: service names and port numbers, MIME media types, top-level domains, URI schemes or HTTP status codes. |
| `query` | string | Keep only rows whose name, value or description contains this text (case insensitive). Example: "postgres", "json", "museum", "404". |
| `protocol` | string | For the ports registry: keep only tcp, udp, sctp or dccp rows. Ignored by the other registries. |
| `mediaTypeGroup` | string | For the media types registry: read one top-level group, or all of them. Ignored by the other registries. |
| `maxItems` | integer | Maximum rows to return. Free users get a 10 item preview. Default 100, maximum 1,000,000. |

#### Examples

**Which ports does PostgreSQL use?**

```json
{
  "registry": "ports",
  "query": "postgres",
  "maxItems": 10
}
```

**All JSON based MIME types**

```json
{
  "registry": "media-types",
  "query": "json",
  "maxItems": 100
}
```

**Every delegated top-level domain**

```json
{
  "registry": "tlds",
  "maxItems": 2000
}
```

### Output

One row per record. Example:

```json
{
  "registry": "ports",
  "name": "postgresql",
  "value": "5432",
  "protocol": "tcp",
  "description": "PostgreSQL Database",
  "status": "Assigned",
  "reference": null
}
```

| Field | Meaning |
|---|---|
| `registry` | Registry the row comes from: ports, media-types, tlds, uri-schemes or http-status-codes |
| `name` | Service name, media type name, TLD, URI scheme or HTTP status text |
| `value` | Port number, full MIME type, ".tld", "scheme:" or status code |
| `protocol` | Transport protocol (ports only): tcp, udp, sctp, dccp |
| `description` | Registry description or group |
| `status` | Registry status such as Assigned, Reserved, Permanent, Deprecated, Delegated |
| `assignee` | Assignee (ports only) |
| `reference` | RFC or other reference |
| `registrationDate` | Registration date (ports only) |
| `modificationDate` | Last modification date (ports only) |
| `registryUrl` | IANA page of the registry |
| `dataSource` | Data source name |
| `dataLicense` | Data license (CC0-1.0) |
| `sourceUrl` | Source URL |
| `scrapedAt` | ISO timestamp of the run |

### Data source, license and attribution

The data comes from the official IANA protocol registries, which IANA and the IETF dedicated to the public domain under CC0 1.0 (https://www.iana.org/help/licensing-terms). IANA robots.txt allows crawling. The Actor makes a handful of requests per run with a clear User-Agent.

**Attribution.** Data: IANA Protocol Registries, CC0 1.0 (public domain). Source: https://www.iana.org/protocols

### FAQ

**Do I need an API key?** No.

**What happens when nothing matches?** The run succeeds with 0 rows and a clear message. You are only charged the platform start fee, never for rows that were not delivered.

**What happens if the source blocks or fails?** The Actor retries a few times with pauses. If the source keeps refusing, the run fails with an honest message. It never tries to get around a block.

**How fresh is the data?** Every run reads the live source, so it is as fresh as the publisher makes it.

**Can I use it commercially?** The license above decides. Keep the attribution when you redistribute the data.

### Support

Questions or a missing field? Open an issue from the Actor page, or rate the Actor after your run: it helps a lot.

# Actor input Schema

## `registry` (type: `string`):

Which IANA registry to read: service names and port numbers, MIME media types, top-level domains, URI schemes or HTTP status codes.

## `query` (type: `string`):

Keep only rows whose name, value or description contains this text (case insensitive). Example: "postgres", "json", "museum", "404".

## `protocol` (type: `string`):

For the ports registry: keep only tcp, udp, sctp or dccp rows. Ignored by the other registries.

## `mediaTypeGroup` (type: `string`):

For the media types registry: read one top-level group, or all of them. Ignored by the other registries.

## `maxItems` (type: `integer`):

Maximum rows to return. Free users: limited to 10 items (preview). Paid users: optional, up to 1,000,000. Default 100.

## Actor input object example

```json
{
  "registry": "ports",
  "query": "postgres",
  "protocol": "any",
  "mediaTypeGroup": "all",
  "maxItems": 10
}
```

# Actor output Schema

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

Key fields

## `fullData` (type: `string`):

Complete dataset with all 15 fields

# 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 = {
    "query": "postgres",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/iana-protocol-registries-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 = {
    "query": "postgres",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/iana-protocol-registries-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 '{
  "query": "postgres",
  "maxItems": 10
}' |
apify call parseforge/iana-protocol-registries-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parseforge/iana-protocol-registries-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/FqDkkj1hk17f666iG/builds/9laD04xXIGMKZnQEO/openapi.json
