get_ad_details
facebook.comRetrieves a specific Meta/Facebook Ad Library record from https://www.facebook.com by Ad Library ID, including full creative content, platform distribution, spend and impressions, advertiser information, audience insights, and political funding disclosures when available.
Playground
Runs on Notte and spends your workspace credits — what comes back is the live response, not a sample.
What is get_ad_details?
Retrieves a specific Meta/Facebook Ad Library record from https://www.facebook.com by Ad Library ID, including full creative content, platform distribution, spend and impressions, advertiser information, audience insights, and political funding disclosures when available. It runs on Notte's browser infrastructure and returns structured JSON, so you can call it like any other API — pass ad_library_id, country and get the result back without maintaining a scraper.
Response
{
"ad": {},
"country": "<string>",
"ad_library_id": "<string>"
}Call it
curl --location 'https://us-prod.notte.cc/functions/1b23df6a-adb5-43ba-b001-98a54f94738c/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "1b23df6a-adb5-43ba-b001-98a54f94738c",
"variables": {
"ad_library_id": "1364946391271015",
"country": "US"
}
}'Ask an agent
Paste this into Claude Code, Cursor or any MCP client to have an agent call this function for you.
Use the Anything API MCP server (https://anything.notte.cc/mcp). Call run(function_id="1b23df6a-adb5-43ba-b001-98a54f94738c") — the "get_ad_details" function, which retrieves a specific Meta/Facebook Ad Library record from https://www.facebook.com by Ad Library ID, including full creative content, platform distribution, spend and impressions, advertiser information, audience insights, and political funding disclosures when available.. It takes ad_library_id (str), country (str). Return the result as structured JSON.