Skip to content

About

Official command-line interface for the ZalTrack Zalando price tracking API.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

ZalTrack CLI

Official command-line interface for the ZalTrack Zalando price tracking API.

Track Zalando prices and products with a scheduled watchlist, price history and alerts.

Every documented endpoint is a command — 9 commands — and request reaches any other path. JSON responses are pretty-printed; files (images, PDFs…) are saved with -o.

Requirements

  • Node.js 20 or newer
  • a ZalTrack API key

Install

npm install --global @zaltrack/cli
zaltrack --help

Or run it without installing:

npx @zaltrack/cli --help

Configure your API key

The CLI reads the key from the environment; it does not load .env files.

export ZALTRACK_API_KEY="YOUR_API_KEY"

PowerShell:

$env:ZALTRACK_API_KEY = "YOUR_API_KEY"

Usage

zaltrack search-zalando --query 'nike trainers'

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.

zaltrack search-zalando --help     # parameters of one command
zaltrack endpoints                # every command and its HTTP path
zaltrack endpoints search         # filter the list

JSON parameters

echo '{"query": "nike trainers"}' | zaltrack search-zalando --params -
zaltrack search-zalando --params params.json --compact

Flags override values read with --params.

Any endpoint

zaltrack request get /account
zaltrack request post /some/new/endpoint --params body.json

Pipe into jq

zaltrack search-zalando --query 'nike trainers' | jq .

Exit codes

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.

Commands

Command HTTP Description
check-product POST /products/{id}/check Asks for a check right away (1 credit), at most once per 5 minutes; earlier calls return the product unchanged. A pause…
delete-product DELETE /products/{id} Removes the product and its price history.
get-account GET /account Your plan, the credits left (monthly allowance and packs), how many products you track and the credits they use per mon…
get-article-history GET /history Every price ZalTrack read for an article reference on a marketplace over the period, whoever tracks it, oldest first, w…
get-product GET /products/{id} The product's latest state and every price read of the period, oldest first. The history covers every read of this arti…
list-products GET /products Your watchlist, newest first, with each product's latest state and its recent prices (trend). Filter with article_id (a…
search-zalando GET /search Zalando search results (sponsored included), to find the article reference of a product. Free, limited to 30 searches p…
track-product POST /products Adds an article reference or a Zalando link to your watchlist. The first check runs in the background within seconds (c…
update-product PATCH /products/{id} Target price, drop alerts, check interval, or pause. Send only what changes. On the free plan, alerts (price drop, back…

Built on the SDK

The CLI uses the official Node.js SDK (@zaltrack/sdk). Use the SDK directly for programmatic access.

All ZalTrack SDKs

SDK Package Install
Node.js @zaltrack/sdk npm install @zaltrack/sdk
Python zaltrack pip install zaltrack
Go zaltrack-go go get github.com/zaltrackdev/zaltrack-go
.NET ZalTrack dotnet add package ZalTrack
Ruby zaltrack gem install zaltrack
PHP zaltrack/sdk composer require zaltrack/sdk
Java zaltrack-java build from source, see its README
CLI @zaltrack/cli npm install -g @zaltrack/cli
MCP server @zaltrack/mcp npx -y @zaltrack/mcp

Trademarks

ZALANDO® is a registered trademark of Zalando SE. ZalTrack is not affiliated with, endorsed or sponsored by Zalando.

License

MIT — see LICENSE.

About

Official command-line interface for the ZalTrack Zalando price tracking API.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages