# Pinterest 广告详情 API (pinterest.ad_detail)

- Canonical page: [https://everyinfra.com/pinterest-api/ad_detail](https://everyinfra.com/pinterest-api/ad_detail?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "pinterest", "action": "ad_detail", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- 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=ad_detail

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| ad_id | not declared | yes | not declared | ads 每行的 id（一串数字）。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| advertiser_names | 广告主名字；ads 列表里一般没有，要的话拿 id 查 ad_detail。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| description | 简介或描述，通常比 text 短。 |
| creator_name | 原创作者的昵称。 |
| image_url | 图片链接。多图能力可能返回 image_urls 数组。 |
| video_url | 视频链接。 |
| start_date | 开始的日子（YYYY-MM-DD）：trend_reports 里是报告时间段的第一天，ads、ad_detail 里是投放开始的那天。 |
| end_date | 结束的日子（YYYY-MM-DD）：trend_reports 里是报告时间段的最后一天，ads、ad_detail 里是投放结束的那天。 |
| 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 | 各国的覆盖人数档：键是国家，值是平台给的档位（如 0 - 10000）。 |
| reach_eu_label | 在欧盟的覆盖人数档（如 0 - 10000）。 |
| is_commercial | 是否商业内容。 |
| is_local_inventory | 是否本地库存广告。 |
| review_status | 审核情况。 |
| violation_source | 违规是怎么发现的。 |
| violation_decision_means | 违规是怎么判定的。 |
| statement_of_reasons | 处理理由说明。 |
| collected_at | 这条数据的抓取时刻（ISO 8601，UTC）。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 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": "ad_detail",
  "params": {
    "ad_id": "4598808636507155712"
  }
}'
```

```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": "ad_detail",
        "params": {
            "ad_id": "4598808636507155712",
        },
    },
    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": "ad_detail",
  "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": …,
    "collected_at": …,
    "platform": …
  },
  "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
