Brave検索による構造化データ抽出(Bright Data MCP + Google Gemini)
上級
これはAI, Marketing分野の自動化ワークフローで、24個のノードを含みます。主にSet, Switch, Function, McpClient, HttpRequestなどのノードを使用、AI技術を活用したスマート自動化を実現。 Bright Data MCPとGoogle Geminiを使用してBrave検索から構造化されたデータを抽出
前提条件
- •ターゲットAPIの認証情報が必要な場合あり
- •Google Sheets API認証情報
- •Google Gemini API Key
使用ノード (24)
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"id": "eqvDSknjbg3YLzxM",
"meta": {
"instanceId": "885b4fb4a6a9c2cb5621429a7b972df0d05bb724c20ac7dac7171b62f1c7ef40",
"templateCredsSetupCompleted": true
},
"name": "Brave Search (Image,Video, News, All) and Structured Data Extract with Bright Data MCP & Google Gemini",
"tags": [
{
"id": "Kujft2FOjmOVQAmJ",
"name": "Engineering",
"createdAt": "2025-04-09T01:31:00.558Z",
"updatedAt": "2025-04-09T01:31:00.558Z"
},
{
"id": "ZOwtAMLepQaGW76t",
"name": "Building Blocks",
"createdAt": "2025-04-13T15:23:40.462Z",
"updatedAt": "2025-04-13T15:23:40.462Z"
},
{
"id": "ddPkw7Hg5dZhQu2w",
"name": "AI",
"createdAt": "2025-04-13T05:38:08.053Z",
"updatedAt": "2025-04-13T05:38:08.053Z"
},
{
"id": "qpxJxOMCv2x7Op5c",
"name": "SERP",
"createdAt": "2025-04-03T15:37:19.686Z",
"updatedAt": "2025-04-03T15:37:19.686Z"
}
],
"nodes": [
{
"id": "70d29e8e-3e2d-4177-abdc-d3da8d6b60e4",
"name": "「Test workflow」クリック時",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-780,
0
],
"parameters": {},
"typeVersion": 1
},
{
"id": "e3b06669-954e-494f-8b59-080d9d7083a8",
"name": "Google Gemini チャットモデル",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
600,
220
],
"parameters": {
"options": {},
"modelName": "models/gemini-2.0-flash-exp"
},
"credentials": {
"googlePalmApi": {
"id": "YeO7dHZnuGBVQKVZ",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1
},
{
"id": "2c8c3b3a-edaf-42f2-8f3b-1c3a96bd4c7d",
"name": "構造化データ抽出ツール",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
600,
0
],
"parameters": {
"text": "=Extract structured data from the search result. \n\n{{ $json.search_response }}",
"promptType": "define",
"hasOutputParser": true
},
"retryOnFail": true,
"typeVersion": 1.6
},
{
"id": "b2cb439e-eccc-40ad-97db-265bcd9f7a73",
"name": "画像検索の入力設定",
"type": "n8n-nodes-base.set",
"position": [
-120,
-300
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "0b0e9335-56d4-4705-b61b-de0dc9c8ae6d",
"name": "search_base_url",
"type": "string",
"value": "https://search.brave.com/images"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "df89cc2e-1b75-4176-a66d-f17d5076bb17",
"name": "構造化出力パーサー",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
780,
220
],
"parameters": {
"schemaType": "manual",
"inputSchema": "{\n \"type\": \"object\",\n \"properties\": {\n \"search_results\": {\n \"type\": \"array\",\n \"description\": \"A list of search results related to the query.\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the search result or webpage.\"\n },\n \"url\": {\n \"type\": \"string\",\n \"format\": \"uri\",\n \"description\": \"The URL of the result.\"\n },\n \"description\": {\n \"type\": \"string\",\n \"description\": \"A short description or snippet summarizing the content of the URL.\"\n }\n },\n \"required\": [\"title\", \"url\", \"description\"]\n }\n },\n \"related_queries\": {\n \"type\": \"array\",\n \"description\": \"A list of queries related to the original search, often used for refining or expanding the search.\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n },\n \"required\": [\"search_results\"]\n}\n"
},
"typeVersion": 1.2
},
{
"id": "919833cb-1add-4670-86a4-466f3df925f3",
"name": "Brave画像検索用 Bright Data MCPクライアント",
"type": "n8n-nodes-mcp.mcpClient",
"position": [
100,
-300
],
"parameters": {
"toolName": "scrape_as_html",
"operation": "executeTool",
"toolParameters": "={\n \"url\": \"{{$json.search_base_url}}?q={{encodeURI($('Set the search criteria\\'s').item.json.search_query))}}\"\n} "
},
"credentials": {
"mcpClientApi": {
"id": "JtatFSfA2kkwctYa",
"name": "MCP Client (STDIO) account"
}
},
"typeVersion": 1
},
{
"id": "d90b79cc-b878-4210-8380-794cd378ec73",
"name": "スイッチ",
"type": "n8n-nodes-base.switch",
"position": [
-340,
-21
],
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "235f2abd-b5fd-4c0a-aa63-9d8655d02dfc",
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.search_type }}",
"rightValue": "images"
}
]
}
},
{
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "4b6eb7ce-5683-48cf-8ab9-81b25693c280",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.search_type }}",
"rightValue": "videos"
}
]
}
},
{
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "312a7726-33a4-4294-9103-5a5017f36909",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.search_type }}",
"rightValue": "news"
}
]
}
},
{
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "e84e037f-89a3-48ef-b509-2ca70844ad27",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.search_type }}",
"rightValue": "all"
}
]
}
}
]
},
"options": {}
},
"typeVersion": 3.2
},
{
"id": "f20fde43-bfb3-447a-9f43-51bf952c9d7e",
"name": "動画検索の入力設定",
"type": "n8n-nodes-base.set",
"position": [
-120,
-100
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "0b0e9335-56d4-4705-b61b-de0dc9c8ae6d",
"name": "search_base_url",
"type": "string",
"value": "https://search.brave.com/video"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "b25da743-0d4b-46a2-bb51-2b8e1c533ac5",
"name": "Brave動画検索用 Bright Data MCPクライアント",
"type": "n8n-nodes-mcp.mcpClient",
"position": [
100,
-100
],
"parameters": {
"toolName": "scrape_as_html",
"operation": "executeTool",
"toolParameters": "={\n \"url\": \"{{$json.search_base_url}}?q={{encodeURI($('Set the search criteria\\'s').item.json.search_query))}}\"\n} "
},
"credentials": {
"mcpClientApi": {
"id": "JtatFSfA2kkwctYa",
"name": "MCP Client (STDIO) account"
}
},
"typeVersion": 1
},
{
"id": "28e51b1c-a4f3-4d95-af12-d4bd1219cfa2",
"name": "検索レスポンス設定",
"type": "n8n-nodes-base.set",
"position": [
380,
0
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "74d82a2b-0219-4966-80f2-3144c7c5e4c7",
"name": "search_response",
"type": "string",
"value": "={{ $json.result.content[0].text }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "98d38078-4708-4d22-a8be-e50a4701ea75",
"name": "付箋2",
"type": "n8n-nodes-base.stickyNote",
"position": [
120,
-480
],
"parameters": {
"color": 3,
"width": 440,
"height": 120,
"content": "## Disclaimer\nThis template is only available on n8n self-hosted as it's making use of the community node for MCP Client."
},
"typeVersion": 1
},
{
"id": "43138034-35ad-43fd-b67e-69942e1b061b",
"name": "付箋4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-340,
-580
],
"parameters": {
"color": 5,
"width": 440,
"height": 220,
"content": "## LLM Usages\n\nGoogle Gemini LLM is being utilized for the structured data extraction handling."
},
"typeVersion": 1
},
{
"id": "eb731e47-779e-40bc-8a83-126d1b03a70b",
"name": "付箋5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-800,
-980
],
"parameters": {
"color": 7,
"width": 440,
"height": 360,
"content": "## Logo\n\n\n\n"
},
"typeVersion": 1
},
{
"id": "5581a950-075d-4d4d-9f97-fd65e71cc6ff",
"name": "付箋3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-800,
-580
],
"parameters": {
"width": 440,
"height": 320,
"content": "## Note\n\nDeals with the Brave Search by leveraging the Bright Data MCP Client.\n\n**Please make sure to set the search type with videos, images, news, all based on your search input needs**\n\n**Please make sure to update the Initiate a Webhook Notification for the Structured Data node with the Webhook of your interest**"
},
"typeVersion": 1
},
{
"id": "a5afb97c-0fbf-48b1-b598-fbca46e3df96",
"name": "ニュース検索の入力フィールド設定",
"type": "n8n-nodes-base.set",
"position": [
-120,
100
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "0b0e9335-56d4-4705-b61b-de0dc9c8ae6d",
"name": "search_base_url",
"type": "string",
"value": "https://search.brave.com/news"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "0dcd6a1b-7968-40da-ad27-4d39fadc243a",
"name": "検索条件設定",
"type": "n8n-nodes-base.set",
"position": [
-560,
0
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "9852f865-49b9-4672-9454-4bcc51173445",
"name": "search_type",
"type": "string",
"value": "news"
},
{
"id": "643626c4-6d3e-4609-be12-5e7c0c7afe1d",
"name": "search_query",
"type": "string",
"value": "bright+data&source=web&lang=en-in"
},
{
"id": "4a0fc0eb-2638-4441-9eb1-51c29dd7d1b4",
"name": "json_search_query",
"type": "string",
"value": "{ \"query\": \"What are the latest funding rounds for AI startups?\", \"include_domains\": [ \"crunchbase.com\", \"techcrunch.com\", \"pitchbook.com\" ] }"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "2c686701-f3fa-4bf4-bdea-b11dce7b2862",
"name": "Braveニュース検索用 Bright Data MCPクライアント",
"type": "n8n-nodes-mcp.mcpClient",
"position": [
100,
100
],
"parameters": {
"toolName": "scrape_as_html",
"operation": "executeTool",
"toolParameters": "={\n \"url\": \"{{$json.search_base_url}}?q={{encodeURI($('Set the search criteria\\'s').item.json.search_query)}}\"\n} "
},
"credentials": {
"mcpClientApi": {
"id": "JtatFSfA2kkwctYa",
"name": "MCP Client (STDIO) account"
}
},
"typeVersion": 1
},
{
"id": "725c7c7e-6422-4bcb-8bb1-441766741c96",
"name": "Brave全検索用 Bright Data MCPクライアント",
"type": "n8n-nodes-mcp.mcpClient",
"position": [
100,
300
],
"parameters": {
"toolName": "scrape_as_html",
"operation": "executeTool",
"toolParameters": "={\n \"url\": \"{{$json.search_base_url}}?q={{encodeURI($('Set the search criteria\\'s').item.json.search_query)}}\"\n} "
},
"credentials": {
"mcpClientApi": {
"id": "JtatFSfA2kkwctYa",
"name": "MCP Client (STDIO) account"
}
},
"typeVersion": 1
},
{
"id": "a6843bfe-f649-4ab8-9208-1d3119e811c5",
"name": "全検索の入力フィールド設定",
"type": "n8n-nodes-base.set",
"position": [
-120,
300
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "0b0e9335-56d4-4705-b61b-de0dc9c8ae6d",
"name": "search_base_url",
"type": "string",
"value": "https://search.brave.com/search"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "c8fa6490-f0db-400c-8283-e8f9120e6481",
"name": "Google スプレッドシート",
"type": "n8n-nodes-base.googleSheets",
"position": [
1060,
-180
],
"parameters": {
"columns": {
"value": {
"Output": "={{ $json.output.search_results.toJsonString() }}"
},
"schema": [
{
"id": "Output",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Output",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"Output"
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "appendOrUpdate",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1KE5v8RZ3BouTzoT3D4CeU8whe-kWpZcq0VMSalNrxFg/edit#gid=0",
"cachedResultName": "Sheet1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1KE5v8RZ3BouTzoT3D4CeU8whe-kWpZcq0VMSalNrxFg",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1KE5v8RZ3BouTzoT3D4CeU8whe-kWpZcq0VMSalNrxFg/edit?usp=drivesdk",
"cachedResultName": "Brave Search Results"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "Zjoxh2BUZ6VXGQhA",
"name": "Google Sheets account"
}
},
"typeVersion": 4.5
},
{
"id": "6d51e57a-1303-46a0-95ce-80d3a17c30db",
"name": "構造化データ抽出用バイナリデータ作成",
"type": "n8n-nodes-base.function",
"position": [
1060,
20
],
"parameters": {
"functionCode": "items[0].binary = {\n data: {\n data: new Buffer(JSON.stringify(items[0].json, null, 2)).toString('base64')\n }\n};\nreturn items;"
},
"typeVersion": 1
},
{
"id": "7f5d181b-18bc-4bb4-8ae9-bc2e05137127",
"name": "構造化コンテンツをディスクに書き込み",
"type": "n8n-nodes-base.readWriteFile",
"position": [
1280,
20
],
"parameters": {
"options": {},
"fileName": "=d:\\Brave-Search-Result-{{new Date().toISOString().replaceAll(\":\",\".\")}}.json",
"operation": "write"
},
"typeVersion": 1
},
{
"id": "fa6143c9-3312-4890-a490-3bc3db355c53",
"name": "構造化データのWebhook通知を開始",
"type": "n8n-nodes-base.httpRequest",
"position": [
1060,
220
],
"parameters": {
"url": "https://webhook.site/24878284-919d-4d39-bff0-5f36bfae17b6",
"options": {},
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "summary",
"value": "={{ $json.output.search_results.toJsonString() }}"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "cdea8e7d-f513-45fa-b7cf-3b9507d47fda",
"name": "付箋",
"type": "n8n-nodes-base.stickyNote",
"position": [
540,
-220
],
"parameters": {
"color": 4,
"width": 940,
"height": 660,
"content": "## Structured Data and Output Handling\n"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "3a04231b-455b-48ad-8403-915a6851d84b",
"connections": {
"d90b79cc-b878-4210-8380-794cd378ec73": {
"main": [
[
{
"node": "b2cb439e-eccc-40ad-97db-265bcd9f7a73",
"type": "main",
"index": 0
}
],
[
{
"node": "f20fde43-bfb3-447a-9f43-51bf952c9d7e",
"type": "main",
"index": 0
}
],
[
{
"node": "a5afb97c-0fbf-48b1-b598-fbca46e3df96",
"type": "main",
"index": 0
}
],
[
{
"node": "a6843bfe-f649-4ab8-9208-1d3119e811c5",
"type": "main",
"index": 0
}
]
]
},
"28e51b1c-a4f3-4d95-af12-d4bd1219cfa2": {
"main": [
[
{
"node": "2c8c3b3a-edaf-42f2-8f3b-1c3a96bd4c7d",
"type": "main",
"index": 0
}
]
]
},
"e3b06669-954e-494f-8b59-080d9d7083a8": {
"ai_languageModel": [
[
{
"node": "2c8c3b3a-edaf-42f2-8f3b-1c3a96bd4c7d",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"df89cc2e-1b75-4176-a66d-f17d5076bb17": {
"ai_outputParser": [
[
{
"node": "2c8c3b3a-edaf-42f2-8f3b-1c3a96bd4c7d",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"0dcd6a1b-7968-40da-ad27-4d39fadc243a": {
"main": [
[
{
"node": "d90b79cc-b878-4210-8380-794cd378ec73",
"type": "main",
"index": 0
}
]
]
},
"2c8c3b3a-edaf-42f2-8f3b-1c3a96bd4c7d": {
"main": [
[
{
"node": "c8fa6490-f0db-400c-8283-e8f9120e6481",
"type": "main",
"index": 0
},
{
"node": "6d51e57a-1303-46a0-95ce-80d3a17c30db",
"type": "main",
"index": 0
},
{
"node": "fa6143c9-3312-4890-a490-3bc3db355c53",
"type": "main",
"index": 0
}
]
]
},
"b2cb439e-eccc-40ad-97db-265bcd9f7a73": {
"main": [
[
{
"node": "919833cb-1add-4670-86a4-466f3df925f3",
"type": "main",
"index": 0
}
]
]
},
"f20fde43-bfb3-447a-9f43-51bf952c9d7e": {
"main": [
[
{
"node": "b25da743-0d4b-46a2-bb51-2b8e1c533ac5",
"type": "main",
"index": 0
}
]
]
},
"70d29e8e-3e2d-4177-abdc-d3da8d6b60e4": {
"main": [
[
{
"node": "0dcd6a1b-7968-40da-ad27-4d39fadc243a",
"type": "main",
"index": 0
}
]
]
},
"a6843bfe-f649-4ab8-9208-1d3119e811c5": {
"main": [
[
{
"node": "725c7c7e-6422-4bcb-8bb1-441766741c96",
"type": "main",
"index": 0
}
]
]
},
"a5afb97c-0fbf-48b1-b598-fbca46e3df96": {
"main": [
[
{
"node": "2c686701-f3fa-4bf4-bdea-b11dce7b2862",
"type": "main",
"index": 0
}
]
]
},
"725c7c7e-6422-4bcb-8bb1-441766741c96": {
"main": [
[
{
"node": "28e51b1c-a4f3-4d95-af12-d4bd1219cfa2",
"type": "main",
"index": 0
}
]
]
},
"2c686701-f3fa-4bf4-bdea-b11dce7b2862": {
"main": [
[
{
"node": "28e51b1c-a4f3-4d95-af12-d4bd1219cfa2",
"type": "main",
"index": 0
}
]
]
},
"919833cb-1add-4670-86a4-466f3df925f3": {
"main": [
[
{
"node": "28e51b1c-a4f3-4d95-af12-d4bd1219cfa2",
"type": "main",
"index": 0
}
]
]
},
"b25da743-0d4b-46a2-bb51-2b8e1c533ac5": {
"main": [
[
{
"node": "28e51b1c-a4f3-4d95-af12-d4bd1219cfa2",
"type": "main",
"index": 0
}
]
]
},
"6d51e57a-1303-46a0-95ce-80d3a17c30db": {
"main": [
[
{
"node": "7f5d181b-18bc-4bb4-8ae9-bc2e05137127",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
上級 - 人工知能, マーケティング
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
AIアゲント駆動のProduct Huntデータ抽出と検索(Bright DataとGoogle Geminiを使用)
Bright Data MCPとGoogle Gemini AIを使ってProduct Huntデータをクロールして検索
Set
Function
Mcp Client
+
Set
Function
Mcp Client
21 ノードRanjan Dailata
人工知能
DNB企業検索と抽出:Bright DataとOpenAI 4o miniを使用
Bright Data そして OpenAI 4o mini に基づく DNB 社検索と抽出
Set
Function
Mcp Client
+
Set
Function
Mcp Client
18 ノードRanjan Dailata
プロダクト
Amazon製品の価格下落をBright Dataで抽出・要約・分析
Bright DataとGoogle GeminiでAmazonの価格下落情報を抽出・要約・分析
Set
Wait
Merge
+
Set
Wait
Merge
26 ノードRanjan Dailata
人工知能
Bright Data MCPとGoogle Geminiを使用した法の事例研究抽出ツール、データマイニングツール
Bright Data MCPとGoogle Geminiを使用した法のケーススタディ抽出データマイニングツール
Set
Code
Wait
+
Set
Code
Wait
22 ノードRanjan Dailata
人工知能
Bright Dataを使用したブランドコンテンツの抽出・要約・感情分析
Bright DataとGoogle Geminiを使用してブランドコンテンツを抽出および分析
Set
Function
Http Request
+
Set
Function
Http Request
23 ノードRanjan Dailata
人工知能
Bright Data MCPサーバーとGoogle Geminiを使ったLinkedInウェブスクレイピング
Bright Data MCPサーバーとGoogle Geminiを使用したLinkedInデータの抽出・変換
Set
Code
Merge
+
Set
Code
Merge
20 ノードRanjan Dailata
人工知能
ワークフロー情報
難易度
上級
ノード数24
カテゴリー2
ノードタイプ12
作成者
Ranjan Dailata
@ranjancseA Professional based out of India specialized in handling AI-powered automations. Contact me at ranjancse@gmail.com
外部リンク
n8n.ioで表示 →
このワークフローを共有