PeumeAPI

Social media data · Facebook

Facebook Ad Details

Look up a single ad by ID or URL and get the advertiser, creative text, call-to-action, platforms, and run dates as clean JSON.

$0.0018 per callUsually answers in about a second

Call it

curl https://api.peume.com/v1/call/facebook-ad-details \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "id": "1249043200627555"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: facebook-ad-details.

Parameters

fieldsstring

Comma-separated keys (dotted paths descend) to keep on each result item. Trims the response, not the charge.

max_itemsinteger

Caps the result rows returned; `_truncated` says how many were withheld. Not the charge.

summaryboolean

`true` returns only an outline: keys, item counts, per-field sizes.

jqstring

jq expression over the result envelope; its output replaces `output`. A failed expression returns the full result with `jqError`.

idstring

ad ID (e.g. "702369045530963"). Provide either id or url.

Example: 1249043200627555

urlstring

ad URL (e.g. "https://www.facebook.com/ads/library?id=1185617869915074"). Provide either id or url.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.