प्लेटफ़ॉर्म इंटेलिजेंस MCP
YouTube MCP सर्वर
YouTube हर महीने 2 बिलियन से अधिक लॉगिन किए गए उपयोगकर्ताओं तक पहुँचता है, जो वीडियो, शॉर्ट्स, लाइव स्ट्रीम और पॉडकास्ट के माध्यम से महत्वपूर्ण है।
MCP संस्करण: 1.0.0 3 MCP टूल्स प्रमाणीकरण
बेस URL
https://mcp.pressmonitor.com/youtube/v1 प्रमाणीकरण
MCP कॉल भी JSON-RPC 2.0 अनुरोधों पर Bearer टोकन का उपयोग करती हैं।
Authorization: Bearer YOUR_TOKEN टूल्स खोजें
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()) tool
search YouTube वीडियो खोजें
YouTube वीडियो खोजें
तर्क
| नाम | प्रकार | आवश्यक | विवरण |
|---|---|---|---|
| query_text | string | हां | खोज क्वेरी पाठ |
| num | string | नहीं | अधिकतम परिणामों की संख्या |
| order | string | नहीं | क्रमबद्ध करने का आदेश |
| event-type | string | नहीं | लाइव इवेंट प्रकार फ़िल्टर |
| token | string | नहीं | पृष्ठांकन टोकन |
| country_code | string | नहीं | क्षेत्र कोड |
| lang_code | string | नहीं | संबंधित भाषा कोड |
कोड उदाहरण
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()) tool
call सामान्य YouTube डेटा API कॉल
सामान्य YouTube डेटा API कॉल
तर्क
| नाम | प्रकार | आवश्यक | विवरण |
|---|---|---|---|
| path | string | नहीं | /youtube/v3 के अंतर्गत API पथ |
| endpoint | string | नहीं | वैकल्पिक API पथ यदि path उपयोग में नहीं है |
| method | string | नहीं | HTTP मेथड, डिफ़ॉल्ट GET |
कोड उदाहरण
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()) tool
get_video_details एक या अधिक वीडियो के लिए विस्तृत जानकारी प्राप्त करें
एक या अधिक वीडियो के लिए विस्तृत जानकारी प्राप्त करें
तर्क
| नाम | प्रकार | आवश्यक | विवरण |
|---|---|---|---|
| video_ids | string | हां | अल्पविराम-सेparated YouTube वीडियो आईडी |
कोड उदाहरण
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())