
Track YouTube Trends by Country and Language with RapidAPI & Google Sheets
説明
Categories
📢 Marketing🤖 AI & Machine Learning
Nodes Used
n8n-nodes-base.coden8n-nodes-base.stickyNoten8n-nodes-base.stickyNoten8n-nodes-base.stickyNoten8n-nodes-base.stickyNoten8n-nodes-base.stickyNoten8n-nodes-base.formTriggern8n-nodes-base.httpRequestn8n-nodes-base.googleSheets
Price無料
Views0
最終更新11/28/2025
workflow.json
{
"meta": {
"instanceId": "60c025075753afcab9f803964b4caaca9402f435deb4efafbb8e3b93b54d8752",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "33a8f510-6783-405c-ba7d-7e47f0a2f60a",
"name": "On form submission",
"type": "n8n-nodes-base.formTrigger",
"position": [
0,
0
],
"webhookId": "1e7c6523-c596-4fff-b8aa-d449dc4ef1f8",
"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": {
"id": "Rt0RWApx8PL9t0RF",
"name": "Google Docs account"
}
},
"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": "# 🧠 YouTube Trend Finder – 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## 🔗 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
}
],
"pinData": {},
"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
}
]
]
}
}
}