Your Pinterest ad account performance — spend, conversions
pinterest-ads.queryGet spend, impressions, clicks and conversions for your Pinterest ad account
- Price
- freeZum Anbieterpreis
- Success rate
- —Noch keine ErfolgsratendatenLast 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
Parameter
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
| Parameter | Typ | Erforderlich | Beschreibung | Beispiel |
|---|---|---|---|---|
| Pfadparameter | ||||
ad_account_id | Zeichenkette | Erforderlich | 549755885175 | |
| Abfrageparameter | ||||
columns | Array | Erforderlich | 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 | Zeichenkette | Erforderlich | YYYY-MM-DD | 2026-07-28 |
start_date | Zeichenkette | Erforderlich | YYYY-MM-DD; the window may not exceed 90 days and may not start more than 90 days ago | 2026-06-28 |
granularity | Zeichenkette | Erforderlich | TOTAL | DAY | HOUR | WEEK | MONTH | DAY |
view_window_days | Ganzzahl | Optional | 0 | 1 | 7 | 14 | 30 (default 1) | |
click_window_days | Ganzzahl | Optional | conversion attribution window: 0 | 1 | 7 | 14 | 30 (default 30) | 30 |
conversion_report_time | Zeichenkette | Optional | 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 | Ganzzahl | Optional | 0 | 1 | 7 | 14 | 30 (default 30) | |
- Pfadparameter
ad_account_idZeichenketteErforderlichBeispiel:
549755885175- Abfrageparameter
columnsArrayErforderlichREQUIRED, comma-separated metric names — there is no default. e.g. SPEND_IN_DOLLAR,IMPRESSION_1,CLICKTHROUGH_1,TOTAL_CONVERSIONS,CPC_IN_DOLLAR
Beispiel:
["SPEND_IN_DOLLAR","IMPRESSION_1","CLICKTHROUGH_1","TOTAL_CONVERSIONS"]end_dateZeichenketteErforderlichYYYY-MM-DD
Beispiel:
2026-07-28start_dateZeichenketteErforderlichYYYY-MM-DD; the window may not exceed 90 days and may not start more than 90 days ago
Beispiel:
2026-06-28granularityZeichenketteErforderlichTOTAL | DAY | HOUR | WEEK | MONTH
Beispiel:
DAYview_window_daysGanzzahlOptional0 | 1 | 7 | 14 | 30 (default 1)
click_window_daysGanzzahlOptionalconversion attribution window: 0 | 1 | 7 | 14 | 30 (default 30)
Beispiel:
30conversion_report_timeZeichenketteOptionalTIME_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
Beispiel:
TIME_OF_AD_ACTIONengagement_window_daysGanzzahlOptional0 | 1 | 7 | 14 | 30 (default 30)
Codebeispiele
Ersetze $TOOLSWITCH_KEY durch den in der Konsole erstellten Schlüssel.
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());Diese Gateway-API ist eine Vorschauversion; URL und Authentifizierung können sich ändern. Die Beispielparameter sind Musterdaten. Aufrufe werden mit free einschließlich Servicegebühr abgerechnet.