返回顶部
w

willhaben-searchWillhaben搜索

Willhaben marketplace search API for finding listings, browsing categories, and getting listing details on Austria's largest classifieds platform.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.0.2
安全检测
已通过
248
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

willhaben-search

willhaben-搜索

在奥地利最大的在线市场willhaben.at上,使用AI驱动的语义搜索来搜索和浏览列表。

API基础信息

基础URL:https://api.nochda.at

无需身份验证。所有端点均返回JSON格式数据。

bash
curl https://api.nochda.at/api/health

速率限制:全局50次/分钟,搜索/建议10次/分钟。

典型工作流程

  1. 1. 找到正确的类别:使用GET /api/categories/suggest?q=...
  2. 搜索列表:使用GET /api/search?categoryId=...&query=...
  3. 获取列表详情:使用GET /api/listings/:id

端点

建议类别(语义搜索)

GET /api/categories/suggest?q=<查询词>

使用AI为用户意图找到最佳类别。当您不知道要搜索哪个类别时,从这里开始。

bash
curl https://api.nochda.at/api/categories/suggest?q=mountain%20bike

响应:
json
{
suggestions: [
{id: 4552, label: Fahrräder, parentLabel: Sport/Sportgeräte, score: 1.0},
{id: 2145, label: Mountainbikes, parentLabel: Fahrräder, score: 0.82}
]
}

使用最佳匹配建议的id作为搜索中的categoryId。最多返回5个按相关性排序的建议(评分0–1)。



搜索列表

GET /api/search?categoryId=&query=<查询词>

在类别内进行语义搜索。理解自然语言查询。

bash
curl https://api.nochda.at/api/search?categoryId=4552&query=full%20suspension%20trail%20bike&maxPrice=2000&recentDays=30

查询参数:

参数必需描述
categoryId类别ID(来自建议或浏览)
query
是 | 自然语言搜索(最多500个字符) |
| maxPrice | 否 | 最高价格(欧元) |
| recentDays | 否 | 仅显示最近N天内的列表 |

响应:
json
{
results: [
{
id: 12345,
title: Giant Trance X 29 2024,
description: Full suspension trail bike, excellent condition...,
price: 1800,
location: Wien,
url: https://willhaben.at/iad/kaufen-und-verkaufen/d/...,
images: [https://cache.willhaben.at/...jpg],
publishedAt: 2026-03-08T10:30:00Z,
similarity: 0.87
}
],
totalCandidates: 85
}

结果按语义相关性排序。每个结果都包含一个直接指向原始willhaben列表的url链接。最多返回40个结果。



获取列表详情

GET /api/listings/:id

获取特定列表的完整详情,包括可比定价上下文。

bash
curl https://api.nochda.at/api/listings/12345

响应:
json
{
listing: {
id: 12345,
title: Giant Trance X 29 2024,
description: Full suspension trail bike, excellent condition...,
price: 1800,
location: Wien,
url: https://willhaben.at/iad/kaufen-und-verkaufen/d/...,
images: [https://cache.willhaben.at/...jpg],
publishedAt: 2026-03-08T10:30:00Z,
categoryLabel: Fahrräder
},
compAnalysis: {
avgPrice: 2100,
medianPrice: 1950,
compCount: 30
}
}

compAnalysis将列表的价格与同一类别中最相似的30个列表进行比较。如果数据不足,可能为null。



浏览类别

根类别:
bash
curl https://api.nochda.at/api/categories

所有类别(扁平列表):
bash
curl https://api.nochda.at/api/categories/all

类别的子类别:
bash
curl https://api.nochda.at/api/categories/123/children

返回{ parent: {...}, children: [...] }。

按名称搜索类别:
bash
curl https://api.nochda.at/api/categories/search?q=auto

名称重复的类别包含disambiguatedLabel(例如PKW (Auto/Motorrad))。

所有类别对象包含:id、label、parentCategoryId、image。

错误处理

错误返回JSON格式:{error: 描述}。

状态码含义
400参数无效或缺失
404
资源未找到 |
| 429 | 达到速率限制——请在Retry-After标头值指定的时间后重试 |
| 500 | 服务器错误 |

注意事项

  • - 所有价格均为欧元
  • 搜索由AI驱动——像舒适的阅读扶手椅这样的自然语言查询效果很好
  • 类别形成层级结构(根→子类别);搜索包含所有子类别
  • 始终将用户链接到url字段,以便他们可以在willhaben上查看完整列表

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 willhaben-search-1776175763 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 willhaben-search-1776175763 技能

通过命令行安装

skillhub install willhaben-search-1776175763

下载

⬇ 下载 willhaben-search v0.0.2(免费)

文件大小: 2.59 KB | 发布时间: 2026-4-15 13:34

v0.0.2 最新 2026-4-15 13:34
- Changed the listings search endpoint from POST /api/search to GET /api/search with query parameters.
- Updated documentation and examples to reflect the GET-based search endpoint usage.
- No changes to endpoint parameters or response formats.
- Other endpoints and overall functionality remain unchanged.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部