MCP
Veille YouTube pour les équipes médias, recherche et contenu MCP Server
Outils MCP pour YouTube via cloud-google1
URL de base
https://mcp.pressmonitor.com/youtube/v1 Authentification
Les appels MCP utilisent également des jetons Bearer dans les requêtes JSON-RPC 2.0.
Authorization: Bearer YOUR_TOKEN Découvrir les outils
Commencez par lister les outils exposés par le serveur MCP.
curl -X POST \ 'https://mcp.pressmonitor.com/youtube/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' const response = await fetch('https://mcp.pressmonitor.com/youtube/v1', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'tools/list' }) }); console.log(await response.json()); import requests payload = { 'jsonrpc': '2.0', 'id': 1, 'method': 'tools/list' } response = requests.post( 'https://mcp.pressmonitor.com/youtube/v1', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) outil
search Recherche
Rechercher des vidéos YouTube
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| query_text | string | Oui | Texte de la requête de recherche |
| num | string | Non | Nombre maximum de résultats |
| order | string | Non | Ordre de tri |
| event-type | string | Non | Filtre par type d'événement en direct |
| token | string | Non | Jeton de pagination |
| country_code | string | Non | Code de région |
| lang_code | string | Non | Code langue de pertinence |
Exemples de code
curl -X POST \ 'https://mcp.pressmonitor.com/youtube/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search","arguments":{"query_text":"SOME_STRING_VALUE","num":20,"order":"SOME_STRING_VALUE","event-type":"SOME_STRING_VALUE","token":"SOME_STRING_VALUE","country_code":"SOME_STRING_VALUE","lang_code":"SOME_STRING_VALUE"}}}' const payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "search", "arguments": { "query_text": "SOME_STRING_VALUE", "num": 20, "order": "SOME_STRING_VALUE", "event-type": "SOME_STRING_VALUE", "token": "SOME_STRING_VALUE", "country_code": "SOME_STRING_VALUE", "lang_code": "SOME_STRING_VALUE" } } }; const response = await fetch('https://mcp.pressmonitor.com/youtube/v1', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify(payload) }); console.log(await response.json()); import requests payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "search", "arguments": { "query_text": "SOME_STRING_VALUE", "num": 20, "order": "SOME_STRING_VALUE", "event-type": "SOME_STRING_VALUE", "token": "SOME_STRING_VALUE", "country_code": "SOME_STRING_VALUE", "lang_code": "SOME_STRING_VALUE" } } } response = requests.post( 'https://mcp.pressmonitor.com/youtube/v1', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) outil
call Appel
Appel générique à l'API YouTube Data
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| path | string | Non | Chemin API sous /youtube/v3 |
| endpoint | string | Non | Chemin API alternatif si path n'est pas utilisé |
| method | string | Non | Méthode HTTP, GET par défaut |
Exemples de code
curl -X POST \ 'https://mcp.pressmonitor.com/youtube/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"call","arguments":{"path":"SOME_STRING_VALUE","endpoint":"SOME_STRING_VALUE","method":"SOME_STRING_VALUE"}}}' const payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "call", "arguments": { "path": "SOME_STRING_VALUE", "endpoint": "SOME_STRING_VALUE", "method": "SOME_STRING_VALUE" } } }; const response = await fetch('https://mcp.pressmonitor.com/youtube/v1', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify(payload) }); console.log(await response.json()); import requests payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "call", "arguments": { "path": "SOME_STRING_VALUE", "endpoint": "SOME_STRING_VALUE", "method": "SOME_STRING_VALUE" } } } response = requests.post( 'https://mcp.pressmonitor.com/youtube/v1', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) outil
get_video_details Obtenir les détails d'une vidéo
Obtenir des informations détaillées pour une ou plusieurs vidéos
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| video_ids | string | Oui | Identifiants YouTube des vidéos, séparés par des virgules |
Exemples de code
curl -X POST \ 'https://mcp.pressmonitor.com/youtube/v1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_video_details","arguments":{"video_ids":"SOME_STRING_VALUE"}}}' const payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "get_video_details", "arguments": { "video_ids": "SOME_STRING_VALUE" } } }; const response = await fetch('https://mcp.pressmonitor.com/youtube/v1', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify(payload) }); console.log(await response.json()); import requests payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "get_video_details", "arguments": { "video_ids": "SOME_STRING_VALUE" } } } response = requests.post( 'https://mcp.pressmonitor.com/youtube/v1', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json())