Your Pinterest ad account performance — spend, conversions
pinterest-ads.queryGet spend, impressions, clicks and conversions for your Pinterest ad account
- Price
- free제공업체 원가
- Success rate
- —성공률 데이터가 아직 없습니다Last 30 days · 0 calls
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/pinterest-ads.queryPreview- Uses platform quota
- Synchronous response
- Reads public data
파라미터
metric names carry their unit: *_IN_DOLLAR fields are already in dollars (in the account currency), IMPRESSION_1 / CLICKTHROUGH_1 are the paid variants while IMPRESSION_2 / CLICKTHROUGH_2 are the earned/organic ones from the same promoted Pin — mixing them up double-counts
| 파라미터 | 유형 | 필수 | 설명 | 예시 |
|---|---|---|---|---|
| 경로 파라미터 | ||||
ad_account_id | 문자열 | 필수 | 549755885175 | |
| 쿼리 파라미터 | ||||
columns | 배열 | 필수 | REQUIRED, comma-separated metric names — there is no default. e.g. SPEND_IN_DOLLAR,IMPRESSION_1,CLICKTHROUGH_1,TOTAL_CONVERSIONS,CPC_IN_DOLLAR | ["SPEND_IN_DOLLAR","IMPRESSION_1","CLICKTHROUGH_1","TOTAL_CONVERSIONS"] |
end_date | 문자열 | 필수 | YYYY-MM-DD | 2026-07-28 |
start_date | 문자열 | 필수 | YYYY-MM-DD; the window may not exceed 90 days and may not start more than 90 days ago | 2026-06-28 |
granularity | 문자열 | 필수 | TOTAL | DAY | HOUR | WEEK | MONTH | DAY |
view_window_days | 정수 | 선택 | 0 | 1 | 7 | 14 | 30 (default 1) | |
click_window_days | 정수 | 선택 | conversion attribution window: 0 | 1 | 7 | 14 | 30 (default 30) | 30 |
conversion_report_time | 문자열 | 선택 | TIME_OF_AD_ACTION | TIME_OF_CONVERSION (default TIME_OF_AD_ACTION) — which date a conversion is booked against, and the usual reason two reports of the same period disagree | TIME_OF_AD_ACTION |
engagement_window_days | 정수 | 선택 | 0 | 1 | 7 | 14 | 30 (default 30) | |
- 경로 파라미터
ad_account_id문자열필수예시:
549755885175- 쿼리 파라미터
columns배열필수REQUIRED, comma-separated metric names — there is no default. e.g. SPEND_IN_DOLLAR,IMPRESSION_1,CLICKTHROUGH_1,TOTAL_CONVERSIONS,CPC_IN_DOLLAR
예시:
["SPEND_IN_DOLLAR","IMPRESSION_1","CLICKTHROUGH_1","TOTAL_CONVERSIONS"]end_date문자열필수YYYY-MM-DD
예시:
2026-07-28start_date문자열필수YYYY-MM-DD; the window may not exceed 90 days and may not start more than 90 days ago
예시:
2026-06-28granularity문자열필수TOTAL | DAY | HOUR | WEEK | MONTH
예시:
DAYview_window_days정수선택0 | 1 | 7 | 14 | 30 (default 1)
click_window_days정수선택conversion attribution window: 0 | 1 | 7 | 14 | 30 (default 30)
예시:
30conversion_report_time문자열선택TIME_OF_AD_ACTION | TIME_OF_CONVERSION (default TIME_OF_AD_ACTION) — which date a conversion is booked against, and the usual reason two reports of the same period disagree
예시:
TIME_OF_AD_ACTIONengagement_window_days정수선택0 | 1 | 7 | 14 | 30 (default 30)
코드 예제
$TOOLSWITCH_KEY를 콘솔에서 생성한 키로 바꾸세요.
curl -X GET 'https://toolswitch.dev/v1/tools/pinterest-ads.query' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/pinterest-ads.query",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/pinterest-ads.query", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());게이트웨이 API는 미리보기 버전이며 URL과 인증 방식이 변경될 수 있습니다. 예제 매개변수는 샘플 데이터입니다. 호출 요금은 free이며 서비스 수수료가 포함되어 있습니다.