Ad library data for Meta and Yelp.
Pull the ads a page or advertiser is running on Meta, or the sponsored results on a Yelp search. Send the actor input JSON your integration already builds and get dataset items back.
Endpoints and prices
/v1/. Mirrors: Apify actors for the Meta Ad Library and Yelp.- Meta adsper adIn buildOur price$0.00018$0.18 per 1,000 adsPublished elsewhere
- Yelp adsper resultIn buildOur price$0.00045$0.45 per 1,000 resultsPublished elsewhere
What each endpoint returns
Meta ads
Apify formatOne item per ad: advertiser, ad text, creative URLs, start date, platforms and, where Meta publishes them, reach and spend ranges.
- POST /v1/ads/meta
Yelp ads
Apify formatSearch results for a term and location, organic and sponsored, with sponsored rows flagged.
- POST /v1/ads/yelp
Auto-upgrade for this family
Yelp search pages are often behind a bot check, so Auto-upgrade moves those requests up a level when needed. The receipt shows the level and the reason.
Ads prices already cover whatever level a page needs, so an upgrade never changes what you pay per ad or result. Set auto_upgrade: false to stay at Standard and accept fewer results.
Set a limit in the request
- auto_upgrade: false
- Stay at the level the price includes. A blocked request returns an error and costs $0.
- max_level
- A ceiling:
standard,renderedorprotected. Withrendered, a request never uses Protected. - max_cost
- The most a task may cost, in dollars. We never upgrade past it.
Read what happened in the response
- fetch_level
standard,renderedorprotected: the level that returned the data.- upgraded
truewhen the request went above the level its price includes.- upgrade_reason
- Why, in plain terms, for example
403 at standard; challenge page at rendered. - cost
- What this task was charged. The receipt splits it into base and upgrade.
Freshness and caching
Migrating an existing integration
dg_ API key as the password, or send it as a Bearer token. Request bodies and response parsing stay as they are.| You call today | Call instead |
|---|---|
| https://api.apify.com/v2/acts/<actor>/run-sync-get-dataset-items | https://api.dataforgaio.com/v1/ads/meta |
curl -H "Authorization: Bearer $DATAFORGAIO_API_KEY" \
-H "Content-Type: application/json" \
https://api.dataforgaio.com/v1/ads/meta \
-d '{
"searchTerms": ["running shoes"],
"country": "US",
"activeStatus": "active",
"maxItems": 100
}'[
{
"adArchiveId": "…",
"pageName": "…",
"adText": "…",
"startDate": "2026-11-28",
"publisherPlatforms": ["facebook", "instagram"],
"receipt_id": "rcpt_…"
}
]Other families
Run the Ads API on your own inputs.
Start with no deposit. Each task reports its cost and comes with a receipt.