Meta AdsMeta AdsAdvertising

Your Meta ads' spend, impressions, clicks, conversions

meta-ads.insights

Get spend, impressions, clicks and conversions for your Meta ads

Price
freeAu prix du fournisseur
Success rate
—Aucune donnée de taux de réussite pour le momentAucune donnée de taux de réussite pour le moment
Latency p50
——
Last verified
28 juil. 2026Verified working
GEThttps://toolswitch.dev/v1/tools/meta-ads.insights?limit=2&date_preset=last_7dPreview
  • Uses platform quota
  • Synchronous response
  • Reads public data

Paramètres

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

ParamètreTypeObligatoireDescriptionExemple
Paramètres de chemin
object_idchaîneObligatoireANY level of the hierarchy: act_… for the whole account, or a campaign / ad set / ad id to scope it downact_1234567890
Paramètres de requête
levelchaîneFacultatifaccount | campaign | adset | ad — the granularity of the ROWS returned, independent of object_idcampaign
limitentierFacultatif100
fieldschaîneObligatoirecomma-separated metricsspend,impressions,clicks,ctr,cpc,cpm,reach,frequency,actions,action_values
breakdownschaîneFacultatife.g. age,gender or publisher_platform — not every breakdown combines with every metricpublisher_platform
time_rangechaîneFacultatifJSON as a string: {"since":"2026-07-01","until":"2026-07-28"}
date_presetchaîneFacultatiftoday | yesterday | last_7d | last_14d | last_30d | this_month | maximum — mutually exclusive with time_rangelast_30d
time_incrementchaîneFacultatif1 for a daily series; omit for one aggregate row1
  • Paramètres de chemin
  • object_idchaîneObligatoire

    ANY level of the hierarchy: act_… for the whole account, or a campaign / ad set / ad id to scope it down

    Exemple : act_1234567890

  • Paramètres de requête
  • levelchaîneFacultatif

    account | campaign | adset | ad — the granularity of the ROWS returned, independent of object_id

    Exemple : campaign

  • limitentierFacultatif

    Exemple : 100

  • fieldschaîneObligatoire

    comma-separated metrics

    Exemple : spend,impressions,clicks,ctr,cpc,cpm,reach,frequency,actions,action_values

  • breakdownschaîneFacultatif

    e.g. age,gender or publisher_platform — not every breakdown combines with every metric

    Exemple : publisher_platform

  • time_rangechaîneFacultatif

    JSON as a string: {"since":"2026-07-01","until":"2026-07-28"}

  • date_presetchaîneFacultatif

    today | yesterday | last_7d | last_14d | last_30d | this_month | maximum — mutually exclusive with time_range

    Exemple : last_30d

  • time_incrementchaîneFacultatif

    1 for a daily series; omit for one aggregate row

    Exemple : 1

Exemples de code

Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.

Preview
curl -X GET 'https://toolswitch.dev/v1/tools/meta-ads.insights?limit=2&date_preset=last_7d' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à free, frais de service inclus.