# OpenAPI Catalog & Breaking Change Detector: JSON & YAML (`cliqtomedia/openapi-spec-catalog-diff`) Actor

Export endpoint catalogs from OpenAPI 2/3 JSON and YAML, or compare two specs for possible breaking changes. Public URLs and APIs.guru IDs. No keys needed.

- **URL**: https://apify.com/cliqtomedia/openapi-spec-catalog-diff.md
- **Developed by:** [Cliqto Media](https://apify.com/cliqtomedia) (community)
- **Categories:** Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.07 / 1,000 endpoint or change 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

## OpenAPI Catalog & Breaking Change Detector

Turn public OpenAPI specs into an endpoint catalog, or compare two versions for possible breaking changes. Use public HTTPS JSON/YAML documents or APIs.guru IDs. No API key is needed to read the demo specs. A small run with 8 rows costs $0.0508 on the FREE tier.

![OpenAPI endpoint catalog and two-version change review](https://api.apify.com/v2/key-value-stores/ZJOfBP6sIijubSsBr/records/HERO-v2.png)

### Contents

- [What it does](#what-it-does)
- [Data you get](#data-you-get)
- [Quick start](#quick-start)
- [Inputs](#inputs)
- [Input examples](#input-examples)
- [Output example](#output-example)
- [Output fields](#output-fields)
- [Price](#price)
- [Use cases](#use-cases)
- [Repeated checks](#repeated-checks)
- [API, exports and integrations](#api-exports-and-integrations)
- [Use with AI agents (MCP)](#use-with-ai-agents-mcp)
- [Limits and partial results](#limits-and-partial-results)
- [Troubleshooting](#troubleshooting)
- [FAQ](#faq)
- [Support](#support)

### What it does

**Catalog:** one row per method and path. It reads [OpenAPI 2.0, 3.0 and 3.1](https://spec.openapis.org/oas/), as JSON or YAML. It combines path and operation parameters. It shows effective security requirements, including alternatives and scopes.

**Diff:** compare `oldSpec` with `newSpec`. Find removed or added operations, parameters, request media types, responses, schema types, formats, enums, required properties and selected constraints. Changes to security requirements are flagged for review. Composed schemas are checked conservatively, including local references. Request enum narrowing and response enum widening are breaking findings.

The detector is a structural heuristic. It does not prove that clients are safe. It does not test API calls, generate clients, or run the listed endpoints. It never downloads external `$ref` targets.

### Data you get

In catalog mode, use the **Endpoint catalog** table. In diff mode, use **Version changes**. JSON exports contain the full row fields. CSV tables show the fields selected in each view. The run also writes `RUN_SUMMARY` and `OUTPUT` with status, counters and errors.

[APIs.guru](https://apis.guru/api-doc/) provides a public directory. Its CC0 directory policy does not give one licence to every API document. Each row shows the licence stated in the spec, or `null`. Check the provider's terms before reuse.

### Quick start

1. Keep `mode` as `catalog`.
2. Keep the two small public spec URLs in the form.
3. Start the Actor with the default 300-second timeout. If you set a maximum charge, keep it above $0.05.
4. Open **Endpoint catalog**. The demo currently returns 8 operations from APIs.guru and NASA APOD.
5. Export JSON or CSV. You can then replace the URLs with your public specs.

The form, example input and runtime defaults use the same two public documents. Calling with `{}` uses these documented defaults. No day-of-week window is used.

### Inputs

| Field | Type | Default | Limits and effect |
|---|---|---|---|
| `mode` | string | `catalog` | `catalog` or `diff`. Choose the task. |
| `specs` | string array | two demo URLs below | Catalog only. 1–20 public HTTPS URLs or APIs.guru IDs. Exact duplicate entries are checked once. |
| `oldSpec` | string | absent | Required in diff mode. Old public URL or ID with `@version`. |
| `newSpec` | string | absent | Required in diff mode. New public URL or ID with `@version`. |
| `maxRows` | integer | `1000` | 1–1000 rows. Caps saved results. A truncated result reports `partial` and `ROW_LIMIT`. This does not reduce all document parsing. |
| `breakingOnly` | boolean | `false` | Diff only. Export breaking findings only. It does not reduce source downloads. A filter with no matches succeeds with zero rows. |

Each spec entry is at most 2048 characters. URLs must use HTTPS on port 443. Credentials, query strings and URL fragments are rejected. No authenticated or signed URLs. Private, loopback and reserved IPs are blocked, including DNS and redirect targets. A failed spec stops the run.

An APIs.guru ID is a key from its directory, for example `apis.guru` or `nasa.gov:apod`. `adyen.com:CheckoutService@37` selects a version. Without `@version`, the preferred directory version is used. A colon in an ID is part of the name. The directory is fetched once per run when an ID is used; URLs avoid that download.

### Input examples

Small catalog:

```json
{
  "mode": "catalog",
  "specs": [
    "https://api.apis.guru/v2/specs/apis.guru/2.2.0/openapi.json",
    "https://api.apis.guru/v2/specs/nasa.gov/apod/1.0.0/openapi.json"
  ],
  "maxRows": 1000,
  "breakingOnly": false
}
```

Compare two public versions:

```json
{
  "mode": "diff",
  "oldSpec": "adyen.com:CheckoutService@37",
  "newSpec": "adyen.com:CheckoutService@70",
  "maxRows": 1000,
  "breakingOnly": true
}
```

Read a YAML spec:

```json
{
  "mode": "catalog",
  "specs": ["https://raw.githubusercontent.com/APIs-guru/openapi-directory/main/APIs/httpbin.org/0.9.2/openapi.yaml"]
}
```

### Output example

An endpoint row from the public NASA APOD spec:

```json
{
  "api": "APOD",
  "version": "1.0.0",
  "openapiVersion": "3.0.0",
  "method": "GET",
  "path": "/apod",
  "operationId": null,
  "summary": "Returns images",
  "tags": ["request tag"],
  "authSchemes": [{"name": "api_key", "type": "apiKey"}],
  "securityAlternatives": [[{"name": "api_key", "scopes": []}]],
  "deprecated": false,
  "requestContentTypes": [],
  "responseContentTypes": ["application/json"],
  "parameters": [
    {"name": "date", "in": "query", "required": false, "type": "string"},
    {"name": "hd", "in": "query", "required": false, "type": "boolean"}
  ],
  "responseCodes": ["200", "400"],
  "kind": "endpoint",
  "provider": "OpenAPI document",
  "sourceUrl": "https://api.apis.guru/v2/specs/nasa.gov/apod/1.0.0/openapi.json",
  "sourceUpdatedAt": "Mon, 18 Aug 2025 11:00:32 GMT",
  "fetchedAt": "2026-10-13T15:03:22.269Z",
  "licence": "Apache 2.0",
  "licenceUrl": "http://www.apache.org/licenses/LICENSE-2.0.html"
}
```

Timestamps reflect the fetch. The URL is the source spec, not an API call. The Actor reads the APOD document without using the APOD API key.

### Output fields

| Field | Type / null | Meaning |
|---|---|---|
| `kind` | string | `endpoint` or `change`. |
| `api`, `version` | string | Title and version from `info`. |
| `openapiVersion` | string; absent in diff | Swagger/OpenAPI version. |
| `oldVersion` | string; absent in catalog | Old API version in diff. |
| `method`, `path` | string | Uppercase method and operation path, e.g. `GET`, `/apod`. |
| `operationId`, `summary` | string or null; catalog | Declared ID and short summary; null if absent. |
| `tags` | string array; catalog | Operation tags, or `[]`. |
| `authSchemes` | object array; catalog | Effective scheme `name` and `type`; no keys or token values. |
| `securityAlternatives` | nested array; catalog | Outer entries are OR alternatives; schemes inside one entry are required together. Each has `name` and `scopes`. Empty array means no auth requirement. |
| `deprecated` | boolean; catalog | True only for declared `deprecated: true`. |
| `requestContentTypes`, `responseContentTypes` | string arrays; catalog | Request and response media types, or `[]` if undeclared. |
| `parameters` | object array; catalog | Effective `name`, `in`, `required`, `type`. `type` may be null. Path parameters are always required. No examples or defaults. |
| `responseCodes` | string array; catalog | Declared status keys, including `default`. |
| `changeType` | string; diff | Rule, such as `endpoint_removed`, `parameter_required`, `type_changed` or `response_added`. |
| `severity` | string; diff | `breaking` or `non-breaking`. Conservative flags need review. |
| `details` | string; diff | Brief explanation, without schema values. |
| `provider` | string | `OpenAPI document`. |
| `sourceUrl`, `oldSourceUrl` | string | Final public URL; old source exists only in diff. |
| `sourceUpdatedAt` | string or null | Directory update time or HTTP Last-Modified; null if unknown. |
| `fetchedAt` | string | ISO 8601 UTC fetch time. |
| `licence`, `licenceUrl` | string or null | Stated document licence and link; null if absent. This is not a legal check. |

Metadata text is limited to 500 characters; tag/scope lists to 100 values. Credential-looking text is replaced by `[REDACTED]`. Raw documents, examples, default values, contacts and server URLs are not exported. Do not put secrets in your input or public specs; input remains subject to Apify storage rules.

`RUN_SUMMARY` and `OUTPUT` contain `provider`, `catalogueLicence`, `status`, `reason`, `mode`, `specsRequested`, `specsProcessed`, `rowsSaved`, `breakingChanges`, `requests`, `bytesRead`, `errors`, `fetchedAt`, `limits` and `partial`. `OUTPUT` also has `datasetId` and `summaryKey`. `errors` contains a stable code and the failing `spec` input (null when the comparison step failed), not source bodies. `breakingChanges` is the total before `breakingOnly` and row filtering. Catalog reports zero for this counter.

### Price

A run has an **automatic $0.05 start event**, including an empty or invalid run. There is no second manual start fee. Each saved endpoint or change has one result-row event. Platform usage is included in the event price.

| Account tier | Per row | Per 1000 rows |
|---|---:|---:|
| FREE | $0.000100 | $0.100 |
| BRONZE | $0.000090 | $0.090 |
| SILVER | $0.000080 | $0.080 |
| GOLD / PLATINUM / DIAMOND | $0.000070 | $0.070 |

| Saved rows | FREE total, including start |
|---:|---:|
| 0 | $0.0500 |
| 8 (demo) | $0.0508 |
| 10 | $0.0510 |
| 100 | $0.0600 |
| 1000 | $0.1500 |

Only saved rows count. An unchanged diff or an empty breaking filter pays the start event only. A failed source may leave paid rows from earlier documents. If your charge cap is reached, the Actor saves the summary, reports `partial/CHARGE_LIMIT`, and succeeds. Use a cap above $0.05 to allow results. Memory is fixed at 256 MB; the start event does not multiply above one GB.

### Use cases

- List the operations used by your integration team.
- Review a vendor's API version change before changing clients.
- Build an API inventory with methods, tags, auth types and licences.
- Feed possible breaks into a manual release review.

### Repeated checks

This Actor has no saved baseline and creates no schedule or webhook. To check again, provide the old and new spec versions each time. An unchanged document pair gives zero findings. Keep exported results in your own workflow if you need history.

### API, exports and integrations

Run through [Apify's API](https://docs.apify.com/api/v2/actors-run-post), using the JSON input above. Export the Dataset to JSON or CSV, or read the `RUN_SUMMARY` output link. Catalog and changes are separate Dataset views; choose the view for your mode. An irrelevant view may have blank mode-specific columns.

### Use with AI agents (MCP)

Use [Apify MCP](https://mcp.apify.com?tools=cliqtomedia/openapi-spec-catalog-diff). Ask it to run `{"mode":"catalog","specs":["apis.guru"],"maxRows":20}`. Read `method`, `path`, `operationId`, `authSchemes` and `sourceUrl`. A seven-row catalog costs $0.0507 on FREE. Small URL runs take seconds; IDs require a directory download. The Actor uses limited permissions and batch runs.

### Limits and partial results

- At most 20 catalog inputs, 10000 operations per document, 10000 findings per comparison and 1000 saved rows. Catalog output is capped at 64 KB per row and 10 MB per document; schema comparison at 300000 steps. Large output is a cap, not a promise that every provider has that many operations.
- 5 MB per JSON spec, 1 MB per YAML spec; 12 MB for the APIs.guru index; 30 MB total downloaded bytes per run. Three redirect hops. At most 64 requests including retries.
- Network and body timeout: 15 seconds per request, up to three tries for transient connection errors or 429/5xx responses. A long Retry-After stops the run. Total source work is capped at 180 seconds, even if the platform timeout is longer. A shorter platform timeout shortens work.
- Only internal JSON-pointer `$ref` references are supported. External, file and unresolved references fail explicitly. Circular reference chains fail; recursive schemas are compared within depth and visited-pair limits.
- OpenAPI 3.2 is not supported. This is not a full spec or JSON Schema validator. Webhooks, callbacks, server changes, response headers, descriptions and full JSON Schema keyword semantics are outside the diff rules. Dynamic references and complex schema equivalence are not evaluated. Absence of findings does not prove compatibility.
- Changed security requirements and selected schema constraints are conservatively marked breaking. Removing a parameter or response property is also conservative. Read each finding before taking action.
- `ROW_LIMIT` or `CHARGE_LIMIT`: `SUCCEEDED`, with `status: partial`. The saved rows are usable.
- Source, parse, deadline or cancellation failure: `FAILED`; summary is `partial` when earlier rows remain, otherwise `error`. `NOT_FOUND` is a source error, not an unchanged API.

No data calls are made to the API described by a spec. Requests fetch the documents and, when needed, the public directory only. This product is not endorsed by APIs.guru, NASA or API providers.

### Troubleshooting

| Code / symptom | What to do |
|---|---|
| `UNSAFE_URL`, `PRIVATE_ADDRESS` | Use a public HTTPS document without credentials, query strings or a private host. |
| `NOT_FOUND` | Check the URL or APIs.guru ID/version. Old versions may no longer exist. |
| `INVALID_DOCUMENT`, `INVALID_SPEC` | Check JSON/YAML syntax, required info fields and paths. |
| `EXTERNAL_REF_UNSUPPORTED`, `INVALID_REF` | Bundle your document with local references before running. |
| `CYCLIC_REF`, `STRUCTURE_LIMIT`, `SCHEMA_DEPTH_LIMIT` | Simplify deeply nested or cyclic reference chains. |
| `BYTE_LIMIT`, `YAML_BYTE_LIMIT`, `OUTPUT_LIMIT`, `COMPARISON_LIMIT`, `OPERATION_LIMIT`, `CHANGE_LIMIT` | Split the job into smaller documents/pairs. |
| `HTTP_TIMEOUT`, `DNS_TIMEOUT`, `SOURCE_UNAVAILABLE` | Check source availability. Run again later with a small input. |
| `ROW_LIMIT` | Increase `maxRows` within the cap or split the catalog. |
| `CHARGE_LIMIT` | Increase your maximum charge if you want more results. |
| Zero diff rows | This can mean no covered changes, or no breaking findings after filtering. Check summary errors and review unsupported rules. |

### FAQ

**Can I use an API that needs a key?** Its public spec can describe key-based auth. The Actor needs no key to read a public document. Authenticated spec downloads are not supported.

**Does it call each endpoint?** No. It reads the spec only.

**Does an added field always break clients?** No. Request and response direction matters. The output is a heuristic with conservative rules.

**Can I use Swagger 2 or YAML?** Yes. The catalog and core diff handle Swagger 2.0, OpenAPI 3.0/3.1, JSON and YAML.

**Can I monitor an API automatically?** Re-run with an explicit pair of versions in your own workflow. There is no built-in baseline, notification or schedule.

**What licence applies?** Check `licence`, the linked terms and the original provider. Unknown licence is `null`, not a claim that reuse is free.

### Support

Open an Issue on this Actor's Apify page. Share the run ID and stable error code. Do not post credentials or confidential documents. We usually reply within two business days.

# Changelog

This Actor's version history is a separate document: https://apify.com/cliqtomedia/openapi-spec-catalog-diff/changelog.md

# Actor input Schema

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

catalog exports operations. diff compares oldSpec and newSpec; specs is ignored.

## `specs` (type: `array`):

Up to 20 public HTTPS spec URLs without query strings, or APIs.guru ID such as apis.guru or nasa.gov:apod. Use id@version to select a version. JSON/YAML, up to 5 MB each. Duplicates are checked once. Used in catalog mode.

## `oldSpec` (type: `string`):

Required for diff: public HTTPS URL or APIs.guru id@version. No credentials, query strings or external references.

## `newSpec` (type: `string`):

Required for diff: public HTTPS URL or APIs.guru id@version. An unchanged document returns zero changes successfully.

## `maxRows` (type: `integer`):

Stop after 1–1000 saved endpoint/change rows. Default 1000. A row limit gives partial/ROW_LIMIT, never claims a full catalog.

## `breakingOnly` (type: `boolean`):

In diff mode, keep breaking findings only. Default false. Does not reduce source downloads. Ignored in catalog.

## Actor input object example

```json
{
  "mode": "catalog",
  "specs": [
    "https://api.apis.guru/v2/specs/apis.guru/2.2.0/openapi.json",
    "https://api.apis.guru/v2/specs/nasa.gov/apod/1.0.0/openapi.json"
  ],
  "maxRows": 1000,
  "breakingOnly": false
}
```

# Actor output Schema

## `catalog` (type: `string`):

No description

## `changes` (type: `string`):

No description

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

No description

## `output` (type: `string`):

No description

# 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": "catalog",
    "specs": [
        "https://api.apis.guru/v2/specs/apis.guru/2.2.0/openapi.json",
        "https://api.apis.guru/v2/specs/nasa.gov/apod/1.0.0/openapi.json"
    ],
    "maxRows": 1000
};

// Run the Actor and wait for it to finish
const run = await client.actor("cliqtomedia/openapi-spec-catalog-diff").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": "catalog",
    "specs": [
        "https://api.apis.guru/v2/specs/apis.guru/2.2.0/openapi.json",
        "https://api.apis.guru/v2/specs/nasa.gov/apod/1.0.0/openapi.json",
    ],
    "maxRows": 1000,
}

# Run the Actor and wait for it to finish
run = client.actor("cliqtomedia/openapi-spec-catalog-diff").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": "catalog",
  "specs": [
    "https://api.apis.guru/v2/specs/apis.guru/2.2.0/openapi.json",
    "https://api.apis.guru/v2/specs/nasa.gov/apod/1.0.0/openapi.json"
  ],
  "maxRows": 1000
}' |
apify call cliqtomedia/openapi-spec-catalog-diff --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,cliqtomedia/openapi-spec-catalog-diff"
        }
    }
}
```

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/Yh9heL8j4rhkk4czu/builds/kSq6SgYnEONHDPV7m/openapi.json
