blocket-cli
Fast CLI for searching Blocket.se — Sweden's largest marketplace.
Designed for agents, scripts, and quick terminal lookups. Minimal dependencies, structured output.
Install
pip install blocket-cli
Or with uv:
uv tool install blocket-cli
Usage
Search listings
blocket search "soffa"
blocket search "iphone 15" -l stockholm --price-max 8000
blocket search "mountainbike" -c sports --sort price-asc -n 10
blocket search "ps5" -c electronics -o json | jq '.results[:3]'
Get ad details
blocket ad 20851738
blocket ad 20851738 -o json
Browse filters
blocket categories
blocket locations
Output formats
| Flag | Format | Use case |
|---|---|---|
| (default) | Human-readable table | Terminal browsing |
-o json |
Compact JSON | Piping to jq, API consumption |
-o jsonl |
One JSON object per line | Streaming, log processing |
Search options
| Option | Description |
|---|---|
-l, --location |
Filter by Swedish county (e.g. stockholm, skane) |
-c, --category |
Filter by category (e.g. electronics, furniture) |
--price-min |
Minimum price in SEK |
--price-max |
Maximum price in SEK |
--sort |
Sort order (relevance, price-asc, price-desc, date) |
-n, --limit |
Max results to display |
-p, --page |
Page number |
-o, --output |
Output format (table, json, jsonl) |
Agent integration
The JSON output is designed for LLM agents and automation:
# Structured search results
blocket search "cykel" -l stockholm --price-max 5000 -o json
# Stream results line by line
blocket search "soffa" -o jsonl
# Filter by category
blocket search "lampa" -c furniture -o json | jq '[.results[] | {title: .heading, price: .price.amount, location}]'
License
MIT
Metadata
Release files for blocket-cli 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| blocket_cli-0.2.0.tar.gz | 11.3 kB | With provenance | Details for blocket_cli-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| blocket_cli-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for blocket_cli-0.2.0-py3-none-any.whl |
Total release size: 21.2 kB
Release files / blocket_cli-0.2.0.tar.gz
| Download URL | blocket_cli-0.2.0.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d61ad342c456666ece3d6e19f5b74bfe97c1cf773d597f36bea9f6d005def4ee
|
|
BLAKE2b-256 checksum How to use checksums |
3ccd899e0f2362b1974352ef7ac08ba05463b30ed9ac89c306d5d9bb3de1c5dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 15, 2026.
Transparency logRelease files / blocket_cli-0.2.0-py3-none-any.whl
| Download URL | blocket_cli-0.2.0-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f7355d932050558f5feef8cfaf96955a6eb8000da32766c37c9714206943a70
|
|
BLAKE2b-256 checksum How to use checksums |
ee0fb58c073cc4d2f48f3e9c1891a44650423f3c28e5f548bcf024d273b40480
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 15, 2026.
Transparency logSecurity for blocket-cli 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for blocket_cli-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 15, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.