🦀 ClawHub
Idealista
by @quifago
Query Idealista API via idealista-cli (OAuth2 client credentials).
TERMINAL
clawhub install idealista📖 About This Skill
name: idealista description: Query Idealista API via idealista-cli (OAuth2 client credentials). license: MIT homepage: https://github.com/quifago/idealista-cli metadata: {"clawdbot": {"emoji": "🏠", "requires": {"bins": ["python3"], "env": ["IDEALISTA_API_KEY", "IDEALISTA_API_SECRET"], "primaryEnv": "IDEALISTA_API_KEY"}, "install": [{"id": "git", "kind": "git", "label": "Install idealista-cli (git clone)", "url": "https://github.com/quifago/idealista-cli", "bins": ["python3"]}]}}
idealista
This skill documents how to query the Idealista API using the local idealista-cli.
Local project location
~/idealista-cliCredentials (client_id / client_secret)
Idealista uses OAuth2 Client Credentials.
Use environment variables (recommended):
IDEALISTA_API_KEY = client_idIDEALISTA_API_SECRET = client_secretExample:
export IDEALISTA_API_KEY=""
export IDEALISTA_API_SECRET=""
Or persist them via the CLI:
python3 -m idealista_cli config set \
--api-key "" \
--api-secret ""
Config file path:
~/.config/idealista-cli/config.jsonToken cache:
~/.cache/idealista-cli/token.jsonCommon commands
Get a token:
python3 -m idealista_cli token
python3 -m idealista_cli token --refresh
Search listings:
python3 -m idealista_cli search \
--center "39.594,-0.458" \
--distance 5000 \
--operation sale \
--property-type homes \
--all-pages \
--format summary
Compute stats:
python3 -m idealista_cli avg \
--center "39.594,-0.458" \
--distance 5000 \
--operation sale \
--property-type homes \
--group-by propertyType
Example queries (natural language)
Use these as “prompt” examples for an agent that calls the CLI: