> ## 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.

# Pinterest Ads

> Your Pinterest ad accounts: list accounts, campaigns, ad groups and ads, and pull analytics for accounts and campaigns.

![](https://mintcdn.com/webrouter/T_A5Quwg50s_JK2y/logo/data-apis/pinterest-ads.webp?fit=max\&auto=format\&n=T_A5Quwg50s_JK2y\&q=85\&s=7641e7f7c1f4ab52b40fe0183f4a73f0)

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

Needs&#x20;

`PINTEREST_APP_ID`

,&#x20;

`PINTEREST_APP_SECRET`

,&#x20;

`PINTEREST_REFRESH_TOKEN`

Endpoints

6

Auth

OAuth refresh token

[Vendor docs](https://developers.pinterest.com/docs/api/v5/)

## Setup

| Variable | | What it is |
| - | - | - |
| `PINTEREST_APP_ID` | required | the app id of your Pinterest app (developers.pinterest.com > My apps) |
| `PINTEREST_APP_SECRET` | required | that app's secret key |
| `PINTEREST_REFRESH_TOKEN` | required | a refresh token for that app with the ads:read scope, from the OAuth authorization-code flow |

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

## Notes

* Own-account API: ad accounts the authorizing Pinterest user can access. Needs an approved app with ads access.
* Lists page with bookmark: pass the answer's bookmark back as bookmark until it is null.
* Analytics date ranges are capped at 90 days and cannot start more than 90 days back.
* Reads here; creating or updating ads is not included.

## Endpoints

GET

List ad accounts

Ad accounts the user owns, plus shared ones if asked.

[Open](#pinterest-ads-accounts-list)

GET

List campaigns

Campaigns of an ad account, filterable by id and status.

[Open](#pinterest-ads-campaigns-list)

GET

List ad groups

Ad groups of an ad account, filterable by campaign.

[Open](#pinterest-ads-ad-groups-list)

GET

List ads

Ads of an ad account, filterable by campaign, ad group and id.

[Open](#pinterest-ads-ads-list)

GET

Get ad account analytics

Metrics for the whole ad account over a date range.

[Open](#pinterest-ads-analytics-account)

GET

Get campaign analytics

Metrics for chosen campaigns over a date range.

[Open](#pinterest-ads-analytics-campaigns)

### List ad accounts

GET

`/ad_accounts`

`pinterest-ads.accounts.list`

Ad accounts the user owns, plus shared ones if asked.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr>
      <td>
        `include_shared_accounts`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Also list ad accounts shared with the user.
      </td>
    </tr>

    <tr>
      <td>
        `bookmark`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        bookmark from the previous answer, to fetch the next page.
      </td>
    </tr>

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

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page size.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.pinterest.com/docs/api/v5/ad_accounts-list/) · Same job: [Google Ads](https://docs.webrouter.net/data-apis/google-ads.md#google-ads-customers-list-accessible), [Snapchat Ads](https://docs.webrouter.net/data-apis/snapchat-ads.md#snapchat-ads-organizations-list)

```python Python theme={null}
router.call_data_api("pinterest-ads.accounts.list")
```

```text MCP theme={null}
call_data_api(endpoint="pinterest-ads.accounts.list")
```

### List campaigns

GET

`/ad_accounts/{ad_account_id}/campaigns`

`pinterest-ads.campaigns.list`

Campaigns of an ad account, filterable by id and status.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`ad_account_id` required</td><td>string</td><td>path</td><td>Pinterest ad account id, digits. Example `549755885175`</td></tr>

    <tr>
      <td>
        `campaign_ids`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Only these campaign ids.
      </td>
    </tr>

    <tr>
      <td>
        `entity_statuses`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Entity status filter, e.g. ACTIVE, PAUSED, ARCHIVED.
      </td>
    </tr>

    <tr>
      <td>
        `order`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        ASCENDING or DESCENDING by id.
      </td>
    </tr>

    <tr>
      <td>
        `bookmark`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        bookmark from the previous answer, to fetch the next page.
      </td>
    </tr>

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

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page size.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.pinterest.com/docs/api/v5/campaigns-list/) · Same job: [Meta Ads (Marketing API)](https://docs.webrouter.net/data-apis/meta-ads.md#meta-ads-campaigns-list), [Snapchat Ads](https://docs.webrouter.net/data-apis/snapchat-ads.md#snapchat-ads-campaigns-list), [TikTok Ads (Marketing API)](https://docs.webrouter.net/data-apis/tiktok-ads.md#tiktok-ads-campaign-list)

```python Python theme={null}
router.call_data_api("pinterest-ads.campaigns.list", {'ad_account_id': '549755885175'})
```

```text MCP theme={null}
call_data_api(endpoint="pinterest-ads.campaigns.list", params={"ad_account_id": "549755885175"})
```

### List ad groups

GET

`/ad_accounts/{ad_account_id}/ad_groups`

`pinterest-ads.ad_groups.list`

Ad groups of an ad account, filterable by campaign.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`ad_account_id` required</td><td>string</td><td>path</td><td>Pinterest ad account id, digits. Example `549755885175`</td></tr>

    <tr>
      <td>
        `campaign_ids`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Only ad groups in these campaigns.
      </td>
    </tr>

    <tr>
      <td>
        `ad_group_ids`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Only these ad groups.
      </td>
    </tr>

    <tr>
      <td>
        `entity_statuses`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Entity status filter, e.g. ACTIVE, PAUSED, ARCHIVED.
      </td>
    </tr>

    <tr>
      <td>
        `order`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        ASCENDING or DESCENDING by id.
      </td>
    </tr>

    <tr>
      <td>
        `translate_interests_to_names`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Return interests as names instead of topic ids.
      </td>
    </tr>

    <tr>
      <td>
        `bookmark`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        bookmark from the previous answer, to fetch the next page.
      </td>
    </tr>

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

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page size.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.pinterest.com/docs/api/v5/ad_groups-list/) · Same job: [TikTok Ads (Marketing API)](https://docs.webrouter.net/data-apis/tiktok-ads.md#tiktok-ads-adgroup-list)

```python Python theme={null}
router.call_data_api("pinterest-ads.ad_groups.list", {'ad_account_id': '549755885175'})
```

```text MCP theme={null}
call_data_api(endpoint="pinterest-ads.ad_groups.list", params={"ad_account_id": "549755885175"})
```

### List ads

GET

`/ad_accounts/{ad_account_id}/ads`

`pinterest-ads.ads.list`

Ads of an ad account, filterable by campaign, ad group and id.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`ad_account_id` required</td><td>string</td><td>path</td><td>Pinterest ad account id, digits. Example `549755885175`</td></tr>

    <tr>
      <td>
        `campaign_ids`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Only ads in these campaigns.
      </td>
    </tr>

    <tr>
      <td>
        `ad_group_ids`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Only ads in these ad groups.
      </td>
    </tr>

    <tr>
      <td>
        `ad_ids`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Only these ads.
      </td>
    </tr>

    <tr>
      <td>
        `entity_statuses`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Entity status filter, e.g. ACTIVE, PAUSED, ARCHIVED.
      </td>
    </tr>

    <tr>
      <td>
        `order`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        ASCENDING or DESCENDING by id.
      </td>
    </tr>

    <tr>
      <td>
        `bookmark`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        bookmark from the previous answer, to fetch the next page.
      </td>
    </tr>

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

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page size.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.pinterest.com/docs/api/v5/ads-list/) · Same job: [Snapchat Ads](https://docs.webrouter.net/data-apis/snapchat-ads.md#snapchat-ads-ads-list), [TikTok Ads (Marketing API)](https://docs.webrouter.net/data-apis/tiktok-ads.md#tiktok-ads-ad-list)

```python Python theme={null}
router.call_data_api("pinterest-ads.ads.list", {'ad_account_id': '549755885175'})
```

```text MCP theme={null}
call_data_api(endpoint="pinterest-ads.ads.list", params={"ad_account_id": "549755885175"})
```

### Get ad account analytics

GET

`/ad_accounts/{ad_account_id}/analytics`

`pinterest-ads.analytics.account`

Metrics for the whole ad account 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>`ad_account_id` required</td><td>string</td><td>path</td><td>Pinterest ad account id, digits. Example `549755885175`</td></tr>
    <tr><td>`start_date` required</td><td>string</td><td>query</td><td>YYYY-MM-DD (UTC), at most 90 days back. Example `2026-10-01`</td></tr>
    <tr><td>`end_date` required</td><td>string</td><td>query</td><td>YYYY-MM-DD (UTC), at most 90 days after start\_date. Example `2026-10-31`</td></tr>
    <tr><td>`columns` required</td><td>string</td><td>query</td><td>Metric columns, comma-separated: SPEND\_IN\_DOLLAR, IMPRESSION\_1, CLICKTHROUGH\_1, TOTAL\_CONVERSIONS, ... Example `SPEND_IN_DOLLAR,IMPRESSION_1,CLICKTHROUGH_1`</td></tr>
    <tr><td>`granularity` required</td><td>string</td><td>query</td><td>TOTAL aggregates over the range; DAY, HOUR, WEEK, MONTH split it. One of `TOTAL`, `DAY`, `HOUR`, `WEEK`, `MONTH`</td></tr>
    <tr><td>`click_window_days`</td><td>integer</td><td>query</td><td>Conversion attribution window in days for a pin click. One of `0`, `1`, `7`, `14`, `30`, `60`</td></tr>
    <tr><td>`engagement_window_days`</td><td>integer</td><td>query</td><td>Conversion attribution window in days for an engagement action. One of `0`, `1`, `7`, `14`, `30`, `60`</td></tr>
    <tr><td>`view_window_days`</td><td>integer</td><td>query</td><td>Conversion attribution window in days for a view action. One of `0`, `1`, `7`, `14`, `30`, `60`</td></tr>

    <tr>
      <td>
        `conversion_report_time`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Whether conversions are reported by the ad action date or the conversion date.
      </td>
    </tr>

    <tr>
      <td>
        `reporting_timezone`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Timezone for the report (beta).
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.pinterest.com/docs/api/v5/ad_account_analytics/) · 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), [Snapchat Ads](https://docs.webrouter.net/data-apis/snapchat-ads.md#snapchat-ads-stats-campaign), [TikTok Ads (Marketing API)](https://docs.webrouter.net/data-apis/tiktok-ads.md#tiktok-ads-report-query)

> [!NOTE]
>
> * Spend columns named \*\_IN\_DOLLAR are whole dollars; \*\_IN\_MICRO\_DOLLAR are millionths.

### Get campaign analytics

GET

`/ad_accounts/{ad_account_id}/campaigns/analytics`

`pinterest-ads.analytics.campaigns`

Metrics for chosen campaigns 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>`ad_account_id` required</td><td>string</td><td>path</td><td>Pinterest ad account id, digits. Example `549755885175`</td></tr>

    <tr>
      <td>
        `campaign_ids`

        required
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Campaign ids to report on.
      </td>
    </tr>

    <tr>
      <td>
        `start_date`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        YYYY-MM-DD (UTC), at most 90 days back.
      </td>
    </tr>

    <tr>
      <td>
        `end_date`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        YYYY-MM-DD (UTC), at most 90 days after start\_date.
      </td>
    </tr>

    <tr><td>`columns` required</td><td>string</td><td>query</td><td>Metric columns, comma-separated: SPEND\_IN\_DOLLAR, IMPRESSION\_1, CLICKTHROUGH\_1, TOTAL\_CONVERSIONS, ... Example `SPEND_IN_DOLLAR,IMPRESSION_1,CLICKTHROUGH_1`</td></tr>
    <tr><td>`granularity` required</td><td>string</td><td>query</td><td>TOTAL aggregates over the range; DAY, HOUR, WEEK, MONTH split it. One of `TOTAL`, `DAY`, `HOUR`, `WEEK`, `MONTH`</td></tr>
    <tr><td>`click_window_days`</td><td>integer</td><td>query</td><td>Conversion attribution window in days for a pin click. One of `0`, `1`, `7`, `14`, `30`, `60`</td></tr>
    <tr><td>`engagement_window_days`</td><td>integer</td><td>query</td><td>Conversion attribution window in days for an engagement action. One of `0`, `1`, `7`, `14`, `30`, `60`</td></tr>
    <tr><td>`view_window_days`</td><td>integer</td><td>query</td><td>Conversion attribution window in days for a view action. One of `0`, `1`, `7`, `14`, `30`, `60`</td></tr>

    <tr>
      <td>
        `conversion_report_time`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Whether conversions are reported by the ad action date or the conversion date.
      </td>
    </tr>

    <tr>
      <td>
        `aggregate_report_rows`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Aggregate rows across all requested campaigns (beta).
      </td>
    </tr>

    <tr>
      <td>
        `reporting_timezone`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Timezone for the report (beta).
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.pinterest.com/docs/api/v5/campaign_analytics/) · 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), [Snapchat Ads](https://docs.webrouter.net/data-apis/snapchat-ads.md#snapchat-ads-stats-campaign), [TikTok Ads (Marketing API)](https://docs.webrouter.net/data-apis/tiktok-ads.md#tiktok-ads-report-query)


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