工程装修与视觉设计 · eng.boq.estimate

城市 × 面积三档透明 BOQ 造价与工期测算

计算经济、标准、旗舰三档装修总价、单方造价、半包/主材配比与参考工期。

请求地址(支持 GET / POST)
POST https://www.xntou.cn/api/open/v1/eng/boq-estimate
单次计费
¥0.03 / 3 点
沙箱体验
免费 20 次/日

⚡ 在线调试台(Sandbox Debugger)

实时返回结果
{
  "error_code": 0,
  "reason": "Success",
  "api_code": "eng.boq.estimate",
  "result": {
    "cityFactor": 1.15
  }
}

请求参数与返回字段说明

1. 请求参数

参数名类型必填示例默认值说明
city string 选填 shanghai 城市 slug 或名称
areaSqm number 必填 85 建筑面积或套内面积(㎡)
isCommercial boolean 选填 false 是否为商业公装

2. 核心返回字段(result)

字段路径类型说明
result.economy object 经济实用档造价与工期
result.standard object 标准品质档造价与工期
result.flagship object 旗舰定制档造价与工期

多语言接入代码示例

curl -s -X POST "https://www.xntou.cn/api/open/v1/eng/boq-estimate" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: YOUR_APP_KEY" \
  -d '{"city":"shanghai","areaSqm":85,"isCommercial":false}'
import requests
resp = requests.post("https://www.xntou.cn/api/open/v1/eng/boq-estimate", headers={"X-Api-Key": "YOUR_APP_KEY"}, json={
  "city": "shanghai",
  "areaSqm": 85,
  "isCommercial": false
})
print(resp.json())
const res = await fetch("https://www.xntou.cn/api/open/v1/eng/boq-estimate", {
  method: "POST",
  headers: { "Content-Type": "application/json", "X-Api-Key": "YOUR_APP_KEY" },
  body: JSON.stringify({
  "city": "shanghai",
  "areaSqm": 85,
  "isCommercial": false
})
});
console.log(await res.json());
<?php
$ch = curl_init("https://www.xntou.cn/api/open/v1/eng/boq-estimate");
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"city":"shanghai","areaSqm":85,"isCommercial":false}');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json', 'X-Api-Key: YOUR_APP_KEY']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
echo curl_exec($ch);