New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@stophy/cli

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stophy/cli

The CLI to search YouTube, get transcripts, read comments, and inspect channels

Source
npmnpm
Version
1.0.7
Version published
Weekly downloads
228
-54.94%
Maintainers
1
Weekly downloads
 
Created
Source

@stophy/cli

Search YouTube, get transcripts, read comments, inspect channels, and fetch playlists from the terminal.

Install

npm install -g @stophy/cli

Requires Node.js 18 or later. Get an API key from stophy.dev.

Auth

stophy login --browser           # opens browser
stophy login --api-key st_xxx    # paste key directly
export STOPHY_API_KEY="st_..."   # env var also works

Commands

stophy search --q "typescript tutorial" --type video --sortBy viewCount
stophy search --q "next.js" --uploadDate week --duration long

video details

stophy video details --url "https://youtube.com/watch?v=QRvfjPltvmE"
{
  "id": "QRvfjPltvmE",
  "title": "TraRags Reacts To Kendrick Lamar - GNX",
  "author": "TRA RAGS STREAMS",
  "viewCount": 204828,
  "likeCount": 9170,
  "durationText": "2 hours 42 minutes 27 seconds",
  "publishedAt": "2024-11-23T08:22:36.000Z"
}

video transcript

stophy video transcript --url "https://youtube.com/watch?v=..."
{
  "language": "en",
  "segments": [
    { "text": "what is up everybody", "start": 0.0, "duration": 1.96 },
    { "text": "welcome back to the channel", "start": 1.96, "duration": 2.0 }
  ]
}

video comments

stophy video comments --url "https://youtube.com/watch?v=QRvfjPltvmE" --sortBy top
{
  "items": [
    { "text": "\"Nah, that's not enough\" 😂", "author": "@terribletimes902", "likeCount": 2100 },
    { "text": "53:15 BRO CREAMED HIMSELF LIVE 😭😭😭😭", "author": "@Aunos1", "likeCount": 593 },
    { "text": "WHO ELSE BACK TO THIS AFTER THE ICEMAN REACTION?? 🙌🏾✊🏾", "author": "@colouredhearts", "likeCount": 134 }
  ],
  "continuationToken": "..."
}

channel

stophy channel --url "https://youtube.com/@t3dotgg" --tab video --sortBy popular
{
  "channel": {
    "name": "Theo - t3.gg",
    "handle": "@t3dotgg",
    "subscriberCount": "539K subscribers",
    "videoCount": "1K videos",
    "isVerified": true
  },
  "items": [
    { "title": "PirateSoftware is right, this needs to stop", "viewCount": 1000000, "duration": "15:14" }
  ]
}

playlist

stophy playlist --url "https://youtube.com/playlist?list=PLxxxx"

usage and logs

stophy usage --days 7
stophy logs --days 30 --endpoint /v1/video

All commands

CommandDescription
stophy loginAuthenticate with API key or browser
stophy searchSearch YouTube by keyword
stophy suggestSearch autocomplete suggestions
stophy video detailsVideo metadata
stophy video transcriptTimestamped transcript
stophy video commentsPaginated comments
stophy video repliesComment replies
stophy channelChannel videos, Shorts, playlists, or about page
stophy playlistPlaylist videos and metadata
stophy creditsRemaining credit balance
stophy usageAPI usage for your key
stophy logsRequest logs for your key
stophy view-configConfig and auth status
stophy logoutClear saved credentials

Each command supports --help. Full docs at docs.stophy.dev.

License

MIT

Keywords

stophy

FAQs

Package last updated on 09 Jun 2026

Related posts