Official command-line interface for the HuntAPI media download API.
Download video and audio from public media URLs, or extract their metadata, with one async REST API.
Every documented endpoint is a command — 6 commands — and request reaches any other path. JSON responses are pretty-printed; files (images, PDFs…) are saved with -o.
- Node.js 20 or newer
- a HuntAPI API key
npm install --global @huntapi/cli
huntapi --helpOr run it without installing:
npx @huntapi/cli --helpThe CLI reads the key from the environment; it does not load .env files.
export HUNTAPI_API_KEY="YOUR_API_KEY"PowerShell:
$env:HUNTAPI_API_KEY = "YOUR_API_KEY"huntapi media-metadata --query 'https://www.youtube.com/watch?v=Z5YP8kznWZs'Parameters use the names of the API reference as flags: --full-page and --full_page are equivalent. Boolean flags can be bare (--flag) or explicit (--flag=false); array parameters accept commas or repeated flags.
huntapi media-metadata --help # parameters of one command
huntapi endpoints # every command and its HTTP path
huntapi endpoints search # filter the listecho '{"query": "https://www.youtube.com/watch?v=Z5YP8kznWZs"}' | huntapi media-metadata --params -
huntapi media-metadata --params params.json --compactFlags override values read with --params.
huntapi request get /v1/usage
huntapi request post /v1/some/new/endpoint --params body.jsonhuntapi media-metadata --query 'https://www.youtube.com/watch?v=Z5YP8kznWZs' | jq .| Code | Meaning |
|---|---|
0 |
Success. |
1 |
The API returned an error (details on standard error) or the network failed. |
2 |
Invalid usage: unknown command or parameter, missing API key or required parameter. |
| Command | HTTP | Description |
|---|---|---|
audio-download |
GET / POST /v1/audio/download |
Download audio from a URL via HuntAPI and receive a job id. |
jobs |
GET /v1/jobs/{id} |
Poll status, progress (0–100), and result of an async HuntAPI job. |
media-metadata |
GET /v1/media/metadata |
Extract metadata from a media URL without downloading the file. |
stats |
GET /v1/stats |
Infrastructure health for an engine or endpoint over the last hour. Not scoped to your account or tenant. Enabled per a… |
usage |
GET /v1/usage |
Retrieve real-time usage statistics and credit balance for your Huntapi account. |
video-download |
GET / POST /v1/video/download |
Video Download |
The CLI uses the official Node.js SDK (@huntapi/sdk). Use the SDK directly for programmatic access.
| SDK | Package | Install |
|---|---|---|
| Node.js | @huntapi/sdk |
npm install @huntapi/sdk |
| Python | huntapi |
pip install huntapi |
| Go | huntapi-go |
go get github.com/huntapi/huntapi-go |
| .NET | HuntApi |
dotnet add package HuntApi |
| Ruby | huntapi |
gem install huntapi |
| PHP | huntapi/sdk |
composer require huntapi/sdk |
| Java | huntapi-java |
build from source, see its README |
| CLI | @huntapi/cli |
npm install -g @huntapi/cli |
| MCP server | @huntapi/mcp |
npx -y @huntapi/mcp |
MIT — see LICENSE.