# Free Public API Directory & Health Checker (`luochengfengqi/free-public-api-directory`) Actor

Parses the public-apis catalog on GitHub (2,200+ free APIs in 52 categories) into structured records and probes each listed site for HTTP status, latency, redirects and final scheme. Filter by category, keyword, authentication and CORS support.

- **URL**: https://apify.com/luochengfengqi/free-public-api-directory.md
- **Developed by:** [luochengfengqi](https://apify.com/luochengfengqi) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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

## Free Public API Directory & Health Checker

Parses the `public-apis/public-apis` catalog on GitHub into structured, filterable records and probes every selected listed site for reachability, HTTP status, latency, redirects and final URL scheme. The catalog currently holds about 2,200 free API entries in 52 categories; each entry is normalized into the same schema so the list can be searched, audited and re-checked on a schedule without maintaining a Markdown parser or a probing pipeline locally.

The Actor reads the catalog document over plain HTTPS, with two mirror fallbacks, and probes listed sites with header-only requests. It does not run a headless browser, does not call the listed APIs themselves, and does not require any API keys. A run writes one dataset record per selected entry and an aggregate `SUMMARY` record to the default Key-Value Store, including the exact upstream commit the catalog was read from.

### Table of Contents

- [Extraction Pipeline](#extraction-pipeline)
- [Catalog Coverage](#catalog-coverage)
- [Input Formats](#input-formats)
- [Input Parameters](#input-parameters)
- [Output Schema](#output-schema)
- [Key-Value Store Summary](#key-value-store-summary)
- [Health Classification](#health-classification)
- [Error and Empty-Result Handling](#error-and-empty-result-handling)
- [Usage Examples](#usage-examples)
- [Pricing](#pricing)
- [Limitations and Notes](#limitations-and-notes)
- [Source and License](#source-and-license)

### Extraction Pipeline

| Step | Source or operation | Detail |
|---|---|---|
| 1 | `raw.githubusercontent.com/public-apis/public-apis/master/README.md` | Primary catalog document, fetched with a 20 second timeout |
| 2 | `cdn.jsdelivr.net/gh/public-apis/public-apis@master/README.md` | First fallback mirror, used when the primary source fails or returns an unexpected payload |
| 3 | `api.github.com/repos/public-apis/public-apis/contents/README.md` | Second fallback, requested with the GitHub raw content media type |
| 4 | `api.github.com/repos/public-apis/public-apis/commits?per_page=1` | Best-effort lookup of the current catalog commit SHA, stored in the summary; a failure here never fails the run |
| 5 | Markdown table parser | Extracts name, listed URL, description, Auth, HTTPS and CORS cells per category section; tolerates descriptions containing pipe characters and sponsored rows without Auth cells |
| 6 | Filters and sorting | Category, keyword, authentication, HTTPS, CORS filters, then optional name, category or latency ordering |
| 7 | Site probe | Header-only GET per selected listed URL, manual redirect handling up to 5 hops, configurable concurrency and per-request timeout |
| 8 | Output | Dataset records plus a `SUMMARY` record in the default Key-Value Store |

The probe cancels the response body as soon as headers arrive, so probing a large homepage does not download its full content. Redirects are followed manually so the record can report how many hops were taken and which URL answered finally.

### Catalog Coverage

The catalog groups entries into categories. Category names below are accepted verbatim in the `categories` input, and slug forms such as `science-and-math` are accepted as well.

Animals, Anime, Anti-Malware, Art & Design, Authentication & Authorization, Blockchain, Books, Business, Calendar, Cloud Storage & File Sharing, Continuous Integration, Cryptocurrency, Currency Exchange, Data Validation, Development, Dictionaries, Documents & Productivity, Email, Entertainment, Environment, Events, Finance, Food & Drink, Games & Comics, Geocoding, Government, Health, Jobs, Machine Learning, Music, News, Open Data, Open Source Projects, Patent, Personality, Phone, Photography, Programming, Science & Math, Security, Shopping, Social, Sports & Fitness, Test Data, Text Analysis, Tracking, Transportation, URL Shorteners, Vehicle, Video, Weather.

The sponsored APILayer section at the top of the catalog is excluded by default because its rows carry no Auth, HTTPS or CORS values. Set `includeSponsored` to `true` to include it; those entries report `UNKNOWN` for the missing values.

### Input Formats

All filters are optional and can be combined. The `categories` and `authTypes` inputs accept several spellings:

| Input | Accepted forms | Example |
|---|---|---|
| `categories` | Display name, case-insensitive | `"Weather"`, `"Science & Math"` |
| `categories` | Slug form | `"science-and-math"`, `"food-and-drink"` |
| `authTypes` | Normalized value | `"NONE"`, `"API_KEY"`, `"OAUTH"` |
| `authTypes` | Catalog spelling | `"No"`, `"apiKey"`, `"OAuth"` |
| `keywords` | Free text, case-insensitive | `"exchange rate"`, `"books"`, `"iss"` |

Authentication types normalize to `NONE`, `API_KEY`, `OAUTH`, `X_MASHAPE_KEY`, `USER_AGENT` or `UNKNOWN`.

#### Example Input JSON

```json
{
  "categories": ["Weather", "Finance"],
  "keywords": [],
  "authTypes": ["NONE"],
  "checkHealth": true,
  "maxApis": 100,
  "healthConcurrency": 6,
  "healthTimeoutSeconds": 10,
  "httpsOnly": false,
  "corsSupport": "ANY",
  "includeSponsored": false,
  "sortBy": "FASTEST"
}
```

For a fast export of the whole catalog without probing, set `checkHealth` to `false` and `maxApis` to `2500`.

### Input Parameters

| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
| `categories` | array of string | `[]` | No | Catalog categories to include, display names or slugs. Empty includes every category. |
| `keywords` | array of string | `[]` | No | Case-insensitive keywords matched against name, description, category and domain. OR logic: matching any keyword keeps the entry. |
| `authTypes` | array of string | `[]` | No | Authentication types to include: `NONE`, `API_KEY`, `OAUTH`, `X_MASHAPE_KEY`, `USER_AGENT`, `UNKNOWN`. Empty includes all. |
| `checkHealth` | boolean | `true` | No | Probe each selected listed URL and add HTTP status, latency, redirect and health fields. Disable for a catalog-only export. |
| `maxApis` | integer | `30` | No | Maximum records written to the dataset, 1 to 2500. Applied after filters and pre-probe sorting. |
| `healthConcurrency` | integer | `6` | No | Maximum site probes in flight at once, 1 to 12. |
| `healthTimeoutSeconds` | integer | `10` | No | Per-request probe timeout in seconds, 3 to 30. Slower sites are reported as `UNREACHABLE`. |
| `httpsOnly` | boolean | `false` | No | Keep only entries whose catalog row states HTTPS support. Uses the listed value, not the probe result. |
| `corsSupport` | string | `ANY` | No | Filter on the CORS value listed in the catalog: `ANY`, `YES`, `NO` or `UNKNOWN`. |
| `includeSponsored` | boolean | `false` | No | Include the sponsored APILayer catalog section, whose rows have no Auth, HTTPS or CORS values. |
| `sortBy` | string | `LIST_ORDER` | No | `LIST_ORDER` keeps catalog order, `NAME` and `CATEGORY` sort before the record limit, `FASTEST` sorts probed records by measured latency. |

### Output Schema

Each selected catalog entry produces one dataset record. The sample below is a real record from a verification run; latency and timestamps vary per run.

```json
{
  "status": "OK",
  "apiName": "Axolotl",
  "category": "Animals",
  "categorySlug": "animals",
  "description": "Collection of axolotl pictures and facts",
  "homepageUrl": "https://theaxolotlapi.netlify.app/",
  "domain": "theaxolotlapi.netlify.app",
  "listedScheme": "https",
  "authType": "NONE",
  "authRaw": "No",
  "requiresAuth": false,
  "listedHttps": "YES",
  "listedCors": "NO",
  "isSponsoredSection": false,
  "healthStatus": "HEALTHY",
  "httpStatus": 200,
  "latencyMs": 1608,
  "finalUrl": "https://theaxolotlapi.netlify.app/",
  "redirectCount": 0,
  "finalScheme": "https",
  "contentType": "text/html; charset=UTF-8",
  "healthError": null,
  "checkedAt": "2026-10-23T00:40:20.942Z",
  "sourceList": "public-apis/public-apis",
  "sourceUrl": "https://raw.githubusercontent.com/public-apis/public-apis/master/README.md",
  "scrapedAt": "2026-10-23T00:40:20.942Z"
}
```

#### Field Reference

| Field | Type | Nullable | Description |
|---|---|---|---|
| `status` | string | No | `OK` for catalog records, `NOT_FOUND_OR_ERROR` for diagnostic records. |
| `apiName` | string | Yes | API name exactly as listed in the catalog. Null on diagnostic records. |
| `category` | string | Yes | Catalog category heading the entry belongs to. |
| `categorySlug` | string | Yes | Slug form of the category, for example `science-and-math`. |
| `description` | string | Yes | Catalog description with markup, link syntax and pictographs removed. |
| `homepageUrl` | string | Yes | URL listed in the catalog. This is the entry's listed site, usually a homepage or documentation page, not a guaranteed API base URL. |
| `domain` | string | Yes | Hostname of the listed URL. |
| `listedScheme` | string | Yes | Scheme of the listed URL, `http` or `https`. |
| `authType` | string | Yes | Normalized authentication type: `NONE`, `API_KEY`, `OAUTH`, `X_MASHAPE_KEY`, `USER_AGENT` or `UNKNOWN`. |
| `authRaw` | string | Yes | Authentication value as written in the catalog, for example `No` or `apiKey`. Null for sponsored rows. |
| `requiresAuth` | boolean | Yes | True when the listed authentication is not `NONE`. Null when the type is `UNKNOWN`. |
| `listedHttps` | string | Yes | HTTPS support as listed in the catalog: `YES`, `NO` or `UNKNOWN`. |
| `listedCors` | string | Yes | CORS support as listed in the catalog: `YES`, `NO` or `UNKNOWN`. |
| `isSponsoredSection` | boolean | Yes | True when the entry belongs to the sponsored catalog section. Only present when `includeSponsored` is enabled. |
| `healthStatus` | string | Yes | Probe classification: `HEALTHY`, `DEGRADED`, `UNREACHABLE` or `NOT_CHECKED`. See the Health Classification section. |
| `httpStatus` | integer | Yes | Final HTTP status code after redirects. Null when no response was received or probing was disabled. |
| `latencyMs` | integer | Yes | Total probe time in milliseconds, including followed redirects. |
| `finalUrl` | string | Yes | URL that produced the final response. Null when probing was disabled. |
| `redirectCount` | integer | Yes | Number of redirects followed, up to 5. |
| `finalScheme` | string | Yes | Scheme of the final URL, `http` or `https`. Compare with `listedScheme` to find entries that still downgrade to plain HTTP. |
| `contentType` | string | Yes | `Content-Type` header of the final response. |
| `checkedAt` | string | Yes | Probe timestamp in UTC ISO 8601 format. Null when probing was disabled. |
| `healthError` | string | Yes | Probe failure detail or the non-2xx status note. Null for healthy records. |
| `sourceList` | string | Yes | Source catalog repository, always `public-apis/public-apis` in this version. |
| `sourceUrl` | string | Yes | Catalog document URL actually used for the run, which identifies the fallback mirror when one was needed. |
| `message` | string | Yes | Diagnostic message. Only set on `NOT_FOUND_OR_ERROR` records. |
| `scrapedAt` | string | No | Record creation timestamp in UTC ISO 8601 format. |

### Key-Value Store Summary

Every run stores one `SUMMARY` record in the default Key-Value Store:

| Field | Description |
|---|---|
| `startedAt`, `finishedAt` | Run window in UTC ISO 8601 format. |
| `sourceList`, `sourceUrl` | Catalog repository and the document URL used. |
| `sourceRevision` | Upstream commit `sha`, `committedAt` and `url`, or null when the commit lookup failed. |
| `totalEntriesInCatalog`, `totalCategoriesInCatalog` | Size of the catalog as parsed for this run, after the sponsored-section setting. |
| `availableCategories` | All category names present in the parsed catalog. |
| `entriesMatchingFilters` | Entries left after all filters, before the `maxApis` limit. |
| `recordsStored` | Records actually written to the dataset, after any charge limit. |
| `chargeLimitReached` | True when the run stopped early because the charged-results limit was hit. |
| `healthChecked` | Number of records probed in this run. |
| `healthCounts` | Counts per `healthStatus` value. |
| `averageLatencyMs`, `medianLatencyMs` | Latency aggregates over probed records, null when nothing was probed. |
| `byCategory` | Per-category record counts split by health outcome. |
| `byAuthType` | Record counts per normalized authentication type. |
| `filtersApplied` | The effective filter and limit settings of the run. |

### Health Classification

| Value | Meaning |
|---|---|
| `HEALTHY` | The final response after redirects had a 2xx status. |
| `DEGRADED` | A response was received but the final status was not 2xx, for example 403, 404, 429 or 500, or redirects exceeded 5 hops. |
| `UNREACHABLE` | No response was received: DNS failure, TLS failure, connection error or timeout. |
| `NOT_CHECKED` | Probing was disabled for the run (`checkHealth: false`). All probe fields are null. |

A 403 or 429 usually means the site is online but refuses automated requests. Treat `DEGRADED` as "answered, but not cleanly", not as proof that the API itself is down.

### Error and Empty-Result Handling

A single unreachable listed site never fails the run: it is reported as `UNREACHABLE` or `DEGRADED` inside its own record and the batch continues.

When the filters match nothing, the dataset receives exactly one diagnostic record and the run still succeeds:

```json
{
  "status": "NOT_FOUND_OR_ERROR",
  "apiName": null,
  "category": null,
  "message": "No catalog entries matched the supplied filters. Available categories: Animals, Anime, ...",
  "scrapedAt": "2026-10-23T00:40:20.942Z"
}
```

Filter diagnostic records out downstream with `status != "OK"`. Diagnostic records are not charged.

When every catalog source fails, the run fails after writing a diagnostic record whose `message` lists each source failure, so a GitHub outage is distinguishable from an empty filter result.

### Usage Examples

#### Apify Console

1. Open the Actor page and click **Start**.
2. Leave the input empty for a 30-record health sample in catalog order, or set `categories` to `["Weather"]` and `authTypes` to `["NONE"]` to audit no-auth weather entries.
3. For a complete catalog export, set `checkHealth` to `false` and `maxApis` to `2500`.
4. Open the **Output** tab to read dataset records, and the Key-Value Store record `SUMMARY` for aggregates and the source commit.

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/luochengfengqi~free-public-api-directory/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "categories": ["Weather", "Finance"],
    "authTypes": ["NONE"],
    "checkHealth": true,
    "maxApis": 100,
    "sortBy": "FASTEST"
  }'
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")

run = client.actor("luochengfengqi/free-public-api-directory").call(run_input={
    "categories": ["Development"],
    "keywords": ["http"],
    "checkHealth": True,
    "maxApis": 50,
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["apiName"], item["healthStatus"], item["httpStatus"], item["latencyMs"])

summary = client.key_value_store(run["defaultKeyValueStoreId"]).get_record("SUMMARY")
print(summary["value"]["healthCounts"])
```

#### Node.js

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

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });

const run = await client.actor('luochengfengqi/free-public-api-directory').call({
    categories: ['Government', 'Open Data'],
    authTypes: ['NONE'],
    checkHealth: true,
    maxApis: 200,
    healthConcurrency: 8,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
const unreachable = items.filter((item) => item.healthStatus === 'UNREACHABLE');
console.log(`${items.length} records, ${unreachable.length} unreachable`);

const summary = await client.keyValueStore(run.defaultKeyValueStoreId).getRecord('SUMMARY');
console.log(summary.value.sourceRevision);
```

### Pricing

This Actor uses pay-per-event pricing. Each API record written to the dataset is charged as one `api-record` event at $0.002 per record, whether or not health probing is enabled. Diagnostic records for unmatched filters are free. A full catalog export of about 2,200 records therefore costs about $4.40 in event charges, plus standard Apify platform usage for compute.

### Limitations and Notes

- The catalog lists homepages and documentation pages, not API base URLs with request specifications. The probe verifies that the listed site answers; it does not verify that a specific API endpoint works, that parameters are unchanged, or that a free tier still exists. Treat `HEALTHY` as "listed site reachable", never as "API contract verified". Building a callable client for an entry still requires reading that entry's own documentation.
- Listed Auth, HTTPS and CORS values are maintained by catalog contributors and can drift from reality. The probe fields (`httpStatus`, `finalUrl`, `finalScheme`) are measured live and take precedence over listed values when they disagree.
- Probe results depend on the network location of the run and on how a site treats automated requests. Geo-restricted or bot-protected sites can report `DEGRADED` or `UNREACHABLE` while working normally in a browser.
- Latency is measured to the listed site's final response headers, not to an API endpoint, and includes redirect hops. Use it for relative comparison inside one run, not as an SLA measurement.
- The catalog changes frequently. The `sourceRevision` commit in the summary identifies the exact list a run was based on; compare SHAs across runs to detect list updates.
- Probing sends one lightweight request per selected entry. Keep `healthConcurrency` moderate and avoid repeatedly probing the full catalog at short intervals.
- Entries that require an API key or OAuth are listed and probed at site level only. This Actor never registers for keys and never calls authenticated endpoints.

### Source and License

The catalog data comes from the `public-apis/public-apis` repository on GitHub, a collective list of free APIs maintained by its contributors and released under the MIT License. This Actor reads the list at run time, keeps the `sourceList` and `sourceUrl` attribution on every record, and adds filtering, normalization and live health measurements on top of the listed data. The MIT License terms of the upstream list continue to apply to the catalog fields (`apiName`, `category`, `description`, `homepageUrl` and the listed Auth, HTTPS and CORS values); see the LICENSE file in the upstream repository for the full text. Health measurements and summary aggregates are produced by this Actor at run time.

# Actor input Schema

## `categories` (type: `array`):

Catalog categories to include, for example 'Weather', 'Finance' or 'Development'. Accepts display names or slugs such as 'science-and-math'. Leave empty to include every category in the catalog.

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

Optional case-insensitive keywords matched against the API name, description, category and domain. An entry is kept when it matches ANY keyword, for example 'weather', 'exchange rate' or 'books'. Leave empty for no keyword filter.

## `authTypes` (type: `array`):

Authentication types to include as listed in the catalog: NONE (no authentication), API_KEY, OAUTH, X_MASHAPE_KEY, USER_AGENT or UNKNOWN. Leave empty to include every authentication type.

## `checkHealth` (type: `boolean`):

When enabled, each selected entry's listed URL is requested and the record gains HTTP status, latency, redirect count, final URL and a HEALTHY, DEGRADED or UNREACHABLE classification. Disable it for a fast catalog-only export.

## `maxApis` (type: `integer`):

Maximum number of catalog entries written to the dataset for this run (1 to 2500). Filters and sorting are applied before this limit. The full catalog currently holds about 2,200 entries.

## `healthConcurrency` (type: `integer`):

Maximum number of site probes in flight at the same time (1 to 12). Lower this value when probing large batches to reduce load on the listed sites.

## `healthTimeoutSeconds` (type: `integer`):

Timeout for each individual probe request in seconds (3 to 30). Sites that do not answer within this window are reported as UNREACHABLE.

## `httpsOnly` (type: `boolean`):

When enabled, only entries whose catalog row states HTTPS support are returned. This uses the value listed in the catalog, not the probed result.

## `corsSupport` (type: `string`):

Filter on the CORS value stated in the catalog: ANY keeps every entry, YES, NO and UNKNOWN keep only entries with that listed value.

## `includeSponsored` (type: `boolean`):

When enabled, the sponsored APILayer section at the top of the catalog is included. Those rows carry no Auth, HTTPS or CORS values, so their fields are reported as UNKNOWN.

## `sortBy` (type: `string`):

Order of the returned records: LIST_ORDER keeps the catalog order, NAME and CATEGORY sort before the record limit is applied, FASTEST sorts probed records by measured latency after probing.

## Actor input object example

```json
{
  "categories": [],
  "keywords": [],
  "authTypes": [],
  "checkHealth": true,
  "maxApis": 30,
  "healthConcurrency": 6,
  "healthTimeoutSeconds": 10,
  "httpsOnly": false,
  "corsSupport": "ANY",
  "includeSponsored": false,
  "sortBy": "LIST_ORDER"
}
```

# Actor output Schema

## `apis` (type: `string`):

No description

## `summary` (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 = {
    "categories": [],
    "keywords": [],
    "authTypes": [],
    "checkHealth": true,
    "maxApis": 30,
    "healthConcurrency": 6,
    "healthTimeoutSeconds": 10,
    "httpsOnly": false,
    "corsSupport": "ANY",
    "includeSponsored": false,
    "sortBy": "LIST_ORDER"
};

// Run the Actor and wait for it to finish
const run = await client.actor("luochengfengqi/free-public-api-directory").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 = {
    "categories": [],
    "keywords": [],
    "authTypes": [],
    "checkHealth": True,
    "maxApis": 30,
    "healthConcurrency": 6,
    "healthTimeoutSeconds": 10,
    "httpsOnly": False,
    "corsSupport": "ANY",
    "includeSponsored": False,
    "sortBy": "LIST_ORDER",
}

# Run the Actor and wait for it to finish
run = client.actor("luochengfengqi/free-public-api-directory").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 '{
  "categories": [],
  "keywords": [],
  "authTypes": [],
  "checkHealth": true,
  "maxApis": 30,
  "healthConcurrency": 6,
  "healthTimeoutSeconds": 10,
  "httpsOnly": false,
  "corsSupport": "ANY",
  "includeSponsored": false,
  "sortBy": "LIST_ORDER"
}' |
apify call luochengfengqi/free-public-api-directory --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,luochengfengqi/free-public-api-directory"
        }
    }
}
```

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/0tDyf3wzr4Stg4WaR/builds/WF1nMjBvw8p6yPia7/openapi.json
