Skip to main content
The stophy command gets web data from your terminal, your scripts and any agent that runs shell commands.
No account, no login. You need Node.js 20 or later.
To install without Node.js, use the standalone binary.

Set up your agent

This logs you in, adds Stophy’s skills to your coding agents, and adds the Stophy MCP server.

Log in

Without a login you can run the commands marked free in stophy endpoints. To run the rest, log in with your browser.
The CLI prints a code and opens stophy.dev. Check that the page shows the same code, then approve it. On a server with no browser, open the printed link on any other device. The CLI logs in once you approve there. To use an API key instead, pass it to login or set it in the environment.
stophy logout logs out and revokes this computer’s key.

Make a call

Name the source, then the command.
To point at one thing, use its link or its id with the matching option, like --videoUrl or --videoId. Send one, not both. Run stophy <source> --help to see what a source can do, and stophy <source> <command> --help for every option on one command. stophy endpoints reddit lists the commands for a source with their cost, and stophy describe reddit.search shows one command’s options and an example. If a value is not one the option accepts, the CLI stops before it calls Stophy and lists the values that work.

Read the output

Lists print one row per result with its title and link. Other results print as name: value lines. Add --json for the data as JSON, with the credits used on stderr. --raw prints the full response, including requestId.
-o <path> writes the output to a file.

Page through results

When a command has more, its output ends with a cursor. Pass it back with --cursor. This needs a login.
Commands for sites with numbered pages take --page, like stophy google search "bun runtime" --page 2. See Page through results.

Use it in a script

A failed call exits non-zero and writes its message to stderr. The message ends with the request id, and with Retry after Ns. when the API says to wait. The CLI does not retry for you.

Check your usage

status shows your login, balance and CLI version. usage shows your balance and all-time usage. logs shows your recent requests.

Commands