# Pinterest Ads API (pinterest.ads)

- Canonical page: [https://everyinfra.com/en/pinterest-api/ads](https://everyinfra.com/en/pinterest-api/ads?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "pinterest", "action": "ads", "params": {...}}
- Price: $0.001597 per call ($1.6 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, one page of up to 25 per call; the number of rows varies from page to page and a short page is not the end (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page; no next_page_token means the end)
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; one call per page, tokens last 24 hours
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=pinterest&action=ads

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| country | enum: at / be / bg / br / cy / cz / de / dk / ee / es / fi / fr / gr / hr / hu / ie / it / lt / lu / lv / mt / nl / no / pl / pt / ro / se / si / sk / tr | yes | not declared | Two-letter code of the country the ads ran in: AT, BE, BG, BR, CY, CZ, DE, DK, EE, ES, FI, FR, GR, HR, HU, IE, IT, LT, LU, LV, MT, NL, NO, PL, PT, RO, SE, SI, SK, TR. |
| advertiser | not declared | no | not declared | Only this advertiser's ads. Use the name exactly as `advertiser_search` returns it. |
| age | enum: 18-24 / 25-34 / 35-44 / 45-49 / 50-54 / 55-64 / 65+ | no | not declared | Only ads aimed at this age group: 18-24, 25-34, 35-44, 45-49, 50-54, 55-64 or 65+ (one value). |
| end_date | not declared | no | not declared | Last day (YYYY-MM-DD), at most 31 days after `start_date`. When left out, today (UTC), or 30 days after `start_date` (not past today) if only that is given. For a longer span, query it in parts. |
| gender | enum: female / male | no | not declared | Only ads aimed at this gender: female or male. |
| page_token | not declared | no | not declared | Page token. Leave it out for the first page, then pass back the previous response's `next_page_token` unchanged, with the other parameters the same as on the first page. Each page counts as one call. |
| start_date | not declared | no | not declared | First day (YYYY-MM-DD), at the earliest one year and one day ago; when left out, 30 days before `end_date`. Ads whose run overlaps the range are included. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| advertiser_names | Advertiser names. Usually absent in `ads` rows; look up the `id` with `ad_detail` to get them. |
| title | Title. null when the platform has no titles (for example text-only posts). |
| description | Summary or description, usually shorter than text. |
| creator_name | Display name of the original creator. |
| image_url | Image link. Capabilities with several images may return an image_urls array. |
| video_url | Video link. |
| start_date | Start date (YYYY-MM-DD): in `trend_reports`, the start of the period the report covers; in `ads` and `ad_detail`, when the ad started running. |
| end_date | End date (YYYY-MM-DD): in `trend_reports`, the end of the period the report covers; in `ads` and `ad_detail`, when the ad stopped running. |
| countries | Countries the ad ran in. |
| regions | Regions the ad was aimed at. |
| metros | Cities the ad was aimed at. |
| postal_codes | Postal codes the ad was aimed at. |
| has_excluded_locations | Whether some locations were excluded. |
| age_buckets | Age groups the ad was aimed at. |
| genders | Genders the ad was aimed at. |
| interests | Interests the ad was aimed at. |
| audience_list_types | Types of audience lists used. |
| devices | Devices the ad was aimed at. |
| internet_service_providers | Internet service providers the ad was aimed at. |
| has_keywords | Whether keyword targeting was used. |
| has_negative_keywords | Whether negative keywords were used. |
| reach_by_country | Reach band by country: keys are countries and values are the bands Pinterest gives (such as 0 - 10000). |
| reach_eu_label | Reach band across the EU (such as 0 - 10000). |
| is_commercial | Whether the ad is commercial content. |
| is_local_inventory | Whether it is a local inventory ad. |
| review_status | Review status. |
| violation_source | How a violation was detected. |
| violation_decision_means | How a violation was decided. |
| statement_of_reasons | Statement of reasons for the moderation decision. |
| rank | Position in this response, from 1 (search, user_posts, boards, board_pins). |
| collected_at | Time this record was collected (ISO 8601, UTC). |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "pinterest",
  "action": "ads",
  "params": {
    "country": "de"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "pinterest",
        "action": "ads",
        "params": {
            "country": "de",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "pinterest",
  "action": "ads",
  "results": [
    {
      "id": …,
      "advertiser_names": …,
      "title": …,
      "description": …,
      "creator_name": …,
      "image_url": …,
      "video_url": …,
      "start_date": …,
      "end_date": …,
      "countries": …,
      "regions": …,
      "metros": …,
      "postal_codes": …,
      "has_excluded_locations": …,
      "age_buckets": …,
      "genders": …,
      "interests": …,
      "audience_list_types": …,
      "devices": …,
      "internet_service_providers": …,
      "has_keywords": …,
      "has_negative_keywords": …,
      "reach_by_country": …,
      "reach_eu_label": …,
      "is_commercial": …,
      "is_local_inventory": …,
      "review_status": …,
      "violation_source": …,
      "violation_decision_means": …,
      "statement_of_reasons": …,
      "rank": …,
      "collected_at": …,
      "platform": …
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=pinterest
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
