Install
openclaw skills install idealistaQuery Idealista API via idealista-cli (OAuth2 client credentials).
openclaw skills install idealistaThis skill documents how to query the Idealista API using the local idealista-cli.
~/idealista-cliIdealista uses OAuth2 Client Credentials.
Use environment variables (recommended):
IDEALISTA_API_KEY = client_idIDEALISTA_API_SECRET = client_secretExample:
export IDEALISTA_API_KEY="<CLIENT_ID>"
export IDEALISTA_API_SECRET="<CLIENT_SECRET>"
Or persist them via the CLI:
python3 -m idealista_cli config set \
--api-key "<CLIENT_ID>" \
--api-secret "<CLIENT_SECRET>"
Config file path:
~/.config/idealista-cli/config.jsonToken cache:
~/.cache/idealista-cli/token.jsonGet 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
Use these as “prompt” examples for an agent that calls the CLI: