# TV Channel Directory by Country (`saffo/tv-channel-directory`) Actor

TV channels worldwide by country, category and language with network, website, logo, broadcast area, video formats and EPG sources, one row per channel.

- **URL**: https://apify.com/saffo/tv-channel-directory.md
- **Developed by:** [Saffo](https://apify.com/saffo) (community)
- **Categories:** Videos, 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 $2.40 / 1,000 channels

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

## TV Channel List: TV channels by country, category and language

TV channels worldwide by country, category and language with network, website, logo, broadcast area, video formats and EPG sources, one row per channel.

### What it does

The actor returns one row per TV channel from the open [iptv-org](https://iptv-org.github.io/) channel database, filtered by country, category, language and name. Each row joins the channel with its feeds, logos and TV-guide sources: network, official website, logo link, languages, broadcast countries and regions, time zones, video formats and the guide sites that publish its schedule. The database is edited by its community and rebuilt daily; every run reads the current files.

### Who it is for

- IPTV and EPG app builders who need channel names, logos and XMLTV-style channel ids for a country, plus the guide sites that carry each schedule.
- Media-market researchers and ad sales teams who map the channels of a country by category, network and language.
- Data teams who need a clean channel lookup table to join with their own viewing, schedule or rights data.

### How to use it

1. Open the actor on [Apify Store](https://apify.com/saffo/tv-channel-directory) and go to its Input tab.
2. Change the fields you need; every field has a default (see Input below).
3. Click **Start**. The run ends at the limits below, or earlier at the "Maximum cost per run" you set.
4. When the run ends, open the Output tab: view the results as a table, or export them as JSON, CSV or Excel.

### Input

All filters are optional and combine: a channel must match every filter you set. Country codes are ISO 3166-1 alpha-2 (`GB` and `UK` both work), languages are ISO 639-3 codes such as `deu`, `eng` or `spa`, and categories are the database's ids such as `news`, `sports`, `kids`, `movies` or `music`.

| Field | Type | Default | Description |
|---|---|---|---|
| `countries` | array | `[]` | Country codes of the channels to return (ISO 3166-1 alpha-2, e.g. DE, US, GB). Empty returns every country. |
| `categories` | array | `[]` | Category ids to keep (e.g. news, sports, kids, movies, music). A channel matches when it has at least one of them. Empty keeps all. |
| `languages` | array | `[]` | ISO 639-3 language codes (e.g. deu, eng, spa). A channel matches when one of its feeds broadcasts in one of them. Empty keeps all. |
| `query` | string |  | Case-insensitive text that must appear in the channel name, an alternative name or the network name. |
| `includeClosed` | boolean | `false` | Also return channels that have closed down (with their closing date and successor). |
| `maxItems` | integer | `1000` | Stop after this many channels. At most 40000 per run. |

Example input: the active German news channels.

```json
{
  "countries": [
    "DE"
  ],
  "categories": [
    "news"
  ],
  "maxItems": 5
}
```

### Output

Each result is one dataset item:

| Field | Type | Description |
|---|---|---|
| `url` | string | Web address of the item: its own page, or the page it was read from. |
| `channelId` | string | Stable channel id of the database (name plus country suffix), usable as a join key and as an XMLTV channel id. |
| `title` | string | Title of the item as shown on the page. |
| `altNames` | array | Other names the channel is known under (former or local names). |
| `network` | string or null | Network or platform brand the channel belongs to; null when none is listed. |
| `country` | string | ISO 3166-1 alpha-2 code of the channel's home country (the database code UK is returned as GB). |
| `countryName` | string | English name of the home country. |
| `categories` | array | Category ids of the channel's programming. |
| `isActive` | boolean | True when the channel has no closing date. |
| `launched` | string or null | Launch date (YYYY-MM-DD) when the database knows it. |
| `closed` | string or null | Closing date (YYYY-MM-DD); null for active channels. |
| `replacedBy` | string or null | Channel id of the successor channel when a closed channel was replaced. |
| `website` | string or null | Official website of the channel; null when none is listed. |
| `logoUrl` | string or null | Link to the channel's current logo image (not rehosted); null when none is listed. |
| `languages` | array | ISO 639-3 codes of all languages the channel's feeds broadcast in. |
| `languageNames` | array | English names of the languages, same order as languages. |
| `broadcastCountries` | array | ISO 3166-1 alpha-2 codes of countries where any feed is broadcast (from country, subdivision and city areas). |
| `broadcastRegions` | array | Codes of multi-country regions a feed covers (e.g. EUR, MENA, WW for worldwide). |
| `timezones` | array | IANA time zones the feeds are scheduled in. |
| `videoFormats` | array | Video formats of the feeds (e.g. 576i, 720p, 1080i, 2160p). |
| `feedCount` | integer | Number of feeds (regional, HD or time-shifted versions) the channel has. |
| `epgSites` | array | Domains of public TV-guide sites that publish a programme schedule for this channel. |
| `dataUpdatedAt` | string or null | Last-Modified time of the channel file at the source (ISO 8601, UTC); null when the header is missing. |
| `fetchedAt` | string | When the page was read (ISO 8601, UTC). |

Rows are sorted by home country, then by channel name. Channel owners, stream links and adult channels are not included.

Example output (real items from a test run):

```json
[
  {
    "url": "https://iptv-org.github.io/channels/de/1730SAT1Bayern",
    "channelId": "1730SAT1Bayern.de",
    "title": "17:30 SAT.1 Bayern",
    "altNames": [],
    "network": null,
    "country": "DE",
    "countryName": "Germany",
    "categories": [
      "news"
    ],
    "isActive": true,
    "launched": null,
    "closed": null,
    "replacedBy": null,
    "website": "https://www.sat1.de/serien/regional-bayern",
    "logoUrl": "https://i.imgur.com/nVfFBbx.png",
    "languages": [
      "deu"
    ],
    "languageNames": [
      "German"
    ],
    "broadcastCountries": [
      "DE"
    ],
    "broadcastRegions": [],
    "timezones": [
      "Europe/Berlin"
    ],
    "videoFormats": [
      "576i"
    ],
    "feedCount": 1,
    "epgSites": [
      "sky.com",
      "web.magentatv.de"
    ],
    "dataUpdatedAt": "2026-11-22T00:12:51Z",
    "fetchedAt": "2026-11-22T01:41:43.834Z"
  },
  {
    "url": "https://iptv-org.github.io/channels/de/1730SAT1LIVE",
    "channelId": "1730SAT1LIVE.de",
    "title": "17:30 SAT.1 LIVE",
    "altNames": [],
    "network": null,
    "country": "DE",
    "countryName": "Germany",
    "categories": [
      "news"
    ],
    "isActive": true,
    "launched": null,
    "closed": null,
    "replacedBy": null,
    "website": "http://www.1730live.de/",
    "logoUrl": "https://i.imgur.com/kaRxLh5.png",
    "languages": [
      "deu"
    ],
    "languageNames": [
      "German"
    ],
    "broadcastCountries": [
      "DE"
    ],
    "broadcastRegions": [],
    "timezones": [
      "Europe/Berlin"
    ],
    "videoFormats": [
      "576i"
    ],
    "feedCount": 1,
    "epgSites": [
      "sky.com",
      "web.magentatv.de"
    ],
    "dataUpdatedAt": "2026-11-22T00:12:51Z",
    "fetchedAt": "2026-11-22T01:41:43.834Z"
  }
]
```

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

### Pricing

Pay per event: a small fee per run plus a fee per result saved. Platform usage is included in these prices.

| Event | When it is charged | Free plan | Bronze plan | Silver plan | Gold plan | Platinum plan | Diamond plan |
|---|---|---|---|---|---|---|---|
| Run started (`run-started`) | Flat fee once per run; covers downloading and joining the channel database. | $0.0375 | $0.03 | $0.027 | $0.024 | $0.024 | $0.024 |
| Channel (`channel`) | One TV channel saved to the dataset. | $0.0037 | $0.003 | $0.0027 | $0.0024 | $0.0024 | $0.0024 |

Example (lowest plan price): a run that saves 100 results costs $0.024 + 100 × $0.0024 = **$0.264**. That is $2.40 per 1,000 results plus $0.024 per run. You pay only for results saved to the dataset; set "Maximum cost per run" in the run options and the actor stops there.

A list of 50 channels costs $0.03 + 50 × $0.003 = $0.18. A full country with about 5,000 active channels, such as the United States, costs about $15.

### Limits

- One run saves at most 40,000 results and loads at most 7 pages. Larger jobs: split the start URLs over several runs.

- Default memory 1024 MB; no proxy.

- When a limit is reached, the run ends normally and keeps every result saved so far; the status message says which limit it was.

- One run can return the whole database (about 30,000 channels that are not adult or closed), so there are no start URLs to split; set `maxItems` to cap the list.

- The data is as complete as the community database: some channels have no website, logo, launch date or guide site, and those fields are then empty or null.

- The database writes the United Kingdom as UK; this actor returns it as GB everywhere.

- `country` is the channel's home country. Where its feeds are broadcast is listed separately in `broadcastCountries` and `broadcastRegions`, so a channel based in one country can broadcast in several.

### Use with AI agents

AI agents can call this actor as a tool through the Apify MCP server. Add it to an MCP client (Claude Desktop, Cursor, VS Code and others):

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com/?tools=saffo/tv-channel-directory"
    }
  }
}
```

An agent asked "which sports channels broadcast in Spanish in Mexico?" can call it with `countries: ["MX"]`, `categories: ["sports"]` and `languages: ["spa"]`.

Or call it over HTTP and get the results in the response:

```sh
curl -X POST "https://api.apify.com/v2/acts/saffo~tv-channel-directory/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{"countries":["DE"],"categories":["news"],"maxItems":5}'
```

### FAQ

#### How much does it cost?

You pay per event: from $0.0024 per channel plus $0.024 per run. The Pricing section lists the price on every Apify plan. Platform usage is included, and the run stops at the maximum cost per run you set.

#### Can I use it from an AI agent or my own code?

Yes. Add it to any MCP client through the Apify MCP server, or call the Apify API; the examples under Use with AI agents show both. Results come back as JSON.

#### How many results can one run return?

Up to 40,000 results from at most 7 pages. For more, split the input over several runs.

#### Does it collect personal data?

No. It saves only the fields listed under Output and leaves out names, e-mail addresses, phone numbers and profiles of private persons.

#### Where does the data come from and may I reuse it?

From the public JSON files of the [iptv-org](https://iptv-org.github.io/) database, which its project releases into the public domain under the Unlicense. This actor is not affiliated with the iptv-org project or with GitHub; it only joins and filters their files. Logos are linked, not copied: they belong to the broadcasters.

#### Does it give stream links?

No. The actor returns channel directory data only and never reads the stream list of the database.

### Related actors

More actors by the same author on Apify Store:

- [Brand Ownership Lookup: Parent Company & Ultimate Owner](https://apify.com/saffo/brand-ownership-lookup): For each brand, product or company name, returns the owning company, the chain up to the ultimate parent with its LEI and stock tickers, and its major institutional shareholders, all from Wikidata.
- [Package Health & Vulnerability Audit](https://apify.com/saffo/package-health-audit): Maintenance status, license, downloads and known vulnerabilities with fixed versions for npm, crates.io and RubyGems packages, one row per package version.
- [Google Play Developer Portfolio Tracker](https://apify.com/saffo/play-developer-portfolio): Every app a Google Play developer page lists, with rating, installs, price, monetisation, release and update dates and its change since the last run, one row per app.

### Support

Open an issue on the actor's Issues tab.

### Changelog

#### 0.1 (2026-11-22)

- First release: TV channels from the iptv-org database by country, category, language and name, with network, website, logo, languages, broadcast area, time zones, video formats and EPG sites.

# Changelog

This Actor's version history is a separate document: https://apify.com/saffo/tv-channel-directory/changelog.md

# Actor input Schema

## `countries` (type: `array`):

Country codes of the channels to return (ISO 3166-1 alpha-2, e.g. DE, US, GB). Empty returns every country.

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

Category ids to keep (e.g. news, sports, kids, movies, music). A channel matches when it has at least one of them. Empty keeps all.

## `languages` (type: `array`):

ISO 639-3 language codes (e.g. deu, eng, spa). A channel matches when one of its feeds broadcasts in one of them. Empty keeps all.

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

Case-insensitive text that must appear in the channel name, an alternative name or the network name.

## `includeClosed` (type: `boolean`):

Also return channels that have closed down (with their closing date and successor).

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

Stop after this many channels. At most 40000 per run.

## Actor input object example

```json
{
  "countries": [
    "DE"
  ],
  "categories": [
    "news"
  ],
  "languages": [],
  "includeClosed": false,
  "maxItems": 1000
}
```

# Actor output Schema

## `results` (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 = {
    "countries": [
        "DE"
    ],
    "categories": [
        "news"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("saffo/tv-channel-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 = {
    "countries": ["DE"],
    "categories": ["news"],
}

# Run the Actor and wait for it to finish
run = client.actor("saffo/tv-channel-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 '{
  "countries": [
    "DE"
  ],
  "categories": [
    "news"
  ]
}' |
apify call saffo/tv-channel-directory --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,saffo/tv-channel-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/PunK0DNhElgEyTdfh/builds/UcZ6mJQfncC6JIoIo/openapi.json
