{"_id":"@flashdata-dev/youtube-channel","_rev":"6-cb8e2cdc2d460f383a67ef9b86333d7e","name":"@flashdata-dev/youtube-channel","dist-tags":{"latest":"0.2.1"},"versions":{"0.0.0-stage":{"name":"@flashdata-dev/youtube-channel","version":"0.0.0-stage","_id":"@flashdata-dev/youtube-channel@0.0.0-stage","stub":true,"maintainers":[{"name":"flashdata-dev","email":"rocosenyy@gmail.com"}],"dist":{"shasum":"03e9ee25ed1f645a89bcfa9a9fb80ce412265681","tarball":"https://registry.npmjs.org/@flashdata-dev/youtube-channel/-/youtube-channel-0.0.0-stage.tgz","fileCount":2,"integrity":"sha512-gTLyyYROYmYhqJqJzI4k0WonOQ0iPwWSokK2bL5f2piLWR+I9mfkV/tvpRBBZyS6SFDnhMBteauOj2Um+f3AqA==","signatures":[{"sig":"MEUCIQCHHq/+SFLz4gJlV+VZ/FD+LnWs48Hx+pU1za7XhVDbJAIgHfgj8iJ6LUImSW3AD/ernkSOjRTmFSBpGZqfWr1UuPo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":352},"_npmUser":{"name":"flashdata-dev","email":"rocosenyy@gmail.com"},"description":"Temporary package placeholder for staged publishing","directories":{}},"0.1.0":{"name":"@flashdata-dev/youtube-channel","version":"0.1.0","keywords":["youtube-channel-data","youtube-channel-videos","cli","mcp","model-context-protocol","flashdata"],"author":{"name":"FlashData","email":"support@flashdata.dev"},"license":"MIT","_id":"@flashdata-dev/youtube-channel@0.1.0","maintainers":[{"name":"flashdata-dev","email":"rocosenyy@gmail.com"}],"homepage":"https://flashdata.dev/docs/sources/youtube_channel?utm_source=npm&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube_channel-task","bugs":{"url":"https://github.com/flashdata-dev/flashdata-mcp/issues"},"bin":{"flashdata-youtube-channel":"bin/run.js"},"dist":{"shasum":"5529f804a1f6749a81f1719d38d549356a3adb34","tarball":"https://registry.npmjs.org/@flashdata-dev/youtube-channel/-/youtube-channel-0.1.0.tgz","fileCount":24,"integrity":"sha512-ocG5YLxHx1ZHEN1cdKaFwUfLnUI+6Ym8H6tCUPzd7F/M6k6xxIUYb4TJqoEcEBcocIMV8n5oXiH82oILkA4ysw==","signatures":[{"sig":"MEUCIQDsfqAdAU4Lx8jeCi/NUFhursKWhQryZVV4eHHK/OsXmAIgRe/eU1md4VcioQ0etsEDs/KdxEmZn1gUPL9Ov4y8WWU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCICW7uZlKhMZUi3wZNJIzUAjaiYzmgYVRpJ3hu5YzfajZAiAZhwdkTuXuUCptl9pAxUm/ux0h+EGvsmW4QB4tlqVAYA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":72564},"type":"commonjs","_from":"file:/Users/rocosen/Documents/GitHub/flashdata-mcp/dist/npm-reviewed/flashdata-dev-youtube-channel-0.1.0.tgz","engines":{"node":">=22.18.0"},"exports":{"./package.json":"./package.json"},"_npmUser":{"name":"flashdata-dev","email":"rocosenyy@gmail.com"},"_resolved":"/Users/rocosen/Documents/GitHub/flashdata-mcp/dist/npm-reviewed/flashdata-dev-youtube-channel-0.1.0.tgz","_integrity":"sha512-ocG5YLxHx1ZHEN1cdKaFwUfLnUI+6Ym8H6tCUPzd7F/M6k6xxIUYb4TJqoEcEBcocIMV8n5oXiH82oILkA4ysw==","repository":{"url":"git+https://github.com/flashdata-dev/flashdata-mcp.git","type":"git","directory":"npm/docs/youtube-channel"},"_npmVersion":"11.12.1","description":"Read a YouTube channel profile and recent videos by handle. Capture channel identifiers and a bounded recent-upload inventory. CLI and MCP via the paid FlashData API.","directories":{},"_nodeVersion":"25.9.0","dependencies":{"ajv":"8.20.0","axios":"1.20.0","@modelcontextprotocol/sdk":"1.31.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/youtube-channel_0.1.0_1791987304912_0.49344618630405734","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@flashdata-dev/youtube-channel","version":"0.1.1","keywords":["youtube-channel-data","youtube-channel-videos","cli","mcp","model-context-protocol","flashdata"],"author":{"name":"FlashData","email":"support@flashdata.dev"},"license":"MIT","_id":"@flashdata-dev/youtube-channel@0.1.1","maintainers":[{"name":"flashdata-dev","email":"rocosenyy@gmail.com"}],"homepage":"https://flashdata.dev/docs/sources/youtube_channel?utm_source=npm&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube_channel-task","bugs":{"url":"https://github.com/rocosen/flashdata-mcp/issues"},"bin":{"flashdata-youtube-channel":"bin/run.js"},"dist":{"shasum":"171fb651d9a3fedbec68a9db4961fe9653406f94","tarball":"https://registry.npmjs.org/@flashdata-dev/youtube-channel/-/youtube-channel-0.1.1.tgz","fileCount":24,"integrity":"sha512-iRLecMxt+mIeMQ7j1Dm8wEOGEirYJVhFwDSM29G6/hzuOlAcHTtxILRTzrdZZuDglH6Co3LRW7gKSnNhaj3inQ==","signatures":[{"sig":"MEQCIBuyKIhZ0bR925D7H/eyXxyZXAug+QTFRA23qHN7fdMDAiArsq/VffNgNR7WdeRUh2q2sRFTGzJGNCOSkRaR7lLUXg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIC96VLhIHd1oMjdLug8FTYDyuacnoQzaU5nFG0oWf3QLAiB3R1sQrY/u3f4UmZhIxWKusHJOG9GGqP3iZGqrqt0w9A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":73395},"type":"commonjs","_from":"file:/Users/rocosen/Documents/FlashData/channels/python-examples-20261019/npm-artifacts-0.1.1-verified/flashdata-dev-youtube-channel-0.1.1.tgz","engines":{"node":">=22.18.0"},"exports":{"./package.json":"./package.json"},"_npmUser":{"name":"flashdata-dev","email":"rocosenyy@gmail.com"},"_resolved":"/Users/rocosen/Documents/FlashData/channels/python-examples-20261019/npm-artifacts-0.1.1-verified/flashdata-dev-youtube-channel-0.1.1.tgz","_integrity":"sha512-iRLecMxt+mIeMQ7j1Dm8wEOGEirYJVhFwDSM29G6/hzuOlAcHTtxILRTzrdZZuDglH6Co3LRW7gKSnNhaj3inQ==","repository":{"url":"git+https://github.com/rocosen/flashdata-mcp.git","type":"git","directory":"npm/docs/youtube-channel"},"_npmVersion":"11.19.0","description":"Read a YouTube channel profile and recent videos by handle. Capture channel identifiers and a bounded recent-upload inventory. CLI and MCP via the paid FlashData API.","directories":{},"_nodeVersion":"24.21.0","dependencies":{"ajv":"8.20.0","axios":"1.20.0","@modelcontextprotocol/sdk":"1.31.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/youtube-channel_0.1.1_1792397109825_0.6012386696986134","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@flashdata-dev/youtube-channel","version":"0.1.2","keywords":["youtube-channel-data","youtube-channel-videos","cli","mcp","model-context-protocol","flashdata"],"author":{"name":"FlashData","email":"support@flashdata.dev"},"license":"MIT","_id":"@flashdata-dev/youtube-channel@0.1.2","maintainers":[{"name":"flashdata-dev","email":"rocosenyy@gmail.com"}],"homepage":"https://flashdata.dev/docs/sources/youtube_channel?utm_source=npm&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube_channel-task","bugs":{"url":"https://github.com/rocosen/flashdata-mcp/issues"},"bin":{"flashdata-youtube-channel":"bin/run.js"},"dist":{"shasum":"cc6b5dd4db3903efc624bf79a7ae9d99f3f695b1","tarball":"https://registry.npmjs.org/@flashdata-dev/youtube-channel/-/youtube-channel-0.1.2.tgz","fileCount":25,"integrity":"sha512-b7B54SR2NK9vwxCcDNCjMloSn1Ji37xRPGcPmRwFg+6olYRXn9IA/mBiYidkd8qsQA8lfFg69BweGY3DIgpiyQ==","signatures":[{"sig":"MEYCIQC2cVbCyAOe4YRscEnfohSz/17ZKXxG359hdIuRvbmaCAIhAI2st49VCkAAdaLo4gfmJNax1SRdnVSQVZWCv5qjY3fv","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIGwupgy4KPgMny0EnRPugBZMQgbeG2Du1hHoBJM6ARumAiEA+1mSF0h3nNjTa2kKhCavQdurrsnQln+DzSktabrKPgc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":72618},"type":"commonjs","_from":"file:/Users/rocosen/Documents/FlashData/channels/npm-copy-20261104/artifacts/flashdata-dev-youtube-channel-0.1.2.tgz","engines":{"node":">=22.18.0"},"exports":{"./package.json":"./package.json"},"_npmUser":{"name":"flashdata-dev","email":"rocosenyy@gmail.com"},"_resolved":"/Users/rocosen/Documents/FlashData/channels/npm-copy-20261104/artifacts/flashdata-dev-youtube-channel-0.1.2.tgz","_integrity":"sha512-b7B54SR2NK9vwxCcDNCjMloSn1Ji37xRPGcPmRwFg+6olYRXn9IA/mBiYidkd8qsQA8lfFg69BweGY3DIgpiyQ==","repository":{"url":"git+https://github.com/rocosen/flashdata-mcp.git","type":"git","directory":"npm/docs/youtube-channel"},"_npmVersion":"11.12.1","description":"Get a YouTube channel profile and recent videos by handle, with up to 100 requested videos. CLI and MCP via FlashData.","directories":{},"_nodeVersion":"25.9.0","dependencies":{"ajv":"8.20.0","axios":"1.20.0","@modelcontextprotocol/sdk":"1.32.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/youtube-channel_0.1.2_1793767784186_0.4062505931580891","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@flashdata-dev/youtube-channel","version":"0.2.0","keywords":["youtube-channel-data","youtube-channel-videos","cli","mcp","model-context-protocol","flashdata"],"author":{"name":"FlashData","email":"support@flashdata.dev"},"license":"MIT","_id":"@flashdata-dev/youtube-channel@0.2.0","maintainers":[{"name":"flashdata-dev","email":"rocosenyy@gmail.com"}],"homepage":"https://flashdata.dev/docs/sources/youtube_channel?utm_source=npm&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube_channel-task","bugs":{"url":"https://github.com/flashdatadev/flashdata-mcp/issues"},"bin":{"flashdata-youtube-channel":"bin/run.js"},"dist":{"shasum":"2af915e91c2b04b3fd90d32f1ddfa2f96f214794","tarball":"https://registry.npmjs.org/@flashdata-dev/youtube-channel/-/youtube-channel-0.2.0.tgz","fileCount":27,"integrity":"sha512-xdRQdgWt9vM5P3phnKkvL0tWqYA933REDA+CEeUxylZ827fsIudXdf53O16yrknblzNhdoq6kO8laIHX9sbYTA==","signatures":[{"sig":"MEYCIQCIoeg30kVzyt9ga9WMcbHDOO7uKb2ERA83E23xQP53MwIhAN0tjoMT/ITvRSWMTmPZWergGXYGouFsyitQ2cDGVmsy","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCICmisMwqAVqcNjqFrfAZ0BFFKgOj+5B+1oJQ02/9HgL7AiBw8xNixktxFhMSj0l54QzI/RoFXb3g8Rr10NFnWVscPA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":92994},"type":"commonjs","_from":"file:/Users/rocosen/Documents/GitHub/datanity/outputs/registry-publish-20261105/npm/flashdata-dev-youtube-channel-0.2.0.tgz","engines":{"node":">=22.18.0"},"exports":{"./package.json":"./package.json"},"_npmUser":{"name":"flashdata-dev","email":"rocosenyy@gmail.com"},"_resolved":"/Users/rocosen/Documents/GitHub/datanity/outputs/registry-publish-20261105/npm/flashdata-dev-youtube-channel-0.2.0.tgz","_integrity":"sha512-xdRQdgWt9vM5P3phnKkvL0tWqYA933REDA+CEeUxylZ827fsIudXdf53O16yrknblzNhdoq6kO8laIHX9sbYTA==","repository":{"url":"git+https://github.com/flashdatadev/flashdata-mcp.git","type":"git","directory":"npm/docs/youtube-channel"},"_npmVersion":"11.12.1","description":"Read a YouTube channel profile and recent videos by handle. Capture channel identifiers and a bounded recent-upload inventory. CLI and MCP via the paid FlashData API.","directories":{},"_nodeVersion":"25.9.0","dependencies":{"ajv":"8.20.0","axios":"1.20.0","@modelcontextprotocol/sdk":"1.32.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/youtube-channel_0.2.0_1793896294335_0.8547861036578719","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"_id":"@flashdata-dev/youtube-channel@0.2.1","bin":{"flashdata-youtube-channel":"bin/run.js"},"bugs":{"url":"https://github.com/flashdatadev/flashdata-mcp/issues"},"dist":{"shasum":"48479bfcf868b59fd29c0ea50347904c0463e25c","tarball":"https://registry.npmjs.org/@flashdata-dev/youtube-channel/-/youtube-channel-0.2.1.tgz","fileCount":27,"integrity":"sha512-CG+kwRnVoBxkLr0giMEih+dfauGNotBhVjaQyTmLeRFHkznwlZVaxDIDhxQrcRk5FdA16Cvk415hnlZ/e14vIw==","signatures":[{"sig":"MEUCIQClNf/zn1ut7IyHDPqEbkhS6reIuoTlMVPWLyUtYYBojgIgNyYBzZ509EYEGQdkA6rJ7pDec3U2iqtxAE/rZ1tIhnw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIErqEMZE0gWG38HYYG45/Vk/Y+znXTHsc70UA/CHboLGAiATQqea+usArI6tFXMWlzw0COX5686Snj8hMAfd/SAmgw=="}],"unpackedSize":91709},"name":"@flashdata-dev/youtube-channel","type":"commonjs","_from":"file:/Users/rocosen/Documents/FlashData/channels/github-npm-attribution-20261109/release/tasks/flashdata-dev-youtube-channel-0.2.1.tgz","author":{"name":"FlashData","email":"support@flashdata.dev"},"engines":{"node":">=22.18.0"},"exports":{"./package.json":"./package.json"},"license":"MIT","version":"0.2.1","_npmUser":{"name":"flashdata-dev","email":"rocosenyy@gmail.com"},"homepage":"https://flashdata.dev/docs/sources/youtube_channel?utm_source=npm&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube_channel-task","keywords":["youtube-channel-data","youtube-channel-videos","cli","mcp","model-context-protocol","flashdata"],"_resolved":"/Users/rocosen/Documents/FlashData/channels/github-npm-attribution-20261109/release/tasks/flashdata-dev-youtube-channel-0.2.1.tgz","_integrity":"sha512-CG+kwRnVoBxkLr0giMEih+dfauGNotBhVjaQyTmLeRFHkznwlZVaxDIDhxQrcRk5FdA16Cvk415hnlZ/e14vIw==","repository":{"url":"git+https://github.com/flashdatadev/flashdata-mcp.git","type":"git","directory":"npm/docs/youtube-channel"},"_npmVersion":"11.12.1","description":"Read a YouTube channel profile and recent videos by handle. Capture channel identifiers and a bounded recent-upload inventory. CLI and MCP via the paid FlashData API.","directories":{},"maintainers":[{"name":"flashdata-dev","email":"rocosenyy@gmail.com"}],"_nodeVersion":"25.9.0","dependencies":{"ajv":"8.20.0","axios":"1.20.0","@modelcontextprotocol/sdk":"1.32.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/youtube-channel_0.2.1_1794203336346_0.6440332544938778"}}},"time":{"created":"2026-10-14T14:14:08.985Z","modified":"2026-11-09T05:48:56.576Z","0.0.0-stage":"2026-10-14T14:14:08.985Z","0.1.0":"2026-10-14T14:15:05.041Z","0.1.1":"2026-10-19T08:05:09.904Z","0.1.2":"2026-11-04T04:49:44.296Z","0.2.0":"2026-11-05T16:31:34.443Z","0.2.1":"2026-11-09T05:48:56.443Z"},"bugs":{"url":"https://github.com/flashdatadev/flashdata-mcp/issues"},"author":{"name":"FlashData","email":"support@flashdata.dev"},"license":"MIT","homepage":"https://flashdata.dev/docs/sources/youtube_channel?utm_source=npm&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube_channel-task","keywords":["youtube-channel-data","youtube-channel-videos","cli","mcp","model-context-protocol","flashdata"],"repository":{"url":"git+https://github.com/flashdatadev/flashdata-mcp.git","type":"git","directory":"npm/docs/youtube-channel"},"description":"Read a YouTube channel profile and recent videos by handle. Capture channel identifiers and a bounded recent-upload inventory. CLI and MCP via the paid FlashData API.","maintainers":[{"name":"flashdata-dev","email":"rocosenyy@gmail.com"}],"readme":"# YouTube Channel Data CLI and MCP — FlashData\n\nStart from a channel handle and record its profile identifier with a bounded set of recent videos. Compare saved inventories in your own application rather than treating one response as a full historical archive.\n\n`@flashdata-dev/youtube-channel` exposes **youtube_channel** and the supporting reads for that task. It runs locally and calls the FlashData API. Node.js **22.18 or newer** and a FlashData API key with this source enabled are required.\n\n[Inputs, outputs and source documentation](https://flashdata.dev/docs/sources/youtube_channel?utm_source=npm&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube_channel-task) · [Get an API key](https://flashdata.dev/signup?utm_source=npm&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube_channel-task) · [Current API pricing](https://flashdata.dev/pricing?utm_source=npm&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube_channel-task)\n\n**The MIT software is free to install. FlashData API data calls are paid and consume Credits.** Pricing and job reads are free. MCP client/model fees are separate.\n\n## Run with npx\n\nSet `FLASHDATA_API_KEY` in your shell environment or secret manager. Keep the real value out of chat, committed files and command arguments. These first checks do not submit a data query:\n\n```sh\nnpx --yes @flashdata-dev/youtube-channel@0.2.1 --help\nnpx --yes @flashdata-dev/youtube-channel@0.2.1 tools\nnpx --yes @flashdata-dev/youtube-channel@0.2.1 call get_pricing\n```\n\nSave the following as `query.json`. It uses flat tool arguments; no REST `params` wrapper is needed.\n\n```json\n{\n  \"handle\": \"@jawed\",\n  \"video_limit\": 10\n}\n```\n\nThis command performs **one paid data request** and writes its response to a file:\n\n```sh\nnpx --yes @flashdata-dev/youtube-channel@0.2.1 call youtube_channel --input query.json > result.json\n```\n\nUse `--input -` to read JSON from stdin. For a local project installation, run `npm install @flashdata-dev/youtube-channel@0.2.1` and use `npx flashdata-youtube-channel` with the same arguments.\n\n## Save a channel’s recent upload inventory\n\nThe CLI returns `{\"ok\":true,\"tool\":\"...\",\"result\":...}`. Check `ok` and the API/job status before consuming data. Use Python **3.10 or newer**; only the standard library is needed. Save this as `process-result.py` beside `result.json` and run `python3 process-result.py` (Windows: `py -3 process-result.py`). The script reads the saved CLI response; it makes no API call. Missing optional fields in JSON summaries are represented as `null`:\n\n```python\nimport json\nfrom pathlib import Path\n\nresponse = json.loads(Path(\"result.json\").read_text(encoding=\"utf-8\"))\nif not response.get(\"ok\"):\n    raise SystemExit(\"The request failed; inspect the response before retrying.\")\nresult = response[\"result\"]\nif \"job\" in result:\n    status = result[\"job\"][\"status\"]\n    if status != \"completed\":\n        raise SystemExit(f\"Job status: {status}. Inspect this job; do not resubmit.\")\n    result = result[\"output\"]\nif result.get(\"status\") not in (None, \"done\"):\n    raise SystemExit(\"No completed data yet. Read the existing job before processing.\")\nif not result.get(\"results\"):\n    raise SystemExit(\"No result record was returned.\")\ndata = result[\"results\"][0]\n\nprint(json.dumps({\n    \"channelId\": data.get(\"channelId\"), \"handle\": data.get(\"channelHandle\"),\n    \"name\": data.get(\"name\"),\n    \"videos\": [{\"id\": video.get(\"videoId\"), \"title\": video.get(\"title\"),\n                \"views\": video.get(\"viewCount\")}\n               for video in data.get(\"videos\") or []],\n}, ensure_ascii=False, indent=2))\n```\n\nSelected fields from a **representative fixture**, not a live response or a guarantee that every field/result will be present. This is the content inside the CLI's `result` property:\n\n```json\n{\n  \"source\": \"youtube_channel\",\n  \"status\": \"done\",\n  \"results\": [\n    {\n      \"channelId\": \"channel-one\",\n      \"channelHandle\": \"@jawed\",\n      \"name\": \"Example\",\n      \"videos\": [\n        {\n          \"videoId\": \"dQw4w9WgXcQ\",\n          \"title\": \"Example video\",\n          \"channel\": \"Example\",\n          \"channelId\": \"channel-one\",\n          \"channelUrl\": \"https://www.youtube.com/@Example\",\n          \"viewCount\": 100,\n          \"duration\": 90\n        }\n      ]\n    }\n  ],\n  \"created_at\": \"2026-10-12T00:00:00Z\",\n  \"http_status\": 200,\n  \"request_id\": \"fixture-request\"\n}\n```\n\nvideo_limit is 1 to 100; fewer videos or missing statistics are possible. A recent-video snapshot is not a complete historical archive.\n\n## Parameters\n\n| Parameter | Type | Required | Default and constraints |\n| --- | --- | --- | --- |\n| `handle` | string | Yes |  |\n| `video_limit` | integer | No | Default: `20`. Range: 1–100. |\n| `mode` | string | No | Default: `\"realtime\"`. Allowed: `realtime`, `async`. |\n\nThe package includes `schema.json` with the complete nested schema and `examples/query.json`. The `tools` command also returns the current schemas permitted by your key. Fields supplied by the remote source may be missing; preserve original values and source links.\n\n## Jobs, errors and billing\n\nFor a longer-running query, set `mode` to `\"async\"`. Save the returned `result.id`, create `job.json` with that job ID, and read it without submitting again:\n\n```json\n{\"job_id\":\"job_REPLACE_WITH_RETURNED_ID\"}\n```\n\n```sh\nnpx --yes @flashdata-dev/youtube-channel@0.2.1 call get_job --input job.json > result.json\n```\n\n`pending` or `processing` means wait and read the same job later; `completed` provides the original JSON under `result.output`. The package never polls or retries paid submissions automatically. A timeout or lost response may still represent charged work: check Jobs before another submission. Each submitted query is charged at this source’s current rate; the number of returned records is not the request count.\n\nCLI exit codes are 0 for a successful operation, 1 for an API/tool failure and 2 for invalid local input/configuration. Input is limited to 256 KiB and each API response to 4 MiB. CLI outputs complete JSON. Async JSON results have a 24-hour availability window.\n\n## Connect an MCP client\n\nThis same package starts a persistent stdio server with the `mcp` subcommand:\n\n```json\n{\n  \"mcpServers\": {\n    \"youtube-channel\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"--yes\",\n        \"@flashdata-dev/youtube-channel@0.2.1\",\n        \"mcp\"\n      ],\n      \"env\": {\n        \"FLASHDATA_API_KEY\": \"YOUR_API_KEY\"\n      }\n    }\n  }\n}\n```\n\nUse `npx.cmd` on Windows if your client requires it. Enter your own key through protected client settings. The four tools are `youtube_channel`, `get_pricing`, `get_job` and `get_result`; the source is fixed, and job reads reject jobs belonging to other sources. API key permissions are rechecked on each operation.\n\nMCP responses longer than 16,000 UTF-16 code units use `result_id`, `chunk` and `next_offset`. Read the remaining chunks with `get_result` in the same running server, concatenate them in order, and parse only `encoding: \"json\"`. Other encodings are Markdown or plain-text documents. The process retains at most four results for ten minutes. The one-shot CLI has no `get_result` command because it returns the whole response.\n\nOptional environment settings are `FLASHDATA_REQUEST_TIMEOUT_MS` (1000–120000, default 65000), `FLASHDATA_DATA_API_URL` and `FLASHDATA_MANAGEMENT_API_URL`. Custom URLs must be trusted HTTPS origins; loopback HTTP is accepted for local tests. The package does not load `.env` files automatically.\n\nSupport: [support@flashdata.dev](mailto:support@flashdata.dev) · [Source and issue tracker](https://github.com/flashdatadev/flashdata-mcp) · [FlashData terms](https://flashdata.dev/legal/terms) · [Privacy](https://flashdata.dev/legal/privacy). This is an independent FlashData integration, not an official Google or YouTube package.\n\n## MCP presentation\n\nTask MCP 0.2.0 default to Markdown text while retaining original\nfields in `structuredContent`. Use `response_format: \"text\"` or `\"json\"` for another\npresentation; `get_result` inherits the original format. Earlier published\nversions return JSON and do not accept this argument: check the running tool\nschema before using it. CLI calls default to JSON; explicit text formats return\na document string in the JSON `result` field. Formatting never repeats the query.\n","readmeFilename":"README.md"}