CLI for Tradera web endpoints
Project description
tradera-cli
Fast CLI for searching public Tradera listings from the terminal.
Designed for scripts, agents, and quick lookups with structured output.
Install
From PyPI:
pip install tradera-cli
With uv:
uv tool install tradera-cli
With pipx:
pipx install tradera-cli
Upgrade:
pip install --upgrade tradera-cli
Usage
Search listings
tradera search "iphone"
tradera search "pokemon" --page 2 --page-size 20
tradera search "kamera" --sort AddedOn --format json
tradera search "klocka" --country SE --lang sv --format jsonl
tradera search "lego" --item-status Sold --format json
tradera search "lego" --condition "Oanvänt" --format json
tradera search "lego" --item-type FixedPrice --from-price 100 --to-price 500
tradera search "lego" --allowed-buyer-regions eu --counties Stockholm Uppsala
tradera search "lego city" --search-type ExactSearch
Get item details
tradera item 717898129
tradera item 717898129 --format json
tradera item "https://www.tradera.com/item/340186/717885898/iphone-12-pro"
Browse categories
tradera categories --level 1
tradera categories --level 2 --lang sv --format json
Output formats
| Format | Description | Best for |
|---|---|---|
table (default) |
Human-readable table | Interactive terminal use |
json |
Pretty JSON object | jq, scripts, integrations |
jsonl |
One JSON object per line | Streaming/log pipelines |
Common options
Search command (tradera search) supports:
| Option | Description |
|---|---|
--page |
Page number (default: 1) |
--page-size |
Results per page (default: 50) |
--sort |
Sort mode (default: Relevance) |
--lang |
Language code (default: sv) |
--country |
Shipping country code (default: SE) |
--item-status |
Filter by item status: Active, Sold, Unsold |
--condition |
Filter by condition: Oanvänt, Mycket gott skick, Gott skick, Okej skick, Defekt |
--item-type |
Filter by listing type: All, Auction, FixedPrice, ContactOnly |
--from-price |
Minimum price |
--to-price |
Maximum price |
--allowed-buyer-regions |
Buyer region filter: sweden, eu, international |
--counties |
Pickup counties, passed as one or more values, for example Stockholm Uppsala |
--search-type |
Search mode. Current supported value: ExactSearch |
--no-translate |
Disable automatic translation preference |
--format |
Output format: table, json, jsonl |
Development
From source:
git clone https://github.com/Paatsu/tradera-cli.git
cd tradera-cli
pip install -e .[dev]
Build distributions:
python -m build
Check the package metadata before upload:
python -m twine check dist/*
Run tests:
pytest -q
Agent integration
Examples for automation:
# Take first 3 listings as JSON
tradera search "iphone" --format json | jq '.items[:3]'
# Stream listings line-by-line
tradera search "lego" --format jsonl
# Pull one item as machine-readable JSON
tradera item 717898129 --format json
Notes
- Uses web endpoints from Tradera's frontend.
- Anonymous client token is fetched automatically when needed.
- Endpoint behavior can change over time.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tradera_cli-0.1.4.tar.gz.
File metadata
- Download URL: tradera_cli-0.1.4.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24fe49914a5ba88675eb5ca4385d2fb1dfae549b71748820665809a0c0dd8c70
|
|
| MD5 |
676085e2c18e6b772c51fac92689ae81
|
|
| BLAKE2b-256 |
aee3c02013b6dec8fa0357e535c4d2f5ce05a4bab3d31253b0b3f3c44715b13b
|
Provenance
The following attestation bundles were made for tradera_cli-0.1.4.tar.gz:
Publisher:
publish.yml on Paatsu/tradera-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tradera_cli-0.1.4.tar.gz -
Subject digest:
24fe49914a5ba88675eb5ca4385d2fb1dfae549b71748820665809a0c0dd8c70 - Sigstore transparency entry: 2138570222
- Sigstore integration time:
-
Permalink:
Paatsu/tradera-cli@aa8beb03fe909e41d88843b9d711895e888d7027 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/Paatsu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@aa8beb03fe909e41d88843b9d711895e888d7027 -
Trigger Event:
release
-
Statement type:
File details
Details for the file tradera_cli-0.1.4-py3-none-any.whl.
File metadata
- Download URL: tradera_cli-0.1.4-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
181f90b793fb0b143c3a5564f9628ade7f90ad9ecf01b0ff877885d0554c459c
|
|
| MD5 |
8a242ec190f27ef862517dbe7e64b159
|
|
| BLAKE2b-256 |
9036681271a5c719f64a003e997d4dd26db6cd27d9370eed696ed8de41cd3460
|
Provenance
The following attestation bundles were made for tradera_cli-0.1.4-py3-none-any.whl:
Publisher:
publish.yml on Paatsu/tradera-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tradera_cli-0.1.4-py3-none-any.whl -
Subject digest:
181f90b793fb0b143c3a5564f9628ade7f90ad9ecf01b0ff877885d0554c459c - Sigstore transparency entry: 2138570233
- Sigstore integration time:
-
Permalink:
Paatsu/tradera-cli@aa8beb03fe909e41d88843b9d711895e888d7027 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/Paatsu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@aa8beb03fe909e41d88843b9d711895e888d7027 -
Trigger Event:
release
-
Statement type: