Your Meta ads' spend, impressions, clicks, conversions
meta-ads.insightsGet spend, impressions, clicks and conversions for your Meta ads
- Price
- free제공업체 원가
- Success rate
- —성공률 데이터가 아직 없습니다성공률 데이터가 아직 없습니다
- Latency p50
- ——
- Last verified
- 2026. 7. 28.Verified working
GEThttps://toolswitch.dev/v1/tools/meta-ads.insights?limit=2&date_preset=last_7dPreview- Uses platform quota
- Synchronous response
- Reads public data
파라미터
conversions are NOT top-level fields: they arrive inside `actions` as [{action_type, value}] and you pick the action_type that matches the campaign's objective (purchase, lead, link_click). Attribution defaults to the ad account's setting unless action_attribution_windows is passed. A large request answers with a report_run_id for async polling instead of data
| 파라미터 | 유형 | 필수 | 설명 | 예시 |
|---|---|---|---|---|
| 경로 파라미터 | ||||
object_id | 문자열 | 필수 | ANY level of the hierarchy: act_… for the whole account, or a campaign / ad set / ad id to scope it down | act_1234567890 |
| 쿼리 파라미터 | ||||
level | 문자열 | 선택 | account | campaign | adset | ad — the granularity of the ROWS returned, independent of object_id | campaign |
limit | 정수 | 선택 | 100 | |
fields | 문자열 | 필수 | comma-separated metrics | spend,impressions,clicks,ctr,cpc,cpm,reach,frequency,actions,action_values |
breakdowns | 문자열 | 선택 | e.g. age,gender or publisher_platform — not every breakdown combines with every metric | publisher_platform |
time_range | 문자열 | 선택 | JSON as a string: {"since":"2026-07-01","until":"2026-07-28"} | |
date_preset | 문자열 | 선택 | today | yesterday | last_7d | last_14d | last_30d | this_month | maximum — mutually exclusive with time_range | last_30d |
time_increment | 문자열 | 선택 | 1 for a daily series; omit for one aggregate row | 1 |
- 경로 파라미터
object_id문자열필수ANY level of the hierarchy: act_… for the whole account, or a campaign / ad set / ad id to scope it down
예시:
act_1234567890- 쿼리 파라미터
level문자열선택account | campaign | adset | ad — the granularity of the ROWS returned, independent of object_id
예시:
campaignlimit정수선택예시:
100fields문자열필수comma-separated metrics
예시:
spend,impressions,clicks,ctr,cpc,cpm,reach,frequency,actions,action_valuesbreakdowns문자열선택e.g. age,gender or publisher_platform — not every breakdown combines with every metric
예시:
publisher_platformtime_range문자열선택JSON as a string: {"since":"2026-07-01","until":"2026-07-28"}
date_preset문자열선택today | yesterday | last_7d | last_14d | last_30d | this_month | maximum — mutually exclusive with time_range
예시:
last_30dtime_increment문자열선택1 for a daily series; omit for one aggregate row
예시:
1
코드 예제
$TOOLSWITCH_KEY를 콘솔에서 생성한 키로 바꾸세요.
curl -X GET 'https://toolswitch.dev/v1/tools/meta-ads.insights?limit=2&date_preset=last_7d' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/meta-ads.insights?limit=2&date_preset=last_7d",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/meta-ads.insights?limit=2&date_preset=last_7d", {
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이며 서비스 수수료가 포함되어 있습니다.