{"_id":"@flashdata-dev/youtube-search","_rev":"7-70af5b6acdbc157fa59122941455a85a","name":"@flashdata-dev/youtube-search","dist-tags":{"latest":"0.3.0"},"versions":{"0.0.0-stage":{"name":"@flashdata-dev/youtube-search","version":"0.0.0-stage","_id":"@flashdata-dev/youtube-search@0.0.0-stage","stub":true,"maintainers":[{"name":"flashdata-dev","email":"rocosenyy@gmail.com"}],"dist":{"shasum":"631024dcbedcadeb82a22076ba400c7cdfa4c179","tarball":"https://registry.npmjs.org/@flashdata-dev/youtube-search/-/youtube-search-0.0.0-stage.tgz","fileCount":2,"integrity":"sha512-DpyuOfN5Bpz+z/6CCcB8FSa7OM07q2WPwYUhvLqY75uuhCScqMNuw+9dXmYwF2xn/snVYEqMZf613uJL5nFYVQ==","signatures":[{"sig":"MEYCIQD6vd1hjOjP2KGjX6HUZMRo2IidIFjYlBEvVgpbSqJ0AwIhAKibVi3UchXquGWNjz/N6GHa72+7AY8kAqChkAINQvnD","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":351},"_npmUser":{"name":"flashdata-dev","email":"rocosenyy@gmail.com"},"description":"Temporary package placeholder for staged publishing","directories":{}},"0.1.0":{"name":"@flashdata-dev/youtube-search","version":"0.1.0","keywords":["youtube-search","youtube-video-search","cli","mcp","model-context-protocol","flashdata"],"author":{"name":"FlashData","email":"support@flashdata.dev"},"license":"MIT","_id":"@flashdata-dev/youtube-search@0.1.0","maintainers":[{"name":"flashdata-dev","email":"rocosenyy@gmail.com"}],"homepage":"https://flashdata.dev/docs/sources/youtube_search?utm_source=npm&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube_search-task","bugs":{"url":"https://github.com/flashdata-dev/flashdata-mcp/issues"},"bin":{"flashdata-youtube-search":"bin/run.js"},"dist":{"shasum":"a5de6137a615189757e20f18eec62c3d543952e6","tarball":"https://registry.npmjs.org/@flashdata-dev/youtube-search/-/youtube-search-0.1.0.tgz","fileCount":24,"integrity":"sha512-ELI5RF3E/Rl9WcHOdVhoL+L1GlLoBGZ7o3r4uz3OrqY+SqFYeI96zQaG+aB56DPS1A4enMhx+2XJouKD7AXMeQ==","signatures":[{"sig":"MEUCIQDtPM03Kv2Y+wIBlEQrgzZjII0LG+ecY/zJYX+AcuHrzQIgUxVuDJxR+UkiiViKjF8vRtZ0M1visQcUeezcp+3rJ9E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIA0IF7E7ITBqPtPRzryxe0K+ChnSnXnxLL6VU+zUfRuaAiASaoWHSMvRLkKIcwvrDhqh1hUOAwe2tjHXZk5z5RthMg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":75009},"type":"commonjs","_from":"file:/Users/rocosen/Documents/GitHub/flashdata-mcp/dist/npm-reviewed/flashdata-dev-youtube-search-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-search-0.1.0.tgz","_integrity":"sha512-ELI5RF3E/Rl9WcHOdVhoL+L1GlLoBGZ7o3r4uz3OrqY+SqFYeI96zQaG+aB56DPS1A4enMhx+2XJouKD7AXMeQ==","repository":{"url":"git+https://github.com/flashdata-dev/flashdata-mcp.git","type":"git","directory":"npm/docs/youtube-search"},"_npmVersion":"11.12.1","description":"Search YouTube videos by keyword with date, duration, feature and sorting filters. Return video IDs, channels and available statistics. 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-search_0.1.0_1791986617753_0.1769483814363375","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@flashdata-dev/youtube-search","version":"0.1.1","keywords":["youtube-search","youtube-video-search","cli","mcp","model-context-protocol","flashdata"],"author":{"name":"FlashData","email":"support@flashdata.dev"},"license":"MIT","_id":"@flashdata-dev/youtube-search@0.1.1","maintainers":[{"name":"flashdata-dev","email":"rocosenyy@gmail.com"}],"homepage":"https://flashdata.dev/docs/sources/youtube_search?utm_source=npm&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube_search-task","bugs":{"url":"https://github.com/rocosen/flashdata-mcp/issues"},"bin":{"flashdata-youtube-search":"bin/run.js"},"dist":{"shasum":"6a58f0c18c94c658be7d4f448edcf912405c4443","tarball":"https://registry.npmjs.org/@flashdata-dev/youtube-search/-/youtube-search-0.1.1.tgz","fileCount":24,"integrity":"sha512-g/7o7FfKT+Lp9Tu5XUg54HtGZUnAN9Qh0BCdPpOR4BtY5DuN/MumjMp7bENKdt8WwNqqgd2asjeene8DM6NyKA==","signatures":[{"sig":"MEUCIEB+jdj0voragI0aCVBgj6dy61sW20lVi5IyAVopE/byAiEAvuLQ7NjHWr2DKpmG5im7+GZgovSn4WncHd7Q45Zcbho=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCZlyGGZv0RD/e2OBBThEzmhHgNpnCJ4KDQADollI3iKwIgXne8r/wZHWPLcJvTnnJGxVx3UzE4D/HpvO3Dnhssr9A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":75776},"type":"commonjs","_from":"file:/Users/rocosen/Documents/FlashData/channels/python-examples-20261019/npm-artifacts-0.1.1-verified/flashdata-dev-youtube-search-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-search-0.1.1.tgz","_integrity":"sha512-g/7o7FfKT+Lp9Tu5XUg54HtGZUnAN9Qh0BCdPpOR4BtY5DuN/MumjMp7bENKdt8WwNqqgd2asjeene8DM6NyKA==","repository":{"url":"git+https://github.com/rocosen/flashdata-mcp.git","type":"git","directory":"npm/docs/youtube-search"},"_npmVersion":"11.19.0","description":"Search YouTube videos by keyword with date, duration, feature and sorting filters. Return video IDs, channels and available statistics. 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-search_0.1.1_1792397051354_0.5720808927537511","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@flashdata-dev/youtube-search","version":"0.1.2","keywords":["youtube-search","youtube-video-search","cli","mcp","model-context-protocol","flashdata"],"author":{"name":"FlashData","email":"support@flashdata.dev"},"license":"MIT","_id":"@flashdata-dev/youtube-search@0.1.2","maintainers":[{"name":"flashdata-dev","email":"rocosenyy@gmail.com"}],"homepage":"https://flashdata.dev/docs/sources/youtube_search?utm_source=npm&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube_search-task","bugs":{"url":"https://github.com/rocosen/flashdata-mcp/issues"},"bin":{"flashdata-youtube-search":"bin/run.js"},"dist":{"shasum":"2e32d5c3c8af971aab3f0a56b2b5fdbb516e1a81","tarball":"https://registry.npmjs.org/@flashdata-dev/youtube-search/-/youtube-search-0.1.2.tgz","fileCount":25,"integrity":"sha512-iUbIRdxGRb5T0rSBVtzsWEEj1+cr/Fp7Oo0ZkCPrbhgmK3WevXkXb9w7oL9hV9m4ZzUivr3WATajD2dTu3muIg==","signatures":[{"sig":"MEUCIH8LCSd87Sl7lviiiPBMCb54NFBj520G3YCUnxIORWW9AiEAsVHr6lkxzK82wFw6XcR0Cdn+19I23SCxRLG2Tj3emi4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIF7G1KheIkcglFo6O3iAFcukph1rppVYup+Hhuqx16qXAiAwfyXtx/ubmC6mb17lE7fEMHp/KGfOHp8JFQaruNHWkQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":75006},"type":"commonjs","_from":"file:/Users/rocosen/Documents/FlashData/channels/npm-copy-20261104/artifacts/flashdata-dev-youtube-search-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-search-0.1.2.tgz","_integrity":"sha512-iUbIRdxGRb5T0rSBVtzsWEEj1+cr/Fp7Oo0ZkCPrbhgmK3WevXkXb9w7oL9hV9m4ZzUivr3WATajD2dTu3muIg==","repository":{"url":"git+https://github.com/rocosen/flashdata-mcp.git","type":"git","directory":"npm/docs/youtube-search"},"_npmVersion":"11.12.1","description":"Search YouTube with keyword, date, duration and sorting filters. Request up to 20 video results. 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-search_0.1.2_1793766936473_0.940282239322335","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@flashdata-dev/youtube-search","version":"0.2.0","keywords":["youtube-search","youtube-video-search","cli","mcp","model-context-protocol","flashdata"],"author":{"name":"FlashData","email":"support@flashdata.dev"},"license":"MIT","_id":"@flashdata-dev/youtube-search@0.2.0","maintainers":[{"name":"flashdata-dev","email":"rocosenyy@gmail.com"}],"homepage":"https://flashdata.dev/docs/sources/youtube_search?utm_source=npm&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube_search-task","bugs":{"url":"https://github.com/flashdatadev/flashdata-mcp/issues"},"bin":{"flashdata-youtube-search":"bin/run.js"},"dist":{"shasum":"7c42c2d6fdda3869ef3b9285fbb9cf334d32b0e3","tarball":"https://registry.npmjs.org/@flashdata-dev/youtube-search/-/youtube-search-0.2.0.tgz","fileCount":27,"integrity":"sha512-MAasSUJjp8j1I1dldndskjRgEzkBtGKR5PuGkN09MwKPl1+4ZOgToiyamFms1xETSKopWsQvxA/2snbTBM9wAA==","signatures":[{"sig":"MEUCIBk30Ut/Ua4BVmA7JfGoAk8FQLMRO6VqiIhXFDwE2gaSAiEA4ZH6aRkZWwq3CG/il7vmG2syUFznkSvdoEiZ/8Hr46Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIBi9pTsKBFQub93SiNPL+DZPnp2LkbYKtF3FTF0SD1fZAiEA6TuigoDTusnqyKAzhlo9IWIcUfUef+uZTRTdcIcS7qA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":96442},"type":"commonjs","_from":"file:/Users/rocosen/Documents/GitHub/datanity/outputs/registry-publish-20261105/npm/flashdata-dev-youtube-search-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-search-0.2.0.tgz","_integrity":"sha512-MAasSUJjp8j1I1dldndskjRgEzkBtGKR5PuGkN09MwKPl1+4ZOgToiyamFms1xETSKopWsQvxA/2snbTBM9wAA==","repository":{"url":"git+https://github.com/flashdatadev/flashdata-mcp.git","type":"git","directory":"npm/docs/youtube-search"},"_npmVersion":"11.12.1","description":"Search YouTube videos by keyword with date, duration, feature and sorting filters. Return video IDs, channels and available statistics. 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-search_0.2.0_1793896198823_0.09915087470292805","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@flashdata-dev/youtube-search","version":"0.2.1","keywords":["youtube-search","youtube-video-search","cli","mcp","model-context-protocol","flashdata"],"author":{"name":"FlashData","email":"support@flashdata.dev"},"license":"MIT","_id":"@flashdata-dev/youtube-search@0.2.1","maintainers":[{"name":"flashdata-dev","email":"rocosenyy@gmail.com"}],"homepage":"https://flashdata.dev/docs/sources/youtube_search?utm_source=npm&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube_search-task","bugs":{"url":"https://github.com/flashdatadev/flashdata-mcp/issues"},"bin":{"flashdata-youtube-search":"bin/run.js"},"dist":{"shasum":"54ec0b745013455c6821cdb241fae42e837819dd","tarball":"https://registry.npmjs.org/@flashdata-dev/youtube-search/-/youtube-search-0.2.1.tgz","fileCount":27,"integrity":"sha512-7BeXBGd9z1sgP3F20dJ6DW7vZA0PtNthSMSY1UK+Un6jw0S5Ie+JT1pcbFlBLo/8AClAHn9uhrSViOnJevSCOw==","signatures":[{"sig":"MEUCIQCVS0ZeX0bPLNdj9z8/tqK91ZqaBvtrBWtMbTlZNlsjFwIgFGThdHJEnpldhRe+XlHF6TDsnbzIGO/ipfiCNmWApCg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIDmAg45h2DuqjjOpBeq1p/hS2zbVmBcqVfd/NwRjs+oJAiAkPRdH1LpuowCG2vd9xAVIg56iXS/MBUTMENirMiPoOg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":95155},"type":"commonjs","_from":"file:/Users/rocosen/Documents/FlashData/channels/github-npm-attribution-20261109/release/tasks/flashdata-dev-youtube-search-0.2.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/github-npm-attribution-20261109/release/tasks/flashdata-dev-youtube-search-0.2.1.tgz","_integrity":"sha512-7BeXBGd9z1sgP3F20dJ6DW7vZA0PtNthSMSY1UK+Un6jw0S5Ie+JT1pcbFlBLo/8AClAHn9uhrSViOnJevSCOw==","repository":{"url":"git+https://github.com/flashdatadev/flashdata-mcp.git","type":"git","directory":"npm/docs/youtube-search"},"_npmVersion":"11.12.1","description":"Search YouTube videos by keyword with date, duration, feature and sorting filters. Return video IDs, channels and available statistics. 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-search_0.2.1_1794203408948_0.01669492403365247","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"_id":"@flashdata-dev/youtube-search@0.3.0","bin":{"flashdata-youtube-search":"bin/run.js"},"bugs":{"url":"https://github.com/flashdatadev/flashdata-mcp/issues"},"dist":{"shasum":"001a17999cd6fd894976db4c6184aab3532725fe","tarball":"https://registry.npmjs.org/@flashdata-dev/youtube-search/-/youtube-search-0.3.0.tgz","fileCount":27,"integrity":"sha512-z15qdQeXfSwxqbJkwiQ0OVfBd9uGK/2nLZJJEOr7KzDvQAeYdaUOkYML1JRAk2iLc+PtaOPxbv1N3mPr1GJUNA==","signatures":[{"sig":"MEUCIQCav+50oR4VaZn2geuWWmwQKsVk8FbVYP7F4qXYX58mDQIgYfBd0ZCVKj03iktoypkT8ECB8FgCANle4rsYN0Qhy3U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCYgFXRoN6J7Azj4SkU1C2dTpB/vHQMqabDTXuhMtOa/gIgYrdjrX5cIrAJ+mO459mQxspihcPb0kF6rvSA89E/5oM="}],"unpackedSize":97811},"name":"@flashdata-dev/youtube-search","type":"commonjs","_from":"file:/Users/rocosen/Documents/GitHub/datanity/outputs/registry-publish-20261117/mcp/flashdata-dev-youtube-search-0.3.0.tgz","author":{"name":"FlashData","email":"support@flashdata.dev"},"engines":{"node":">=22.18.0"},"exports":{"./package.json":"./package.json"},"license":"MIT","version":"0.3.0","_npmUser":{"name":"flashdata-dev","email":"rocosenyy@gmail.com"},"homepage":"https://flashdata.dev/docs/sources/youtube_search?utm_source=npm&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube_search-task","keywords":["youtube-search","youtube-video-search","cli","mcp","model-context-protocol","flashdata"],"_resolved":"/Users/rocosen/Documents/GitHub/datanity/outputs/registry-publish-20261117/mcp/flashdata-dev-youtube-search-0.3.0.tgz","_integrity":"sha512-z15qdQeXfSwxqbJkwiQ0OVfBd9uGK/2nLZJJEOr7KzDvQAeYdaUOkYML1JRAk2iLc+PtaOPxbv1N3mPr1GJUNA==","repository":{"url":"git+https://github.com/flashdatadev/flashdata-mcp.git","type":"git","directory":"npm/docs/youtube-search"},"_npmVersion":"11.12.1","description":"Search YouTube videos by keyword with date, duration, feature and sorting filters. Return video IDs, channels and available statistics. 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-search_0.3.0_1794932423965_0.19583235834657586"}}},"time":{"created":"2026-10-14T14:02:41.399Z","modified":"2026-11-17T16:20:24.267Z","0.0.0-stage":"2026-10-14T14:02:41.399Z","0.1.0":"2026-10-14T14:03:37.846Z","0.1.1":"2026-10-19T08:04:11.474Z","0.1.2":"2026-11-04T04:35:36.599Z","0.2.0":"2026-11-05T16:29:58.922Z","0.2.1":"2026-11-09T05:50:09.036Z","0.3.0":"2026-11-17T16:20:24.065Z"},"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_search?utm_source=npm&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube_search-task","keywords":["youtube-search","youtube-video-search","cli","mcp","model-context-protocol","flashdata"],"repository":{"url":"git+https://github.com/flashdatadev/flashdata-mcp.git","type":"git","directory":"npm/docs/youtube-search"},"description":"Search YouTube videos by keyword with date, duration, feature and sorting filters. Return video IDs, channels and available statistics. CLI and MCP via the paid FlashData API.","maintainers":[{"name":"flashdata-dev","email":"rocosenyy@gmail.com"}],"readme":"# YouTube Search CLI and MCP — FlashData\r\n\r\nUse keyword and optional search filters to assemble up to 20 requested video results. Preserve video IDs so you can choose which videos merit a separate metadata or transcript request.\r\n\r\n`@flashdata-dev/youtube-search` exposes **youtube_search** 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.\r\n\r\n[Inputs, outputs and source documentation](https://flashdata.dev/docs/sources/youtube_search?utm_source=npm&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube_search-task) · [Get an API key](https://flashdata.dev/signup?utm_source=npm&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube_search-task) · [Current API pricing](https://flashdata.dev/pricing?utm_source=npm&utm_medium=integration&utm_campaign=intent_gtm_2026q4&utm_content=youtube_search-task)\r\n\r\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.\r\n\r\n## Run with npx\r\n\r\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:\r\n\r\n```sh\r\nnpx --yes @flashdata-dev/youtube-search@0.3.0 --help\r\nnpx --yes @flashdata-dev/youtube-search@0.3.0 tools\r\nnpx --yes @flashdata-dev/youtube-search@0.3.0 call get_pricing\r\n```\r\n\r\nSave the following as `query.json`. It uses flat tool arguments; no REST `params` wrapper is needed.\r\n\r\n```json\r\n{\r\n  \"query\": \"battery recycling\",\r\n  \"max_results\": 10\r\n}\r\n```\r\n\r\nThis command performs **one paid data request** and writes its response to a file:\r\n\r\n```sh\r\nnpx --yes @flashdata-dev/youtube-search@0.3.0 call youtube_search --input query.json > result.json\r\n```\r\n\r\nUse `--input -` to read JSON from stdin. For a local project installation, run `npm install @flashdata-dev/youtube-search@0.3.0` and use `npx flashdata-youtube-search` with the same arguments.\r\n\r\n## Find a bounded list of relevant videos\r\n\r\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`:\r\n\r\n```python\r\nimport json\r\nfrom pathlib import Path\r\n\r\nresponse = json.loads(Path(\"result.json\").read_text(encoding=\"utf-8\"))\r\nif not response.get(\"ok\"):\r\n    raise SystemExit(\"The request failed; inspect the response before retrying.\")\r\nresult = response[\"result\"]\r\nif \"job\" in result:\r\n    status = result[\"job\"][\"status\"]\r\n    if status != \"completed\":\r\n        raise SystemExit(f\"Job status: {status}. Inspect this job; do not resubmit.\")\r\n    result = result[\"output\"]\r\nif result.get(\"status\") not in (None, \"done\"):\r\n    raise SystemExit(\"No completed data yet. Read the existing job before processing.\")\r\nif not result.get(\"results\"):\r\n    raise SystemExit(\"No result record was returned.\")\r\ndata = result[\"results\"][0]\r\n\r\nfor video in data.get(\"results\") or []:\r\n    if video.get(\"videoId\"):\r\n        print(f\"{video.get('title', '')}\\thttps://www.youtube.com/watch?v={video['videoId']}\")\r\n```\r\n\r\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:\r\n\r\n```json\r\n{\r\n  \"source\": \"youtube_search\",\r\n  \"status\": \"done\",\r\n  \"results\": [\r\n    {\r\n      \"results\": [\r\n        {\r\n          \"videoId\": \"dQw4w9WgXcQ\",\r\n          \"title\": \"battery recycling\",\r\n          \"channel\": \"Example\",\r\n          \"channelId\": \"channel-one\",\r\n          \"channelUrl\": \"https://www.youtube.com/@Example\",\r\n          \"viewCount\": 100,\r\n          \"duration\": 90\r\n        }\r\n      ]\r\n    }\r\n  ],\r\n  \"created_at\": \"2026-10-12T00:00:00Z\",\r\n  \"http_status\": 200,\r\n  \"request_id\": \"fixture-request\"\r\n}\r\n```\r\n\r\nmax_results is 1 to 20; actual results can be fewer. Metadata and transcript enrichment are separate paid calls.\r\n\r\n## Parameters\r\n\r\n| Parameter | Type | Required | Default and constraints |\r\n| --- | --- | --- | --- |\r\n| `query` | string | Yes |  |\r\n| `max_results` | integer | No | Default: `20`. Range: 1–20. |\r\n| `filters` | object/null | No | Optional object; see the full JSON schema for upload_date, duration, sort and feature filters. Null is also accepted. |\r\n| `mode` | string | No | Default: `\"realtime\"`. Allowed: `realtime`, `async`. |\r\n\r\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.\r\n\r\n## Jobs, errors and billing\r\n\r\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:\r\n\r\n```json\r\n{\"job_id\":\"job_REPLACE_WITH_RETURNED_ID\"}\r\n```\r\n\r\n```sh\r\nnpx --yes @flashdata-dev/youtube-search@0.3.0 call get_job --input job.json > result.json\r\n```\r\n\r\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.\r\n\r\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.\r\n\r\n## Connect an MCP client\r\n\r\nThis same package starts a persistent stdio server with the `mcp` subcommand:\r\n\r\n```json\r\n{\r\n  \"mcpServers\": {\r\n    \"youtube-search\": {\r\n      \"command\": \"npx\",\r\n      \"args\": [\r\n        \"--yes\",\r\n        \"@flashdata-dev/youtube-search@0.3.0\",\r\n        \"mcp\"\r\n      ],\r\n      \"env\": {\r\n        \"FLASHDATA_API_KEY\": \"YOUR_API_KEY\"\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nUse `npx.cmd` on Windows if your client requires it. Enter your own key through protected client settings. The four tools are `youtube_search`, `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.\r\n\r\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.\r\n\r\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.\r\n\r\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.\r\n\r\n## MCP presentation\r\n\r\nTask MCP 0.2.0 default to Markdown text while retaining original\r\nfields in `structuredContent`. Use `response_format: \"text\"` or `\"json\"` for another\r\npresentation; `get_result` inherits the original format. Earlier published\r\nversions return JSON and do not accept this argument: check the running tool\r\nschema before using it. CLI calls default to JSON; explicit text formats return\r\na document string in the JSON `result` field. Formatting never repeats the query.\r\n","readmeFilename":"README.md"}