批量获取账户消耗

根据日期范围以及账户ID(支持多个账号),批量获取账户每日的消耗,POST请求

字段类型注释
platformShort平台:1meta; 3google; 5tiktok
access_tokenString联系开发人员获取token,token是和公司主体绑定的
sinceString开始时间(开始时间与结束时间最大间隔15天)
untilString结束时间(开始时间与结束时间最大间隔15天)
search_idString唯一标识一个请求
account_idslist需要获取消耗的账户列表,一次最多50个

返回的结果:

{
    {
    "resp_header": {
        "code": 1,
        "message": "成功",
        "search_id": "test_1234"
    },
    "data": [
        {
            "accountId": "123134223423",
            "date": "2026-10-19",
            "cost": 51.36
        },
        {
            "accountId": "123134223423",
            "date": "2026-10-20",
            "cost": 48.91
        }
    ]
}
}
字段类型注释
resp_headerObject
codeInt返回的编码,1:成功
messageString返回提示信息
search_idString唯一标识一个请求
accountIdString账户ID
dateString日期
costdecimal消耗

错误编码:

编码注释
1001系统异常
1047单次批量查询时间范围最多不能超过15天
1048account_ids 不能为空
1049单次批量查询最多支持50个账号