# IETF RFC & Internet Standards Errata/Deprecation API (`runglab/ietf-rfc-standards-auditor`) Actor

Authoritative IETF RFC & Internet-Draft lookup: obsoleted-by/updated-by chains, verified security errata, RFC status, working groups, and normative MUST/SHOULD clause extraction for AI agents & engineers.

- **URL**: https://apify.com/runglab/ietf-rfc-standards-auditor.md
- **Developed by:** [RungLab](https://apify.com/runglab) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 rfc standards audits

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

## IETF RFC & Internet Standards Errata/Deprecation API

Authoritative, real-time **IETF RFC & Internet Standards** auditing API for **AI coding agents, security architects, protocol engineers, and patent prior-art teams**.

Automatically resolves recursive **`obsoleted-by` deprecation chains** (e.g., `RFC 2616 → RFC 7230..7235 → RFC 9110 / 9111 / 9112`), **`updated-by` security standards** (e.g., `RFC 6749 → RFC 8252, RFC 8996, RFC 9700`), **official Verified & Held errata**, **working groups & IETF streams**, and **RFC 2119 / RFC 8174 uppercase normative clauses (`MUST` / `MUST NOT` / `REQUIRED` / `SHOULD`)** from official keyless IETF & RFC Editor APIs — **zero proxies, 256 MB RAM, MCP-ready**.

***

### Why Engineers & AI Agents Use This Actor

- **Eliminate Obsolete RFC Hallucinations**: LLMs routinely cite deprecated specs like **RFC 2616** (HTTP/1.1, 1999) instead of **RFC 9110 / 9111 / 9112** (HTTP Semantics, 2022). Every output record computes `isObsolete`, walks the full recursive `obsoletedBy` graph (`deprecationDepth`, `deprecationChain`, `latestReplacementRfcs`), and emits an actionable `citationWarning`.
- **Catch Verified Technical & Security Errata**: Parses live RFC Editor errata (`Verified`, `Held for Document Update`, `Reported`, `Rejected`), counting **Verified Technical** vs **Editorial** corrections and surfacing top errata diffs (`section`, `originalText`, `correctedText`, `notes`, direct `eid` links).
- **Track Active Security Updates**: Flags non-obsolete RFCs that have critical updating RFCs — such as **RFC 6749 (OAuth 2.0)** updated by **RFC 9700 (OAuth 2.0 Security Best Current Practice)** — and tracks modern specs like **RFC 9728 (OAuth 2.0 Protected Resource Metadata)** used by MCP authorization.
- **RFC 2119 Normative Clause Extraction**: Extracts crisp, unwrapped uppercase `MUST`, `MUST NOT`, `REQUIRED`, `SHOULD`, and `SHOULD NOT` requirements with section headings and document-wide normative counts (excluding boilerplate and references).
- **Dual-Source Keyword Search**: Searches the official **IETF Datatracker REST API** (`datatracker.ietf.org/api/v1/doc/document/`) with automatic fallback to the official **RFC Editor catalog** (`rfc-editor.org/rfc-index.txt`) for high availability.
- **Zero-Config Start & Zero-Proxy Speed**: Click **Start** immediately to audit `[2616, 6749, 9110, 9728]` in seconds on minimal 256 MB memory.

***

### Input Configuration

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `rfcNumbers` | `array<int\|string>` | `[2616, 6749, 9110, 9728]` | RFC numbers to audit (accepts integers or strings such as `2616`, `"6749"`, `"RFC9110"`). Defaults to `[2616, 6749, 9110, 9728]` when omitted and `searchQuery` is empty. Pass `[]` with `searchQuery` to audit only search hits. |
| `searchQuery` | `string` | `""` | Optional keyword search against IETF Datatracker API (with official RFC Editor index fallback), e.g., `"oauth"`, `"tls"`, `"quic"`, or `"protected resource metadata"`. |
| `maxSearchResults` | `integer` | `10` | Maximum RFCs returned by `searchQuery` (`1`–`100`). |
| `includeErrata` | `boolean` | `true` | Fetch and parse official RFC Editor errata counts & prioritized Technical/Verified highlights. |
| `extractNormativeClauses` | `boolean` | `true` | Extract bounded uppercase RFC 2119 / RFC 8174 `MUST` / `MUST NOT` / `SHOULD` clauses with section labels. |
| `compactMode` | `boolean` | `false` | Return streamlined, token-efficient JSON (~65% smaller) optimized for **Apify MCP** and AI coding agents. |
| `timeoutSeconds` | `integer` | `20` | Per-request HTTP timeout in seconds (`3`–`120`). |

#### Copy-Paste JSON Input (Default Showcase: HTTP + OAuth + MCP Auth)

```json
{
  "rfcNumbers": [2616, 6749, 9110, 9728],
  "includeErrata": true,
  "extractNormativeClauses": true,
  "compactMode": false
}
```

#### Copy-Paste JSON Input (Keyword Search Only, MCP Compact Mode)

```json
{
  "rfcNumbers": [],
  "searchQuery": "oauth",
  "maxSearchResults": 10,
  "includeErrata": true,
  "extractNormativeClauses": true,
  "compactMode": true
}
```

***

### Example Output Record (`RFC 2616` Deprecation Chain)

```json
{
  "rfcId": "RFC2616",
  "rfcNumber": 2616,
  "title": "Hypertext Transfer Protocol -- HTTP/1.1",
  "pubDate": "June 1999",
  "status": "DRAFT STANDARD",
  "stream": "IETF",
  "workingGroup": "HyperText Transfer Protocol",
  "workingGroupAcronym": "http",
  "ietfArea": "app",
  "isObsolete": true,
  "citationStatus": "OBSOLETE",
  "citationWarning": "OBSOLETE STANDARD: RFC2616 (June 1999) is obsoleted (2 hops) and superseded by RFC9110 (HTTP Semantics), RFC9111 (HTTP Caching), RFC9112 (HTTP/1.1). Do NOT cite RFC2616 for new implementations.",
  "obsoletedBy": ["RFC7230", "RFC7231", "RFC7232", "RFC7233", "RFC7234", "RFC7235"],
  "deprecationDepth": 2,
  "latestReplacementRfcs": ["RFC9110", "RFC9111", "RFC9112"],
  "updatedBy": ["RFC2817", "RFC5785", "RFC6266", "RFC6585"],
  "errataTotalCount": 17,
  "errataVerifiedCount": 7,
  "errataVerifiedTechnicalCount": 2,
  "errataHeldCount": 5,
  "rfcUrl": "https://www.rfc-editor.org/info/rfc2616",
  "errataUrl": "https://www.rfc-editor.org/errata/rfc2616"
}
```

***

### SDK & AI Agent Integration

#### Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")

run = client.actor("YOUR_USERNAME/ietf-rfc-standards-auditor").call(
    run_input={
        "rfcNumbers": [2616, 6749, 9110, 9728],
        "includeErrata": True,
        "extractNormativeClauses": True,
        "compactMode": False,
    }
)

for rfc in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(rfc["rfcId"], rfc["citationStatus"], rfc.get("latestReplacementRfcs"))
    if rfc.get("citationWarning"):
        print("  WARNING:", rfc["citationWarning"])
```

#### Node.js / TypeScript (`apify-client`)

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });

const run = await client.actor('YOUR_USERNAME/ietf-rfc-standards-auditor').call({
    rfcNumbers: [],
    searchQuery: 'oauth',
    maxSearchResults: 10,
    compactMode: true,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const rfc of items) {
    console.log(`${rfc.rfcId} [${rfc.citationStatus}] -> ${rfc.citationWarning ?? 'Current standard'}`);
}
```

#### MCP Agent Configuration (Claude Code / Cursor / Windsurf via Apify MCP)

Add the Apify MCP server and expose this Actor as a live standards-verification tool so coding agents verify RFC status, replacements, and security errata before writing protocol code:

```json
{
  "mcpServers": {
    "apify-ietf-rfc": {
      "url": "https://mcp.apify.com/?actors=YOUR_USERNAME/ietf-rfc-standards-auditor",
      "headers": {
        "Authorization": "Bearer <YOUR_APIFY_TOKEN>"
      }
    }
  }
}
```

> **Agent Tip:** Pass `"compactMode": true` when calling via MCP to keep each RFC audit payload concise while preserving `isObsolete`, `citationWarning`, `latestReplacementRfcs`, `updatedBy`, top verified technical errata, and top 5 `MUST` / `MUST NOT` normative requirements.

***

### Pay-Per-Event (PPE) Pricing

| Event | Price | Description |
| :--- | :--- | :--- |
| `actor-start` | `$0.01` | Charged once per Actor run start. |
| `rfc-audit` | `$0.01` | Charged once per audited RFC record pushed to the dataset. |

Runs respect your maximum PPE spending limit automatically and halt gracefully if reached, recording exact counts in the `RUN_SUMMARY` Key-Value Store record.

***

### Authoritative Data Sources

All data is fetched live over HTTPS from official public IETF & RFC Editor endpoints with zero scraping workarounds and zero proxies:

1. **RFC Editor Per-RFC JSON API** (`https://www.rfc-editor.org/rfc/rfc{N}.json`)
2. **RFC Editor Errata Portal** (`https://www.rfc-editor.org/errata/rfc{N}`)
3. **RFC Editor Plain-Text Specifications & Official Index** (`https://www.rfc-editor.org/rfc/rfc{N}.txt`, `https://www.rfc-editor.org/rfc-index.txt`)
4. **IETF Datatracker REST API** (`https://datatracker.ietf.org/api/v1/doc/document/?format=json`)

# Actor input Schema

## `rfcNumbers` (type: `array`):

List of IETF RFC numbers (integers or strings like 2616, "6749", "RFC9110", "9728") to audit. Defaults to \[2616, 6749, 9110, 9728] when omitted and searchQuery is empty. Pass \[] with a searchQuery to audit only matching search results.

## `searchQuery` (type: `string`):

Optional keyword search against the IETF Datatracker REST API (with automatic RFC Editor official index fallback), e.g., 'oauth', 'tls', 'http/3', 'quic', or 'protected resource metadata'. Matching RFCs are merged with rfcNumbers and audited.

## `maxSearchResults` (type: `integer`):

Maximum number of RFCs to return from searchQuery (sorted newest-first / highest relevance).

## `includeErrata` (type: `boolean`):

Fetch and parse official RFC Editor errata records (Verified, Held for Document Update, Reported, Rejected), surfacing Technical errata counts and top summaries.

## `extractNormativeClauses` (type: `boolean`):

Fetch official RFC plain-text specification (safely bounded) and extract high-signal uppercase RFC 2119 / RFC 8174 normative requirements with section headings and keyword counts.

## `compactMode` (type: `boolean`):

When enabled, emits a streamlined, token-efficient JSON payload omitting verbose abstracts, full errata bodies, and hop tables — ideal for AI coding agents calling this Actor via Apify MCP.

## `timeoutSeconds` (type: `integer`):

Per-request HTTP timeout in seconds for RFC Editor and IETF Datatracker API requests.

## Actor input object example

```json
{
  "rfcNumbers": [
    2616,
    6749,
    9110,
    9728
  ],
  "searchQuery": "",
  "maxSearchResults": 10,
  "includeErrata": true,
  "extractNormativeClauses": true,
  "compactMode": false,
  "timeoutSeconds": 20
}
```

# Actor output Schema

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

Table view of audited RFCs with status, obsolescence flag, latest replacement RFCs, updated-by links, verified technical errata counts, and AI citation warnings.

## `deprecationAndErrata` (type: `string`):

Focused compliance view highlighting obsolete standards, replacement RFC chains, updates, and verified/held errata totals.

## `allRecords` (type: `string`):

Full structured JSON dataset including nested errata highlights, deprecation hop graphs, and RFC 2119 normative MUST/SHOULD clauses.

## `runSummary` (type: `string`):

Audit counts, obsolete RFC flags, search source diagnostics, and execution stats stored in the Key-Value Store.

# 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 = {
    "rfcNumbers": [
        2616,
        6749,
        9110,
        9728
    ],
    "searchQuery": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("runglab/ietf-rfc-standards-auditor").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 = {
    "rfcNumbers": [
        2616,
        6749,
        9110,
        9728,
    ],
    "searchQuery": "",
}

# Run the Actor and wait for it to finish
run = client.actor("runglab/ietf-rfc-standards-auditor").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 '{
  "rfcNumbers": [
    2616,
    6749,
    9110,
    9728
  ],
  "searchQuery": ""
}' |
apify call runglab/ietf-rfc-standards-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,runglab/ietf-rfc-standards-auditor"
        }
    }
}
```

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/jgldojThBwmf3KMsv/builds/2jC0joAsX9AG7p4iO/openapi.json
