PeumeAPI

Ads

Direct video and image URLs for an ad

Returns fresh, short-lived download links for every image and video a Meta ad uses, including the original media of a boosted Instagram post.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/direct-video-and-image-urls-for-an-ad \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "adId": "your adId"
  }
}'

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: direct-video-and-image-urls-for-an-ad.

Parameters

accountIdstring

Meta only. A connection id ( or Facebook connection) used when `{adId}` is a Meta ad not in 's synced store, e.g. an Ads Manager ad on an ad account reached only through a Facebook connection. The ad is then read live from Meta through that connection, and the response carries `synced: false`. Ads Meta reports as DELETED are returned too, with their status. Same rules as GET /v1/ads/campaigns/{campaignId}: - Connection on a profile the API key cannot access: 404. - Ad on an ad account outside the connection's selected ad accounts: 403 `ad_account_not_selected`. - Id Met

adIdRequiredstring

ad id (24-char hex) or platform ad id.

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.