stophy command gets web data from your terminal, your scripts and any agent that runs shell commands.
Set up your agent
Log in
Without a login you can run the commands markedfree in stophy endpoints. To run the rest, log in with your browser.
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.--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 asname: 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 acursor. Pass it back with --cursor. This needs a login.
--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 withRetry 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.