This workflow corresponds to n8n.io template #7378 — we link there as the canonical source.
This workflow follows the Form Trigger → Google Sheets recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"meta": {
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "33a8f510-6783-405c-ba7d-7e47f0a2f60a",
"name": "On form submission",
"type": "n8n-nodes-base.formTrigger",
"position": [
0,
0
],
"parameters": {
"options": {},
"formTitle": "YouTube Trend Finder",
"formFields": {
"values": [
{
"fieldLabel": "country",
"requiredField": true
},
{
"fieldLabel": "language",
"requiredField": true
}
]
},
"formDescription": "YouTube Trend Finder"
},
"typeVersion": 2.2
},
{
"id": "b4b4f333-e1e0-4975-ae38-dbe97ec64d58",
"name": "Re format output",
"type": "n8n-nodes-base.code",
"position": [
600,
0
],
"parameters": {
"jsCode": "return $input.first().json.data"
},
"typeVersion": 2
},
{
"id": "2dd88e60-e845-4f27-8eed-eb8a9e6f9b33",
"name": "Trend Finder Api Request ",
"type": "n8n-nodes-base.httpRequest",
"position": [
300,
0
],
"parameters": {
"url": "https://youtube-trend-finder.p.rapidapi.com/trend.php",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"sendHeaders": true,
"bodyParameters": {
"parameters": [
{
"name": "country",
"value": "={{ $json.country }}"
},
{
"name": "language",
"value": "={{ $json.language }}"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "x-rapidapi-host",
"value": "youtube-trend-finder.p.rapidapi.com"
},
{
"name": "x-rapidapi-key",
"value": "your key"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "93499909-4c8e-4e78-be48-3ce16b918f39",
"name": "Google Sheets",
"type": "n8n-nodes-base.googleSheets",
"position": [
840,
0
],
"parameters": {
"columns": {
"value": {},
"schema": [
{
"id": "thumbnail",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "thumbnail",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "title",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "title",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "link",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "link",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "tags",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "tags",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "autoMapInputData",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "append",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "",
"cachedResultName": "Sheet1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1GtSSz6EiZBDdRUfjlkN3VOsbHGsjDz2jRqiZKSBwRyc",
"cachedResultUrl": "",
"cachedResultName": "Yt Trend"
},
"authentication": "serviceAccount"
},
"credentials": {
"googleApi": {
"name": "<your credential>"
}
},
"typeVersion": 4.6
},
{
"id": "1ed9b35d-ca25-427e-bded-46365399e48b",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-780,
-260
],
"parameters": {
"width": 600,
"height": 620,
"content": "# \ud83e\udde0 YouTube Trend Finder \u2013 Workflow Summary\n\n**Description:** \nThis workflow fetches trending YouTube videos based on the selected country and language, and logs the results in a Google Sheet.\n\n---\n\n## \ud83d\udd17 Nodes Overview\n\n| Node Name | Type | Description |\n|---------------------------|-----------------------------|-----------------------------------------------------------------------------|\n| **On form submission** | `Form Trigger` | Displays a form to collect `country` and `language` input from the user. |\n| **Trend Finder API Request** | `HTTP Request` | Sends the collected input to the RapidAPI YouTube Trend Finder API. |\n| **Re format output** | `Code` | Extracts and reformats the API response data for easier processing. |\n| **Google Sheets** | `Google Sheets (Append)` | Appends the trending video data (thumbnail, title, link, tags) to a sheet. |\n"
},
"typeVersion": 1
},
{
"id": "f123eef9-866b-4bdb-9203-00f951d9bed2",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-80,
-240
],
"parameters": {
"height": 420,
"content": "## 1. **On form submission** (`Form Trigger`)\n- Presents a web form with required fields: `country` and `language`.\n- Triggers the workflow when the form is submitted by the user."
},
"typeVersion": 1
},
{
"id": "cfa17b85-3697-427d-af93-ca84c869e22c",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
220,
-240
],
"parameters": {
"height": 420,
"content": "## 2. **Trend Finder API Request** (`HTTP Request`)\n- Sends a `POST` request to the YouTube Trend Finder API on RapidAPI.\n- Passes form input (`country` and `language`) as multipart form data.\n"
},
"typeVersion": 1
},
{
"id": "bf77fd01-9d9e-4f23-a911-a3dd4c85d165",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
500,
-240
],
"parameters": {
"height": 420,
"content": "## 3. **Re format output** (`Code`)\n- Extracts the relevant data (`thumbnail`, `title`, `link`, `tags`) from the API response.\n- Prepares the data in a simplified format for downstream processing.\n"
},
"typeVersion": 1
},
{
"id": "61c88d9f-3a1f-49f3-8281-e4ce014b5a11",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
780,
-240
],
"parameters": {
"height": 420,
"content": "## 4. **Google Sheets** (`Append to Sheet`)\n- Appends the formatted trending video data to a connected Google Sheet.\n- Each row contains video details like title, link, tags, and thumbnail."
},
"typeVersion": 1
}
],
"connections": {
"Re format output": {
"main": [
[
{
"node": "Google Sheets",
"type": "main",
"index": 0
}
]
]
},
"On form submission": {
"main": [
[
{
"node": "Trend Finder Api Request ",
"type": "main",
"index": 0
}
]
]
},
"Trend Finder Api Request ": {
"main": [
[
{
"node": "Re format output",
"type": "main",
"index": 0
}
]
]
}
}
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
googleApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Description: Easily discover trending YouTube videos by country and language using this automated n8n workflow. The flow leverages the YouTube Trend Finder API and logs insights to Google Sheets — ideal for content creators, marketers, and researchers.
Source: https://n8n.io/workflows/7378/ — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This automated workflow allows seamless conversion of YouTube videos to MP3, using the YouTube to MP3 Downloader API. The converted MP3 files are uploaded to Google Drive, and all relevant conversion
Convert TikTok videos to MP4 , MP3 (without watermark), upload to Google Drive, and log conversion attempts into Google Sheets automatically — powered by TikTok Download Audio Video API.
Easily convert Facebook videos into downloadable MP4 files using Facebook Video Downloader API. This n8n workflow automates fetching videos, downloading them, uploading them to Google Drive, and loggi
This n8n workflow enables users to convert Instagram video links into downloadable MP4 files, store them in Google Drive, and log the results (success or failure) in Google Sheets. On form submission
A comprehensive n8n automation that scrapes TikTok influencer profiles using Bright Data's TikTok dataset and automatically saves detailed profile information to Google Sheets.