> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# TikTok Ads (Marketing API)

> TikTok API for Business: ad accounts, campaigns, ad groups, ads and synchronous performance reports for the advertisers that authorized your app.

![](https://mintcdn.com/webrouter/8QP9EZc8V07Kl-0I/logo/data-apis/tiktok-ads.webp?fit=max\&auto=format\&n=8QP9EZc8V07Kl-0I\&q=85\&s=5c5803a9afa6ba11b42ec89bed73a9a9)

[Web Catalog · Advertising](https://docs.webrouter.net/data-apis.md?category=advertising)

Needs&#x20;

`TIKTOK_ADS_ACCESS_TOKEN`

Endpoints

5

Auth

Key in header

[Vendor docs](https://business-api.tiktok.com/portal/docs)

## Setup

| Variable | | What it is |
| - | - | - |
| `TIKTOK_ADS_ACCESS_TOKEN` | required | A TikTok API for Business access token from the advertiser authorization flow (business-api.tiktok.com > My Apps). |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Every path ends with a slash (/campaign/get/); keep it.
* List and object inputs on GET calls (filtering, dimensions, metrics, advertiser\_ids, fields) go in the query string as JSON-encoded strings, e.g. dimensions=\["campaign\_id","stat\_time\_day"].
* Errors come back in the body: check code and message (see Appendix - Return Codes); data holds the result.
* Advertiser ids the token can reach come from /oauth2/advertiser/get/, which needs the app id and secret and is not in this entry.
* Writes (create, update, status changes) and asynchronous report tasks are not in this entry.

## Endpoints

GET

Get ad account info

Name, status, currency, time zone, balance and other details of ad accounts.

[Open](#tiktok-ads-advertiser-info)

GET

List campaigns

Campaigns of an ad account, with their settings and status.

[Open](#tiktok-ads-campaign-list)

GET

List ad groups

Ad groups of an ad account, with targeting, budget and bidding.

[Open](#tiktok-ads-adgroup-list)

GET

List ads

Ads of an ad account, with their creative and status.

[Open](#tiktok-ads-ad-list)

GET

Run a report

Synchronous performance report: chosen metrics broken down by dimensions over a date range.

[Open](#tiktok-ads-report-query)

### Get ad account info

GET

`/advertiser/info/`

`tiktok-ads.advertiser.info`

Name, status, currency, time zone, balance and other details of ad accounts.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`advertiser_ids` required</td><td>string</td><td>query</td><td>JSON array string of advertiser ids. Example `["1234567890"]`</td></tr>

    <tr>
      <td>
        `fields`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        JSON array string of fields to return.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://github.com/tiktok/tiktok-business-api-sdk/blob/main/yml_files/advertiser_info.yml) · Same job: [Meta Ads (Marketing API)](https://docs.webrouter.net/data-apis/meta-ads.md#meta-ads-account-get), [Snapchat Ads](https://docs.webrouter.net/data-apis/snapchat-ads.md#snapchat-ads-ad-accounts-get)

```python Python theme={null}
router.call_data_api("tiktok-ads.advertiser.info", {'advertiser_ids': '["1234567890"]'})
```

```text MCP theme={null}
call_data_api(endpoint="tiktok-ads.advertiser.info", params={"advertiser_ids": "[\"1234567890\"]"})
```

### List campaigns

GET

`/campaign/get/`

`tiktok-ads.campaign.list`

Campaigns of an ad account, with their settings and status.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `advertiser_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Advertiser (ad account) id.
      </td>
    </tr>

    <tr>
      <td>
        `filtering`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Filters as a JSON object string, e.g. \{"campaign\_ids": \["123"]}; also primary\_status, objective\_type, creation\_filter\_start\_time and others.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, default 1.
      </td>
    </tr>

    <tr>
      <td>
        `page_size`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, default 10.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://business-api.tiktok.com/portal/docs?id=1739315828649986) · Same job: [Meta Ads (Marketing API)](https://docs.webrouter.net/data-apis/meta-ads.md#meta-ads-campaigns-list), [Pinterest Ads](https://docs.webrouter.net/data-apis/pinterest-ads.md#pinterest-ads-campaigns-list), [Snapchat Ads](https://docs.webrouter.net/data-apis/snapchat-ads.md#snapchat-ads-campaigns-list)

### List ad groups

GET

`/adgroup/get/`

`tiktok-ads.adgroup.list`

Ad groups of an ad account, with targeting, budget and bidding.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `advertiser_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Advertiser (ad account) id.
      </td>
    </tr>

    <tr>
      <td>
        `filtering`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Filters as a JSON object string, e.g. \{"adgroup\_ids": \["123"]}; also primary\_status, objective\_type, creation\_filter\_start\_time and others.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, default 1.
      </td>
    </tr>

    <tr>
      <td>
        `page_size`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, default 10.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://business-api.tiktok.com/portal/docs?id=1739314558673922) · Same job: [Pinterest Ads](https://docs.webrouter.net/data-apis/pinterest-ads.md#pinterest-ads-ad-groups-list)

### List ads

GET

`/ad/get/`

`tiktok-ads.ad.list`

Ads of an ad account, with their creative and status.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `advertiser_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Advertiser (ad account) id.
      </td>
    </tr>

    <tr>
      <td>
        `filtering`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Filters as a JSON object string, e.g. \{"ad\_ids": \["123"]}; also primary\_status, objective\_type, creation\_filter\_start\_time and others.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, default 1.
      </td>
    </tr>

    <tr>
      <td>
        `page_size`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, default 10.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://business-api.tiktok.com/portal/docs?id=1735735588640770) · Same job: [Pinterest Ads](https://docs.webrouter.net/data-apis/pinterest-ads.md#pinterest-ads-ads-list), [Snapchat Ads](https://docs.webrouter.net/data-apis/snapchat-ads.md#snapchat-ads-ads-list)

### Run a report

GET

`/report/integrated/get/`

`tiktok-ads.report.query`

Synchronous performance report: chosen metrics broken down by dimensions over a date range.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `advertiser_id`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Advertiser id (or use advertiser\_ids, or bc\_id for a BC report).
      </td>
    </tr>

    <tr>
      <td>
        `advertiser_ids`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        JSON array string of advertiser ids, for a multi-account report.
      </td>
    </tr>

    <tr>
      <td>
        `bc_id`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Business Center id, for report\_type BC.
      </td>
    </tr>

    <tr><td>`report_type` required</td><td>string</td><td>query</td><td>Report type. One of `BASIC`, `AUDIENCE`, `PLAYABLE_MATERIAL`, `CATALOG`, `BC`, `TT_SHOP`</td></tr>
    <tr><td>`service_type`</td><td>string</td><td>query</td><td>AUCTION or RESERVATION. One of `AUCTION`, `RESERVATION`</td></tr>
    <tr><td>`data_level`</td><td>string</td><td>query</td><td>Level the rows are at. One of `AUCTION_AD`, `AUCTION_ADGROUP`, `AUCTION_CAMPAIGN`, `AUCTION_ADVERTISER`, `RESERVATION_AD`, `RESERVATION_ADGROUP`, `RESERVATION_CAMPAIGN`, `RESERVATION_ADVERTISER`</td></tr>
    <tr><td>`dimensions`</td><td>string</td><td>query</td><td>JSON array string of grouping dimensions. Example `["campaign_id","stat_time_day"]`</td></tr>
    <tr><td>`metrics`</td><td>string</td><td>query</td><td>JSON array string of metrics. Example `["spend","impressions","clicks"]`</td></tr>

    <tr>
      <td>
        `start_date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Report start date.
      </td>
    </tr>

    <tr>
      <td>
        `end_date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Report end date.
      </td>
    </tr>

    <tr>
      <td>
        `query_lifetime`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Report over the whole lifetime instead of a date range.
      </td>
    </tr>

    <tr>
      <td>
        `filtering`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        JSON array string of \{field\_name, filter\_type, filter\_value} filters.
      </td>
    </tr>

    <tr>
      <td>
        `order_field`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Metric to sort by.
      </td>
    </tr>

    <tr><td>`order_type`</td><td>string</td><td>query</td><td>Sort direction. One of `ASC`, `DESC`</td></tr>

    <tr>
      <td>
        `enable_total_metrics`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Also return totals across all rows.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, default 1.
      </td>
    </tr>

    <tr>
      <td>
        `page_size`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Rows per page, 1 to 1000, default 10.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://business-api.tiktok.com/portal/docs?id=1740302848100353) · Same job: [Google Ads](https://docs.webrouter.net/data-apis/google-ads.md#google-ads-query), [Meta Ads (Marketing API)](https://docs.webrouter.net/data-apis/meta-ads.md#meta-ads-insights-get), [Pinterest Ads](https://docs.webrouter.net/data-apis/pinterest-ads.md#pinterest-ads-analytics-account), [Snapchat Ads](https://docs.webrouter.net/data-apis/snapchat-ads.md#snapchat-ads-stats-campaign)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.