Skip to content

Meta Ads APIfor AI agents

One API for Meta Ad Library data. Get Facebook and Instagram ads, their audience and their reach as JSON.

Start for free

The Meta ads your agent needs.

Meta Ad Library returns ads for a keyword. Control it by country, status, media type, platform and date.

terminal
curl -X POST "https://api.stophy.dev/v1/meta/ads/search" \
-H "Authorization: Bearer $STOPHY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"country": "us",
"platforms": [
"instagram"
],
"query": "nike",
"status": "active"
}'

How agents use it.

  • Audit a competitor's ads

    The agent calls metaAdsPage with the name of a Facebook page and status set to active. It then calls metaAdsAd with each adId to read audienceAgeGender and euReachTotal.

  • Collect ad copy for a keyword

    The agent calls metaAdsSearch with a keyword, a country and mediaType set to video. It reads text, ctaText and linkUrl, then calls metaAdsPage with a pageId to see what else that page runs.

  • Check who pays for an ad

    The agent calls metaAdsSearch to find an ad on a topic. It then calls metaAdsAd and reads payers, where paidBy names who paid and beneficiary names who the ad is for.

Start free. Pay per call after.

No plans and no monthly fee. 1,000 free credits to start, then $1.50 per 1,000 credits, $1.20 from $100 and $0.80 from $500. Credits never expire.

Free

Every account starts with free credits. No card needed.

1,000 free credits

$0

Start for free
  • ✓Every source

Pay as you go

Add credits to your balance and spend them one call at a time.

$1.50 per 1,000 credits, $1.20 from $100 and $0.80 from $500

$0.0015/ credit

10,000 credits≈ $13.50

Most calls cost 1 credit.

Get an API key
  • ✓Never expires

Custom

For teams that need higher rate limits or a source we do not cover yet.

Volume pricing

Custom

Talk to us
  • ✓Custom rate limits
  • ✓New sources on request
  • ✓Direct support

Questions and answers.

Get started

Give your agent the web today.

Sign up for 1,000 free credits. No card needed.