四个估价工具。支持公寓、独栋住宅和土地;快速估价和估价报告会以 422 business_rule 拒绝商业物业和住宅小区;租金估算同样适用于商业物业。
快速估价
POST /valuation/express:权限范围 tools:valuation,立即返回。一次 API 调用加快速估价的价格。
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
propertyCategory | 字符串 | 否 | apartment(默认)、house、land;commercial 以 422 拒绝,其他任何值(没有 complex)以 400 拒绝 |
totalArea | 数字 | 三选一 | 面积,m² |
areaM2 | 数字 | 三选一 | 同 totalArea |
landPlotArea | 数字 | 三选一 | 土地面积,m²;仅对 land 计作面积 |
addressText | 字符串 | 建议 | 单行地址 |
country、city、postalCode | 字符串 | 否 | 分段地址 |
lat、lon | 数字 | 否 | 坐标 |
rooms | 数字 | 否 | 房间数 |
yearBuilt | 数字 | 否 | 建造年份 |
floor、floorsTotal | 数字 | 否 | 楼层和总楼层 |
houseLevels | 数字 | 否 | 住宅层数 |
heatingType | 字符串 | 否 | 供暖 |
price | 数字 | 否 | 您的价格:与估价对比 |
currency | 字符串 | 否 | 结果货币 |
language | 字符串 | 否 | 不使用:快速估价的回复中没有说明文字 |
targetId | 字符串 | 否 | 您的房源 ID:同一房源的重复估价在 7 天内取自缓存 |
curl -X POST https://developers.grem.capital/api/v1/valuation/express \
-H "Authorization: Bearer gsk_live_xxx" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 5b8c3f7e-2a71-4c55-8d0e-9f1a6b2c4d10" \
-d '{"propertyCategory":"apartment","addressText":"Torstraße 12, Berlin","totalArea":64,"rooms":2,"currency":"EUR"}'
响应:
| 字段 | 说明 |
|---|---|
estimate.pricePoint | 估算价值 |
estimate.rangeLow、estimate.rangeHigh | 区间 |
estimate.confidence | 可信度等级:low、medium 或 high |
estimate.confidenceScore | 可信度数值,0 到 1 |
estimate.currency | 货币 |
estimate.analogs | 找到的可比房源:title, address, area, rooms, pricePerM2, originalPrice, adjustedPrice, adjustments, weight, provenance, source, sourceUrl |
degraded | 没有市场数据的粗略估价时为 true;此类估价不收费 |
缺少面积或 propertyCategory 未知:400 validation;商业物业:422 business_rule,带 code: commercial_unsupported。
完整估价报告
POST /valuation/report:权限范围 tools:valuation,任务。包含市场分析和 PDF 的报告。必填字段取决于 propertyCategory。只发送您所属类别的字段:其他类别的字段(例如公寓的 houseLevels、独栋房屋的 parking)会以 400 被拒绝。仅公寓:livingArea、kitchenArea、bathrooms、ceilingHeight、floor、storeys、balcony、elevator、parking、houseType、apartmentType。仅独栋房屋:houseLevels。仅土地:zoning。独栋房屋和土地:utilities。
| 字段 | 类型 | 说明 |
|---|---|---|
propertyCategory | 字符串 | apartment、house 或 land:必填 |
address | 对象 | 必填:country、city、street(可为空)、streetNumber、location(lat、lng) |
totalArea | 数字 | m²;公寓和住宅必填 |
landPlotArea | 数字 | m²;住宅必填;土地填此字段或 totalArea |
condition | 字符串 | 状况;公寓和住宅必填 |
apartmentType | 字符串 | 公寓:Residential、Commercial、Industrial、Land plot 或 Complex,必填 |
houseType | 字符串 | 公寓:建筑类型,必填 |
floor、storeys | 数字 | 公寓:所在楼层和楼栋层数,必填 |
balcony、elevator | 是/否 | 公寓:必填 |
houseLevels | 数字 | 住宅:层数,1 到 10,必填 |
rooms | 数字 | 公寓、独栋房屋:房间数 |
livingArea、kitchenArea、bathrooms、ceilingHeight | 数字 | 仅公寓:可选细节 |
yearConstruction | 数字 | 公寓、独栋房屋:建造年份 |
wallMaterial、heatingType | 字符串 | 公寓、独栋房屋:墙体材料、供暖;独栋房屋的 heatingType 取值为 central、autonomous、boiler、fireplace、mixed、gas、electric、heat_pump、solid_fuel、underfloor、none 之一 |
furnished | 是/否 | 公寓、独栋房屋:带家具 |
parking | 是/否 | 仅公寓:停车位 |
zoning | 字符串 | 仅土地:用途 |
utilities | 对象 | 独栋房屋和土地:gas、water、sewage、electricity(是/否) |
price | 数字 | 您的价格:与估价对比 |
currency | 字符串 | UAH、USD、EUR、AZN、GBP、AED、CNY、TRY、GEL |
language | 字符串 | 报告语言:eng、rus、ukr、deu、spa、aze、arb、fra、zho、tur |
objectId | 字符串 | 若为您的房源估价,填其 ID |
comments | 字符串 | 估价备注 |
curl -X POST https://developers.grem.capital/api/v1/valuation/report \
-H "Authorization: Bearer gsk_live_xxx" \
-H "Content-Type: application/json" \
-d '{
"propertyCategory": "apartment",
"address": { "country": "Germany", "city": "Berlin", "street": "Torstraße", "streetNumber": "12" },
"currency": "EUR", "language": "zho",
"apartmentType": "Residential", "houseType": "panel",
"totalArea": 64, "rooms": 2, "floor": 3, "storeys": 5,
"balcony": true, "elevator": false, "condition": "good"
}'
响应 202:{ "jobId": "...", "status": "processing", "state": "running" }。完成的任务(GET /valuation/report/jobs/{id})包含:
| 字段 | 说明 |
|---|---|
metrics | 数据:potPrice, priceRangeLow, priceRangeHigh, avgPrice, analogCount, growth - 市场价值、其区间、每平方米价格、可比对象数量、增长率 % |
confidence、priceMethod、estimateType | 价值的可靠程度(high…very_low)、计算方法、单点还是区间 |
currency | 所有数据的货币 |
justification | 估价依据 |
recommendations | 定价和销售建议 |
pdfMeta | PDF 报告的数据 |
analogs | 估值所依据的可比房源(与 PDF 中的表格相同):title, address, area, rooms, pricePerM2, originalPrice, adjustedPrice, adjustments, weight, provenance, source, sourceUrl。provenance: model_estimate - 没有真实房源支撑的参考值 |
商业地产(包括 apartmentType 为 Commercial 或 Industrial)以 422 business_rule 和 code: commercial_unsupported 被拒绝;其租金可用 POST /valuation/rent 估算。住宅综合体(apartmentType: Complex):带 code: complex_unsupported 的 422;请对其中的单套公寓或房屋估价。
PDF:GET /artifacts/v1/ai/appraisal/reports/{id}/pdf。事件:valuation.completed / valuation.failed。
租金估算
POST /valuation/rent:权限范围 tools:rent,立即返回。用字段描述物业,或传入您自己的或公开房源的 objectId。
| 字段 | 类型 | 说明 |
|---|---|---|
objectId | 字符串 | 以房源代替描述 |
city | 字符串 | 无 objectId 时必填 |
totalArea | 数字 | m²;无 objectId 时必填 |
country、district、street | 字符串 | 地址 |
propertyCategory | 字符串 | 物业类型 |
rooms、floor | 数字 | 房间、楼层 |
furnished | 是/否 | 带家具 |
condition | 字符串 | 状况 |
rentTerm | 字符串 | long:按月租(默认);short:按日租。两个不同的市场 |
occupancyPct | 数字 | 按日租:预期入住率,10 到 100 % |
monthRentalRate | 数字 | 您的月租:响应会显示与市场的对比 |
declaredDayRate | 数字 | 您的日租价格 |
currency | 字符串 | 结果货币 |
curl -X POST https://developers.grem.capital/api/v1/valuation/rent \
-H "Authorization: Bearer gsk_live_xxx" \
-H "Content-Type: application/json" \
-d '{"propertyCategory":"apartment","country":"Germany","city":"Berlin","totalArea":50,"rooms":2,"currency":"EUR"}'
响应:
| 字段 | 说明 |
|---|---|
id | 估算 ID;PDF:GET /artifacts/v1/ai/appraisal/rent/{id}/pdf |
currency | 货币 |
rent.monthlyRent | 每月市场租金 |
rent.low、rent.high | 区间 |
rent.annualRent | 每年 |
rent.pricePerM2 | 每平方米每月 |
rent.grossYieldPct | 已知价格时相对物业价格的毛收益率,% |
rent.confidence | 可信度 |
rent.basedOn | 估算基于多少条可比房源 |
rent.termBasis | long 或 short |
comps | 所有参考过的房源及其在估算中的作用:address, area, rooms, monthlyRent/dayRent, effectiveMonthly, term, status, usedInEstimate, source, url |
缺少面积或城市:400,detail 类似 "Missing or invalid: totalArea"。
报告审核
POST /valuation/review:权限范围 tools:review。上传估价报告(PDF、DOCX、DOC、RTF;最大 40 MB):GREM 读取报告并用市场数据核对价值。
请求体:multipart/form-data:
| 部分 | 说明 |
|---|---|
file | 报告文件(或 document 部分) |
language | 结果语言,默认 rus |
currency | 货币,默认 USD |
curl -X POST https://developers.grem.capital/api/v1/valuation/review \
-H "Authorization: Bearer gsk_live_xxx" \
-F "[email protected]" \
-F "language=zho" -F "currency=EUR"
文件会立即读取。202 响应包含 jobId、status 和 state:
action_required(status: need_confirm):extracted包含从文件中读取的数据。检查并确认:POST /valuation/review/jobs/{id}/confirm(任务与结果)。确认后任务进入running。failed(status: rejected):该文件不是房地产估价报告。
完成的结果:GET /valuation/review/jobs/{id};审核报告:GET /artifacts/v1/ai/appraisal/reviews/{id}/report.pdf 或 report.docx。事件:review.completed / review.failed;webhook 跟踪在确认之后开始。