2026-08-17 用户宣布就绪并提供 token(妥存 server/.env 的 CENTRAL_API_TOKEN,绝不入库)。 首轮实测调通:56 项目 / POI 含经纬度 / 达人库 35 字段 / 联系方式三要素全部真实拉到。 文档源:
GET /api/v1/llms-full.txt(17,042 行,目录驱动自更新)| OpenAPI:/api/v1/openapi.json
https://ai.iphome.cn/api/v1 | 认证:Authorization: Bearer <token> | 全 GET/catalog(资源清单)、/catalog/{resource}(字段说明)、/data/{resource}?任意字段=值&from=&to=&limit=(任意字段名可当过滤参数)GET /data/{resource}/{id} —— 已知 ID 直接拿逐日明细+区间汇总,15 资源支持(talent=uid / merchant-poi=poi_id / short-video=video_id / order=order_id / project=id 等)。汇总自动剔除比率类字段(rate/pct/ratio/avg/gpm,剔除项在响应 not_summed 列出——比率相加无意义,API 侧主动防错){resource, row_count, limit, offset, has_more, duration_ms, caliber_note, rows[]}settled=数据已定型可对账结算;growing=当日仍在生成只看趋势format 等非字段参数会被当过滤字段报 400("任意字段名都能当过滤参数"的副作用)| 中台资源 | 实测 | 犀见消费场景 |
|---|---|---|
project(56 个) |
id/code/project_key/name/region/status/priority/owner_* | P0-4 项目域主数据源:项目选择下拉直接来自此(犀见 project 表转同步镜像或直查——待定) |
merchant-poi(29 字段) |
poi_id/poi_name/省市区/address/latitude/longitude/poi_category/business_hours/电话×3 | 场次 POI 必填的数据源(建场次时选商家带出 POI);估价引擎距离计算的坐标源 |
merchant-profile |
merchant_name/brand_names/aweme_accounts/business_score/month_verify_gmv/listed_poi_count | 项目→商户带出(单商户项目免填链路) |
talent(35 字段) |
uid/unique_id/nick_name/城市/fans_count/等级四件套/credit_score | 达人广场主来源(二批定案:中台为主、集星现役过渡) |
talent-contact |
secret_number(虚拟号)/caller_phone/wechat_id | 建联三要素——比现有渠道全 |
talent-plan |
实测 0 行(暂空) | 达人合作计划与结算,待中台侧灌数 |
short-video(62 字段) |
video_id/播放/互动/GMV/author_type/video_power_level | P1-6 推荐 SOP 六维数据源(注意样本口径) |
video-stats-daily |
按 author_type 日汇总 GMV/核销/播放/新发布 | 总量口径(对账/看板用) |
order(26 字段,回溯 2022) |
order_id/券码/talent_name/pay/verify/refund | 履约核销对账 |
laike-domain / syj-domain |
来客/生意经全域 metrics | 扩展储备(生意经无权限问题被中台解决) |
search-word / review / ad-delivery / xhs-* |
热搜/评价/投流/小红书 | P2 舆情与投放分析储备 |
app/central.py 升级或新建 central_api.py:Bearer 认证(CENTRAL_API_TOKEN)、骨架检测重试(JSON parse fail → 重试 ≤3 次退避 2s)、caliber_note 透传落日志、httpx trust_env=False/data/talent/{uid}(免列表过滤)/data/merchant-poi/{poi_id} 单点 + 按 project_id 过滤列表——建场次流程的选择器数据源