Ads API

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

Paths are relative to /v1/. Mirrors: Apify actors for the Meta Ad Library and Yelp.
  • Meta adsper ad
    In build
    Our price
    $0.00018$0.18 per 1,000 ads
    Published elsewhere
    Apify Store actors$0.20 to $3.40 per 1,000 ads; $0.50 to $0.75 typicalApify Store
  • Yelp adsper result
    In build
    Our price
    $0.00045$0.45 per 1,000 results
    Published elsewhere
    Apify Store actors$0.50 to $3.00 per 1,000 resultsApify Store
SERP prices are per mode: standard queue, priority queue, live. Prices elsewhere are as published on 2026-12-03 for the same unit; they may have changed since. Our list prices are pending commercial approval.

What each endpoint returns

  • Meta ads

    Apify format

    One 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 format

    Search 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, rendered or protected. With rendered, 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, rendered or protected: the level that returned the data.
upgraded
true when 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

Ad results may come from a shared cache up to 6 hours old, since ad sets change slowly within a day. Every response carries fetched_at, and max_age sets your own limit.

Migrating an existing integration

Swap the base URL and key. Use Basic auth with any login and your dg_ API key as the password, or send it as a Bearer token. Request bodies and response parsing stay as they are.
Path changes for Ads API
You call todayCall instead
https://api.apify.com/v2/acts/<actor>/run-sync-get-dataset-itemshttps://api.dataforgaio.com/v1/ads/meta
POST /v1/ads/metaRequest
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
  }'
200 OKResponse, abridged
[
  {
    "adArchiveId": "…",
    "pageName": "…",
    "adText": "…",
    "startDate": "2026-11-28",
    "publisherPlatforms": ["facebook", "instagram"],
    "receipt_id": "rcpt_…"
  }
]

Run the Ads API on your own inputs.

Start with no deposit. Each task reports its cost and comes with a receipt.