wallapop-cli

Output and formats

JSON by default, a table when you want to read it, JSONL when you want to pipe it.

Commands use JSON by default. chat open is an interactive text session unless you select --format jsonl. Errors go to stderr rather than stdout.

wallapop search "bici" | jq '.items[0]'

Formats

The default format prints one JSON document.

wallapop search "bici"

Colour follows NO_COLOR and switches off when stdout is not a terminal.

Errors

Errors are human-readable by default. For scripts, ask for the envelope:

wallapop --error-format json item show zzzzzzzzzzzz
{
  "code": 4,
  "category": "not_found",
  "message": "no item with that hash",
  "endpoint": "GET /api/v3/items/{hash}",
  "suggested_commands": ["wallapop search ..."]
}

The category is stable and worth branching on. The prose in message is not.

On this page