# TikTokTube (`collegeitpro/tiktoktube`) Actor

Turn Viral TikToks into YouTube Gold on Autopilot! 🚀💰

- **URL**: https://apify.com/collegeitpro/tiktoktube.md
- **Developed by:** [n1Ls](https://apify.com/collegeitpro) (community)
- **Categories:** Automation, Social media, Videos
- **Stats:** 14 total users, 0 monthly users, 100.0% runs succeeded, 4 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$15.00 / 1,000 results

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

## TikTokTube - Apify Actor

### Overview

TikTokTube is an Apify Actor that automates the process of scraping trending TikTok videos from a specified niche and reposting them to a YouTube channel. This tool is ideal for content creators looking to streamline their video reposting workflow.

### Features

- Scrapes trending TikTok videos based on a specified niche.
- Automatically uploads videos to YouTube.
- Allows customization of video descriptions, tags, and categories.
- Secure authentication using a unique token.

### Input Schema

The Actor requires the following inputs, which can be configured via the **Apify Console** or **API**:

| Parameter          | Type     | Description |
|-------------------|---------|-------------|
| `TikTok_Niche`   | String  | The niche/category of TikTok videos to scrape (e.g., cats, gaming, travel). |
| `Unique_Token`   | String  | A unique token required for uploading videos to YouTube. Get your token here: https://gilded-mandazi-ecf8b3.netlify.app/ |
| `Youtube_Category` | Integer | The category ID for YouTube videos (e.g., 24 for Entertainment). |
| `Youtube_Description` | String | Custom description for uploaded YouTube videos. |
| `Youtube_Tags` | String  | Comma-separated list of tags for YouTube videos. |

#### Example Input

```json
{
    "TikTok_Niche": "cats",
    "Unique_Token": "your-youtube-auth-token",
    "Youtube_Category": 22,
    "Youtube_Description": "Check out this awesome cat video!",
    "Youtube_Tags": "cats,funny,animals"
}
```

### How to Use

#### 1. Deploy the Actor

- Go to the **Apify Console**.
- Navigate to your **TikTokTube Actor**.
- For getting your Unique-Token, go to this link: https://gilded-mandazi-ecf8b3.netlify.app/
- Enter the required INPUTS for the actor.
- Click on **Run**.
- Start the execution.

#### 2. API Integration

You can also run the Actor programmatically using the Apify API:

```bash
curl -X POST "https://api.apify.com/v2/actor-runs?token=YOUR_API_TOKEN" \
     -H "Content-Type: application/json" \
     -d '{
        "TikTok_Niche": "gaming",
        "Unique_Token": "your-unique-token",
        "Youtube_Category": 24,
        "Youtube_Description": "Awesome gaming content!",
        "Youtube_Tags": "gaming,streaming"
     }'
```

### Output

After execution, the Actor provides a response containing:

- Downloadable links for processed videos.
- YouTube video URLs (if uploaded successfully).
- Execution logs.

### Notes

- Ensure that you have a YouTube Channel.
- The unique token is required to authenticate YouTube uploads.
- YouTube video categories.

| Rank | Category Name       | Category ID |
|------|---------------------|-------------|
| 1    | Film & Animation     | 1           |
| 2    | Music               | 10          |
| 3    | Sports              | 17          |
| 4    | Gaming              | 20          |
| 5    | Comedy              | 23          |
| 6    | Entertainment       | 24          |
| 7    | Education           | 27          |

### Troubleshooting

#### Common Issues & Fixes

- **Invalid Token Error:** Ensure you have Youtube Channel.
- **Video Not Uploading:** Check logs and file a ticket.
- **No Videos Found:** Try changing your TikTok niche keyword. Keep it as short as possible for best results.

### Contact & Support

For issues, feature requests, or support, please reach out via:

- Apify Community: <https://forum.apify.com>
- Email: `collegeitpro@gmail.com`

***

**Developed by:** *AutoClip Studio*\
🚀 *Automating content creation, one video at a time!*

# Actor input Schema

## `TikTok_Niche` (type: `string`):

TikTok videos niche for video scraping (e.g., cats, dogs, gaming). Minimum 5 short keywords

## `Unique_Token` (type: `string`):

Get your unique token here: https://gilded-mandazi-ecf8b3.netlify.app/

## `Youtube_Category` (type: `string`):

The category for your YouTube video (e.g., 24 represents Entertainment). For more details, refer to our guide.

## `Youtube_Description` (type: `string`):

A description for your YouTube video.

## `Youtube_Tags` (type: `string`):

Comma-separated tags to categorize the YouTube video (e.g., funny,cute,cat).

## Actor input object example

```json
{
  "TikTok_Niche": "cats",
  "Unique_Token": "",
  "Youtube_Category": "22",
  "Youtube_Description": "shorts",
  "Youtube_Tags": "cat,cute"
}
```

# 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("collegeitpro/tiktoktube").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("collegeitpro/tiktoktube").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 '{}' |
apify call collegeitpro/tiktoktube --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,collegeitpro/tiktoktube"
        }
    }
}
```

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/6cjeaXfwh1qfEGzLY/builds/hmhxivoCxQhsEcrbS/openapi.json
