SocialAPIs icon

SocialAPIs

Access public data from major social platforms

Meta Ads Library → Get Page Ad Details

AI-generated

Summary

Retrieve detailed information about a specific Facebook page's ads from the Meta Ads Library.

Inputs

  • pageId (required) — The Facebook Page ID whose ads to retrieve details for
  • requestOptions — Optional collection of request settings such as batching, SSL verification, proxy, and timeout
  • allowUnauthorizedCerts — Whether to ignore SSL certificate validation errors
  • proxy — HTTP proxy URL to use for the request
  • timeout — Request timeout in milliseconds

Output shape

a single ad record

Returns the ad's archive details; the exact fields depend on the ad but typically include status, targeting, spend, and metrics.

Examples

Example 1: Get ad details for a page

pageId=123456789, requestOptions={batching:{batchSize:50}}

Example 2: Fetch with default settings

pageId=987654321

Example 3: Ignore SSL issues and use a proxy

pageId=11223344, allowUnauthorizedCerts=true, proxy=http://proxy.example.com:3128, timeout=15000

Links

Discussion