API para Facebook

API para Facebook: Detalhes do anúncio

Consulte um único anúncio da Biblioteca de Anúncios da Meta por ID ou URL e receba anunciante, texto do criativo, call to action, plataformas e datas de veiculação em JSON limpo.

POST/v1/run/facebook.ad_details
Disponibilidade
100,00%
30d · 63 chamadas
Requisições
63
30d · semanal, últimas 12 sem.
Resposta
2,5s
mediana · 30d

Preços

Um preço, em dólares

Teste

Faça sua primeira requisição

Abrir em
Obter chave grátis
Resposta de exemplo
Execuções grátis retornam só os primeiros 3 resultados. Recarregue uma chave para receber a resposta completa.
{
  "data": {
    "active": true,
    "adArchiveId": "a1b2c3d4",
    "caption": "A short example description of this item.",
    "categories": [
      "example"
    ],
    "ctaText": "A short example description of this item.",
    "currency": "USD",
    "displayFormat": "example",
    "endDate": 42,
    "isReshared": true,
    "linkDescription": "https://example.com/page",
    "linkUrl": "https://example.com/page",
    "media": [
      {
        "height": 42,
        "type": "general",
        "url": "https://example.com/page",
        "videoUrl": "https://example.com/page",
        "width": 1024
      }
    ],
    "pageCategories": [
      "example"
    ],
    "pageDeleted": false,
    "pageId": "a1b2c3d4",
    "pageLikes": 12500,
    "pageName": "Example title",
    "pageProfilePicture": "https://example.com/image.jpg",
    "pageUrl": "https://example.com/page",
    "platforms": [
      "example"
    ],
    "sourceUrl": "https://example.com/page",
    "startDate": 42,
    "text": "A short example description of this item.",
    "title": "Example title"
  },
  "found": true,
  "reason": "not_found"
}
Interface da resposta
interface FacebookAdDetailsResponse {
  data: {
    active?: boolean | null;
    adArchiveId: string;
    caption?: string;
    categories?: string[];
    ctaText?: string | null;
    currency?: string | null;
    displayFormat?: string | null;
    endDate?: number | null;
    isReshared?: boolean;
    linkDescription?: string;
    linkUrl?: string | null;
    media?: {
      height?: number;
      type: string;
      url: string;
      videoUrl?: string;
      width?: number;
    }[];
    pageCategories?: string[];
    pageDeleted?: boolean;
    pageId: string;
    pageLikes?: number;
    pageName?: string | null;
    pageProfilePicture?: string;
    pageUrl?: string;
    platforms?: string[] | null;
    sourceUrl: string;
    startDate?: number | null;
    text?: string | null;
    title?: string | null;
  } | null;
  found: boolean;
  reason?: "not_found";
}

Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.

Referência

Requisição, resposta e preço

Última verificação em 2026-09-29 · disponibilidade e latência medidas em 30d
POST /v1/run/facebook.ad_details
curl -X POST https://api.getanyapi.com/v1/run/facebook.ad_details \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id":"962050096457659"}'
CampoTipoValor de exemplo
Corpo da requisição
idstring"962050096457659"ID do anúncio na Biblioteca de Anúncios da Meta (ex.: "702369045530963"). Informe id ou url.
urlstringURL do anúncio na Biblioteca de Anúncios da Meta (ex.: "https://www.facebook.com/ads/library?id=1185617869915074"). Informe id ou url.
Resposta
dataobject
data.activebooleanWhether the ad is currently running.
data.adArchiveIdstringAd Library archive ID (stable identity). Populated whenever the provider has data for the entity.
data.captionstringCaption line of the ad creative, usually the advertiser's display domain.
data.categoriesstring[]Ad Library categories the ad is filed under.
data.ctaTextstringCall-to-action label. Populated whenever the provider has data for the entity.
data.currencystringSpend currency, may be empty.
data.displayFormatstringAd creative format. Populated whenever the provider has data for the entity.
data.endDateintegerRun end, epoch seconds.
data.isResharedbooleanWhether the ad creative is a reshare of another post.
data.linkDescriptionstringDescription text shown under the ad's link.
data.linkUrlstringCreative destination URL. Populated whenever the provider has data for the entity.
data.mediaobject[]Creative attached to the ad: one element per image, video, or carousel card, in the order the ad presents them. Empty when the ad has none.
data.media[].heightintegerPixel height of the media item, when the lane reports it.
data.media[].typestringOne of photo, video, or gif.
data.media[].urlstringImage URL. For a video or GIF this is the poster/thumbnail frame.
data.media[].videoUrlstringPlayable video file URL. Present only for video and gif items.
data.media[].widthintegerPixel width of the media item, when the lane reports it.
data.pageCategoriesstring[]Categories Facebook lists the advertising page under.
data.pageDeletedbooleanWhether the advertising page has been deleted.
data.pageIdstringAdvertiser page ID (stable identity). Populated whenever the provider has data for the entity.
data.pageLikesintegerLike count of the advertising page.
data.pageNamestringAdvertiser page name. Populated whenever the provider has data for the entity.
data.pageProfilePicturestringProfile picture of the advertising page. This is the advertiser's identity image, not ad creative.
data.pageUrlstringCanonical Facebook URL of the advertising page.
data.platformsstring[]Publisher platforms the ad runs on. Populated whenever the provider has data for the entity.
data.sourceUrlstringInspectable Meta Ad Library URL for this ad. Populated whenever the provider has data for the entity.
data.startDateintegerRun start, epoch seconds. Populated whenever the provider has data for the entity.
data.textstringAd body text. Populated whenever the provider has data for the entity.
data.titlestringCreative title. Populated whenever the provider has data for the entity.
foundboolean
reason"not_found"Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.
Preço
Preço por requisiçãoUSDUS$ 0,0012
Preço /mil req.USDUS$ 1,20

Dúvidas frequentes

Sobre o endpoint Detalhes do anúncio da API para Facebook

O endpoint Detalhes do anúncio da AnyAPI para Facebook retorna dados de Facebook em JSON normalizado com uma chamada POST para /v1/run/facebook.ad_details. Consulte um único anúncio da Biblioteca de Anúncios da Meta por ID ou URL e receba anunciante, texto do criativo, call to action, plataformas e datas de veiculação em JSON limpo. A AnyAPI retorna um schema normalizado, seja qual for a fonte que atende. Custa a partir de US$ 1,20 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 100,0% das chamadas ao endpoint Detalhes do anúncio da API para Facebook feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 2,5 segundos, em 63 chamadas medidas.

Custa a partir de US$ 1,20 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Você recarrega uma carteira em dólares e cada chamada desconta dela. Algumas requisições pagas pela carteira que falham geram cobranças de processamento, que repassamos pelo custo, sem margem; a resposta de erro mostra o valor cobrado.

Consulte um único anúncio da Biblioteca de Anúncios da Meta por ID ou URL e receba anunciante, texto do criativo, call to action, plataformas e datas de veiculação em JSON limpo. A resposta é JSON normalizado, com o mesmo envelope que todo endpoint da AnyAPI retorna, então processar um segundo endpoint é só trocar a URL, e nada mais.

Nos últimos 30 dias, 100,0% das chamadas ao endpoint Detalhes do anúncio da API para Facebook feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 2,5 segundos, em 63 chamadas medidas. Estas são medições da própria AnyAPI sobre o tráfego que passa pelo gateway, recalculadas continuamente, e não uma meta de nível de serviço publicada.