← 返回目录
📁 API Reference › Media Mix Modeling

获取 MMM 数据的下载 URL

你可以使用本接口获取媒体组合建模 (MMM) 数据的下载 URL。

请求

地址 https://business-api.tiktok.com/open_api/v1.3/mmm/api/download/

方法 GET

Header

|字段{30%}|类型{15%}|描述{55%}|
|---|---|---|
|Access-Token {必填}|string|授权访问令牌。可以通过[获取访问令牌](1738373164380162.html)接口获取。|

参数

|字段{30%}|类型{15%}|描述{55%}|
|--- |--- |--- |
| mmm_request_id {必填} | string | MMM 数据请求的唯一识别 ID。<br><br> <ul><li>若想创建 MMM 数据请求并获取数据请求 ID,需使用 [/mmm/api/create/](https://business-api.tiktok.com/portal/docs/create-an-mmm-data-request/v1.3) 接口。</li><li>若想获取 MMM 数据请求历史记录,包括数据请求 ID,需使用 [/mmm/api/history/](https://business-api.tiktok.com/portal/docs/get-the-mmm-data-request-history/v1.3) 接口。 </li></ul>|

示例

(code curl http)
curl --location --request GET 'https://business-api.tiktok.com/open_api/v1.3/mmm/api/download/?mmm_request_id={{mmm_request_id}}' \
--header 'Access-Token: {{Access-Token}}'
(/code)

返回

|字段{30%}|类型{15%}|描述{55%}|
|---|---|---|
|code |number|返回码。完整返回码列表及描述参见[附录 - 返回码](https://ads.tiktok.com/marketing_api/docs?id=1737172488964097)。 |
|message|string|返回信息。更多信息参见[附录 - 返回码](https://ads.tiktok.com/marketing_api/docs?id=1737172488964097)。|
|request_id |string|请求的日志 ID,唯一标识一个请求。  |
|data |object|返回数据。|
#| download_url| string | 用于下载 MMM 数据 CSV 压缩文件的 URL。<br><br>有效期:7 天。<br>URL 过期后,你需要调用 [/mmm/api/download/](https://business-api.tiktok.com/portal/docs/obtain-the-download-url-for-mmm-data/v1.3) 接口获取新的 URL。<br><br>如需了解可用的 MMM 数据字段,参见 [MMM 模板数据模式](https://bytedance.sg.larkoffice.com/sheets/YDwDsKe5whGQWdtaZVrlD9BHgIc)。 |

示例

(code Success-Response http)
HTTPS/1.1 200 OK
{
    "code": 0,
    "message": "OK",
    "request_id": "{{request_id}}",
    "data": {
        "download_url": "{{download_url}}"
    }
}
(/code)

内容来源:TikTok API for Business 官方文档 · 本地归档

在接这个接口时卡住了?
Stuck wiring this API into production? We build ad-delivery tooling on these platforms — campaign automation, reporting pipelines, error-handling and migration between API versions.
联系我们 · Talk to us 每日平台更新简报 →