Meta AdsMeta AdsAdvertising

Your Meta ads' spend, impressions, clicks, conversions

meta-ads.insights

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

Price
freePelo preço do provedor
Success rate
—Ainda não há dados da taxa de sucessoAinda não há dados da taxa de sucesso
Latency p50
——
Last verified
28 de jul. de 2026Verified working
GEThttps://toolswitch.dev/v1/tools/meta-ads.insights?limit=2&date_preset=last_7dPreview
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parâmetros

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

ParâmetroTipoObrigatórioDescriçãoExemplo
Parâmetros de caminho
object_idstringObrigatórioANY level of the hierarchy: act_… for the whole account, or a campaign / ad set / ad id to scope it downact_1234567890
Parâmetros de consulta
levelstringOpcionalaccount | campaign | adset | ad — the granularity of the ROWS returned, independent of object_idcampaign
limitinteiroOpcional100
fieldsstringObrigatóriocomma-separated metricsspend,impressions,clicks,ctr,cpc,cpm,reach,frequency,actions,action_values
breakdownsstringOpcionale.g. age,gender or publisher_platform — not every breakdown combines with every metricpublisher_platform
time_rangestringOpcionalJSON as a string: {"since":"2026-07-01","until":"2026-07-28"}
date_presetstringOpcionaltoday | yesterday | last_7d | last_14d | last_30d | this_month | maximum — mutually exclusive with time_rangelast_30d
time_incrementstringOpcional1 for a daily series; omit for one aggregate row1
  • Parâmetros de caminho
  • object_idstringObrigatório

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

    Exemplo: act_1234567890

  • Parâmetros de consulta
  • levelstringOpcional

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

    Exemplo: campaign

  • limitinteiroOpcional

    Exemplo: 100

  • fieldsstringObrigatório

    comma-separated metrics

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

  • breakdownsstringOpcional

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

    Exemplo: publisher_platform

  • time_rangestringOpcional

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

  • date_presetstringOpcional

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

    Exemplo: last_30d

  • time_incrementstringOpcional

    1 for a daily series; omit for one aggregate row

    Exemplo: 1

Exemplos de código

Substitua $TOOLSWITCH_KEY pela chave criada no 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"

Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a free, incluindo a taxa de serviço.