# PeerTube Video Intelligence (`straightforward_hydra/peertube-video-intelligence`) Actor

Browse, search and pull channel videos from PeerTube — the open, no-key Fediverse video platform. Any instance. No key.

- **URL**: https://apify.com/straightforward\_hydra/peertube-video-intelligence.md
- **Developed by:** [Dev D](https://apify.com/straightforward_hydra) (community)
- **Categories:** Social media, Automation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 videos

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## PeerTube Video Intelligence 📹

**Browse, search, and pull channel videos from PeerTube — the open, no-key Fediverse video platform (YouTube alternative). No API key, no proxy.**

PeerTube is decentralized video hosting on the Fediverse. This actor gives you clean, structured access to any instance — or the **whole network** at once:

- 📺 **Browse videos** — most-viewed / trending / newest on an instance, with views, likes, duration, category.
- 🔎 **Search videos** — by keyword. **Set the instance to `sepiasearch.org` to search the entire PeerTube network** in one run.
- 📁 **Channel & account videos** — every video from a specific channel or account.

Perfect for **video/creator research, content aggregation, media monitoring, and building open-video apps**.

> Uses PeerTube's public **REST API** — no key, no login, pure JSON. Works on any instance.

***

### Modes

- 📺 **Videos** — browse an instance's videos.
- 🔎 **Search** — keyword search (network-wide via `sepiasearch.org`).
- 📁 **Channel** — a channel's videos.
- 👤 **Account** — an account's videos.

### Features

- ✅ **No API key, no proxy** — official PeerTube API.
- ✅ **Any instance + network-wide search** — one actor covers the whole PeerTube network.
- ✅ **Rich metadata** — views, likes/dislikes, duration, category, language, channel/host.
- ✅ **Federated** — results span many instances.

***

### Input

| Field | Description |
|---|---|
| **Instance** | Instance domain (or `sepiasearch.org` for network-wide search). |
| **Mode** | videos / search / channel / account. |
| **Query** | Search text (search mode). |
| **Handle** | `name@instance` (channel/account modes). |
| **Sort** | Views / trending / hot / likes / newest / oldest. |
| **NSFW** | Exclude / include / only. |
| **Category IDs / Language codes** | Filters (videos mode). |
| **Max results** | Cap on videos. |

#### Example — network-wide search

```json
{
  "instance": "sepiasearch.org",
  "mode": "search",
  "query": "blender tutorial",
  "sort": "-views"
}
```

#### Example — most-viewed Science & Tech videos on an instance

```json
{
  "instance": "framatube.org",
  "mode": "videos",
  "sort": "-views",
  "categoryOneOf": ["15"]
}
```

### Output

```json
{
  "id": 1234,
  "uuid": "9c9de5e8-…",
  "name": "What is PeerTube?",
  "description": "…",
  "duration_seconds": 113,
  "views": 146425,
  "likes": 33,
  "dislikes": 0,
  "category": "Science & Technology",
  "language": "en",
  "channel_display_name": "A propos de PeerTube",
  "channel_host": "framatube.org",
  "account_name": "framasoft",
  "published_at": "2018-10-01T10:00:00Z",
  "thumbnail_url": "https://framatube.org/lazy-static/thumbnails/…",
  "url": "https://framatube.org/videos/watch/9c9de5e8-…",
  "instance": "framatube.org"
}
```

### Run it on a schedule

Track a channel's new uploads or a topic's trending videos over time — pipe to a sheet, database or webhook.

### Notes & limitations

- Uses **public** endpoints — no key.
- Common PeerTube category IDs: 1 Music, 2 Films, 3 Vehicles, 15 Science & Technology, 11 News & Politics, 13 Education, 15 How To.
- `sepiasearch.org` searches the whole network; a normal instance shows its own + federated content.
- Data source: the queried PeerTube instance(s).

***

#### Keywords

PeerTube, Fediverse, video, YouTube alternative, decentralized video, ActivityPub, video scraper, video search, creator research, media monitoring, open video, channel videos, video metadata, views, SepiaSearch, content aggregation, streaming, self-hosted video, no key, open API.

# Actor input Schema

## `instance` (type: `string`):

PeerTube instance domain, e.g. "framatube.org", "tilvids.com". TIP: set to "sepiasearch.org" to search across the WHOLE PeerTube network in search mode.

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

videos = browse instance videos; search = search by keyword; channel/account = a channel's or account's videos.

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

Text to search for.

## `handle` (type: `string`):

For channel/account modes, e.g. "myChannel@framatube.org".

## `sort` (type: `string`):

Sort order.

## `nsfw` (type: `string`):

Include NSFW videos.

## `categoryOneOf` (type: `array`):

Filter by PeerTube category IDs, e.g. \["15"] (Science & Technology), \["1"] (Music), \["2"] (Films). Numeric IDs.

## `languageOneOf` (type: `array`):

Filter by language, e.g. \["en", "fr"].

## `maxResults` (type: `integer`):

Maximum number of videos to return.

## Actor input object example

```json
{
  "instance": "framatube.org",
  "mode": "videos",
  "sort": "-views",
  "nsfw": "false",
  "maxResults": 200
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("straightforward_hydra/peertube-video-intelligence").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("straightforward_hydra/peertube-video-intelligence").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call straightforward_hydra/peertube-video-intelligence --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=straightforward_hydra/peertube-video-intelligence",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Mef3XmP3XgjHqIalW/builds/fOJHvrpw6UkmFnex5/openapi.json
