Tool v1.0.0

idealista

通过 idealista-cli 使用 OAuth2 客户端凭证调用 Idealista API

ClawHub 更新于 2026-03-24 17 浏览
下载 SKILL

技能说明

通过 idealista-cli 使用 OAuth2 客户端凭证调用 Idealista API

使用场景

Query Idealista API using idealista-cli with OAuth2 client credentials

查看英文原始说明

Query Idealista API via idealista-cli (OAuth2 client credentials).

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/idealista
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

3 个文件 · 7.6 kB · zip 4.7 kB
手动下载 zip · 4.7 kB
SKILL.md text/markdown
---
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

- CLI source (example): `~/idealista-cli`

## Credentials (client_id / client_secret)

Idealista uses OAuth2 **Client Credentials**.

Use environment variables (recommended):

- `IDEALISTA_API_KEY` = `client_id`
- `IDEALISTA_API_SECRET` = `client_secret`

Example:

```bash
export IDEALISTA_API_KEY="<CLIENT_ID>"
export IDEALISTA_API_SECRET="<CLIENT_SECRET>"
```

Or persist them via the CLI:

```bash
python3 -m idealista_cli config set \
  --api-key "<CLIENT_ID>" \
  --api-secret "<CLIENT_SECRET>"
```

Config file path:
- `~/.config/idealista-cli/config.json`

Token cache:
- `~/.cache/idealista-cli/token.json`

## Common commands

Get a token:

```bash
python3 -m idealista_cli token
python3 -m idealista_cli token --refresh
```

Search listings:

```bash
python3 -m idealista_cli search \
  --center "39.594,-0.458" \
  --distance 5000 \
  --operation sale \
  --property-type homes \
  --all-pages \
  --format summary
```

Compute stats:

```bash
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:

- "Find a flat in A Coruña under 200.000€"
- "Tell me the average price of a house around here: 39°34'33.5\"N 0°30'10.0\"W"
- "Búscame un apartamento de 3 habs en Tapia de Casariego para comprar"

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。