# Apple Ad Repository Scraper — EU App Store Ads & Restrictions (`xyrelith-data/apple-ad-repository`) Actor

Query Apple's public EU DSA Ad Repository by app or developer name, App Store ID or URL, or whole country. Get ads with placement, dates, targeting, banner copy, creatives and locale variations, plus restriction/advertiser rows. No login or proxy.

- **URL**: https://apify.com/xyrelith-data/apple-ad-repository.md
- **Developed by:** [Xyrelith Data](https://apify.com/xyrelith-data) (community)
- **Categories:** Automation, Developer tools, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Apple Ad Repository Scraper — EU App Store Ads, Creatives & Restrictions

Apple publishes every Apple-delivered ad shown on the App Store in 25 European Union countries under Article 39 of the Digital Services Act. This actor reads that public Ad Repository and turns it into structured rows: find an app or developer by name, feed exact App Store IDs or URLs, pull whole countries, look up ad IDs, or export Apple's advertising-restriction feed. Every ad carries its placement, dates, targeting flags, banner copy, creative assets and stable links. No login, cookie, API key, browser or proxy setup.

### What you get

- **One row per ad per country** — Apple treats the same creative in two countries as two ads, and so does this actor.
- **Eight lookup modes** — name search, advertiser rows, app IDs, developer IDs, App Store URLs, ad IDs, country sweeps and restrictions.
- **Placement, format and restriction filters** — Search Results, Search Tab, Today Tab and Product Page; Icon Ad and Icon + Asset Ad; removed ads and suspended accounts.
- **Full creative detail** — every image/video with order, width, height and orientation, plus the app icon, subtitle, category, in-app-purchase flag, editorial badge, promotional text and short description.
- **Optional locale/device expansion** — one flat row per language variation × preview device, with localized name, subtitle, category, promotional text and per-device screenshots or videos.
- **Restriction records** — action date, action taken, reason, basis, details, first impression date, affected placements and countries, and targeting flags.
- **Advertiser records** — id, name, type, App Store/developer link, ad count, latest last-impression date and sample ad IDs.
- **Stable links on every row** — the Ad Repository detail page, the localized App Store page and the developer page.
- **Empty fields are omitted** — no `null`, blank strings or empty lists anywhere in the dataset.

### Modes

| Mode | What it reads | Notes |
|---|---|---|
| `search` | Apple's entity lookup, then every ad of each matched app/developer | `searchTerms` required; `maxEntities` bounds the fan-out |
| `entities` | Entity lookup plus one small ad query per entity | Advertiser/directory rows with counts |
| `appIds` | Ads for exact app IDs | `appIds` required |
| `developerIds` | Ads for every app of exact developer IDs | `developerIds` required |
| `appUrls` | App Store app/developer URLs or bare IDs | Also accepts Ad Repository detail URLs |
| `adIds` | One detail call per exact ad ID | No paging; still one row per ad |
| `countrySweep` | Ads with impressions in each selected country | Empty `countries` = all 25, one query per market |
| `restrictions` | Apple's advertising-restrictions feed | Upstream exposes only the first 100 rows per action |

### Inputs

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `search` | One of the eight modes above. |
| `searchTerms` | array | – | App or developer names, minimum 2 characters (mode `search` / `entities`). |
| `entityTypes` | array | `["APP", "DEVELOPER"]` | Resolve apps, developers or both. |
| `exactNameMatch` | boolean | false | Accept only an entity whose name equals the term (case/spaces ignored). |
| `appIds` | array | – | Numeric app IDs for mode `appIds`. |
| `developerIds` | array | – | Numeric developer IDs for mode `developerIds`. |
| `appUrls` | array | – | App Store app/developer URLs or bare IDs for mode `appUrls`. |
| `adIds` | array | – | Exact Ad Repository ad IDs or detail URLs. |
| `maxEntities` | integer | 10 | Cap on resolved apps plus developers. |
| `countries` | array | – | Apple's 25 EU markets; empty = all. |
| `datePreset` | string | `LAST_90_DAYS` | `LAST_90_DAYS`, `LAST_180_DAYS` or `LAST_YEAR`. |
| `placements` | array | – | Keep Search Results, Search Tab, Today Tab and/or Product Page. |
| `formats` | array | – | Keep `Icon Ad` and/or `Icon + Asset Ad`. |
| `restrictionActions` | array | `["ACTION_ADVERTISING_REMOVED", "ACTION_ACCOUNT_SUSPENDED"]` | Restriction events to read. |
| `maxItems` | integer | 100 | Cap on ads, restrictions or entities, depending on the mode. |
| `maxPagesPerQuery` | integer | 100 | Page guard per ad query (100 ads per page). |
| `expandVariations` | boolean | false | Emit flat locale × device variation rows (one extra request per ad). |
| `includeEntities` | boolean | false | In `search`, emit resolved entity rows before their ads. |

#### Search a competitor by name

```json
{
  "mode": "search",
  "searchTerms": ["Temu", "SHEIN"],
  "entityTypes": ["APP", "DEVELOPER"],
  "countries": ["DE", "FR"],
  "datePreset": "LAST_90_DAYS",
  "maxItems": 200
}
```

#### Sweep a whole market

```json
{
  "mode": "countrySweep",
  "countries": ["ES"],
  "datePreset": "LAST_180_DAYS",
  "placements": ["APPSTORE_TODAY_TAB"],
  "maxItems": 500
}
```

#### Exact app and ad IDs

```json
{
  "mode": "appIds",
  "appIds": ["1641486558"],
  "countries": ["DE"],
  "maxItems": 50,
  "expandVariations": true
}
```

```json
{
  "mode": "adIds",
  "adIds": [
    "0066695a88ddbdc763c9c0b91779a948",
    "https://adrepository.apple.com/ad-repository-ads/2f2ff5ff0fa86e2765f99437b0ca5601"
  ],
  "datePreset": "LAST_YEAR"
}
```

#### Removed ads and suspended accounts

```json
{
  "mode": "restrictions",
  "restrictionActions": ["ACTION_ADVERTISING_REMOVED", "ACTION_ACCOUNT_SUSPENDED"],
  "datePreset": "LAST_YEAR",
  "countries": ["FR", "DE"],
  "maxItems": 100
}
```

### Output rows

#### Ad rows (`rowType: "ad"`)

- Identity: `adId`, `adRepositoryUrl`, `appId`, `appName`, `appStoreUrl`, `developerId`, `developerName`, `developerUrl`, `legalName`
- Placement: `placement`, `placementLabel`, `format`, `subFormat`, `countryOrRegion`, `countryName`
- Timing: `firstImpressionDate`, `lastImpressionDate`, `daysActive`, `reportingPeriodStart`, `reportingPeriodEnd`
- Audience flags: `ageTarget`, `genderTarget`, `locationTarget`, `customerTypeTarget`
- Language/device: `defaultLanguageTag`, `defaultLanguageDisplayName`, `defaultPreviewDevice`
- Banner: `bannerIconUrl`, `bannerSubtitle`, `bannerPrimaryCategory`, `bannerInAppPurchases`, `bannerEditorialBadge`, `bannerJoeColor`, `bannerPromotionalText`, `bannerShortDescription`
- Creatives: `assets[]` (`pictureUrl`, `videoUrl`, `order`, `width`, `height`, `orientation`), `assetCount`, `imageCount`, `videoCount`, `hasImage`, `hasVideo`, `primaryPictureUrl`, `primaryVideoUrl`
- Detail enrichment: `appIconVariations[]`, `localeVariationCount`, `localeVariationLanguages[]`
- Traceability: `matchedEntityId`, `matchedEntityType`, `matchedEntityName`, `scrapedAt`

#### Variation rows (`rowType: "adVariation"`)

One row per locale variation and preview device: `adId`, `adRepositoryUrl`, `appId`, `appName`, `appStoreUrl`, `developerId`, `developerName`, `developerUrl`, `legalName`, `placement`, `placementLabel`, `countryOrRegion`, `countryName`, `languageTag`, `languageDisplayName`, `localizedAppName`, `subtitle`, `primaryCategory`, `promotionalText`, `previewDevice`, `assets[]` and the same creative counts/primary URLs, `firstImpressionDate`, `lastImpressionDate`, `daysActive`, `reportingPeriodStart`, `reportingPeriodEnd`, `scrapedAt`.

When Apple publishes no device assets for a variation, the actor emits one text-only variation row instead of inventing creatives.

#### Restriction rows (`rowType: "restriction"`)

`restrictionKey`, `actionDate`, `actionTaken`, `actionTakenLabel`, `reason`, `reasonLabel`, `basis`, `basisLabel`, `details`, `firstImpressionDate`, `ageTarget`, `genderTarget`, `locationTarget`, `customerTypeTarget`, `affectedPlacements[]` (`placement`, `placementLabel`, `countriesOrRegions[]`), `affectedCountries[]`, `affectedCountryNames[]`, `placements[]`, `placementLabels[]`, `reportingPeriodStart`, `reportingPeriodEnd`, `scrapedAt`.

#### Advertiser rows (`rowType: "entity"`)

`entityId`, `entityName`, `entityType`, `entityUrl`, `adCount`, `latestLastImpressionDate`, `sampleAdIds[]`, `countries[]` or `countryScope: "all"`, `datePreset`, `matchedQuery`, `scrapedAt`.

### How the actor handles Apple's API

- **No credentials, no proxy.** The public API rejects `Accept: */*`, so the actor sends `Accept: application/json` and a normal browser user agent.
- **Five countries per request.** Apple rejects country lists longer than five; the actor splits larger selections into chunks and dedupes the rows.
- **100 rows per page.** Every ad query walks Apple's offset pagination until `maxItems`, the published total, or `maxPagesPerQuery`.
- **Placement and format filters are client-side.** Apple has no selector for them. Rare placements may require deeper scanning; raise `maxPagesPerQuery` for exhaustive coverage.
- **Detail retries.** Apple's detail endpoint intermittently returns 504. The actor retries with exponential backoff and still emits the base ad if the detail never arrives; the run message reports how many detail calls failed.
- **Rate limits.** Requests are paced; `429` responses honour `Retry-After` and back off exponentially.
- **Seven-day delay.** Apple publishes data with a seven-day lag; the dataset includes Apple's reporting period on every row.

### Use cases

- **Competitive ad intelligence** — see which apps and developers buy App Store ads against yours, in which markets, on which placements and for how long.
- **ASO and creative research** — collect the subtitles, promotional text, screenshots and videos competitors pair with each placement.
- **Localization audits** — compare an advertiser's English, German, French and Spanish variations side by side.
- **Apple Search Ads prospecting** — build lists of active advertisers with ad counts and sample ads.
- **DSA and compliance monitoring** — export removed ads and suspended accounts with reasons, bases and affected countries.
- **Market research** — sample a whole country's App Store ad feed to understand category activity.

### FAQ

**Where does the data come from?** Apple's public Ad Repository at `adrepository.apple.com`, the EU DSA transparency register for App Store advertising. The actor uses Apple's documented public API; it does not need an Apple account.

**Which countries are covered?** Apple's 25: Austria, Belgium, Bulgaria, Croatia, Cyprus, Czech Republic, Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Ireland, Italy, Latvia, Luxembourg, Netherlands, Poland, Portugal, Romania, Slovakia, Slovenia, Spain and Sweden. There is no US, UK, Lithuanian or Maltese data.

**How fresh is it?** Apple delays publication by seven days. A `LAST_90_DAYS` run on 15 November 2026 covers impressions through 10 November 2026. The exact `reportingPeriodStart` and `reportingPeriodEnd` are on every ad and restriction row.

**Why are some banner fields missing?** Apple leaves `promotionalText`, `subtitle`, `subFormat` and `joeColor` empty for many ads. The actor omits empty values instead of inventing them.

**Why do restriction counts stop at 100?** Apple's restrictions endpoint reports `totalResults` above 100 but ignores `offset` and `page`: any offset beyond zero returns no rows. The actor reads the reachable first page per action, dedupes it and reports Apple's total, so the cap is visible in the logs.

**Why did my placement filter return fewer ads than `maxItems`?** Placement and format filters run after Apple returns rows. If the selected placement is rare, the actor may exhaust `maxPagesPerQuery` before finding enough matches. Raise that guard or use a narrower advertiser.

**Can I monitor new ads across runs?** Not in this version. There is no cross-run state; schedule the actor with a date preset and compare datasets yourself.

**Do creative links expire?** No. The App Store image and HLS video URLs are public and stable; they need no Referer or cookie. The actor emits them directly.

**Why is `expandVariations` slower?** It makes one extra detail request per ad. Apple's detail endpoint is the least reliable surface and sometimes returns 504; the actor retries and falls back to the base ad.

**Is this affiliated with Apple?** No. It is an independent tool that reads Apple's public transparency data. You are responsible for how you use the data.

### Hard limits

- EU only, exactly Apple's 25 markets.
- At most one year of history, delayed by seven days.
- No ad spend, impressions, clicks, keywords or bid data — Apple does not publish them.
- No custom start/end dates; Apple accepts only the three presets.
- At most five countries per API request and 100 rows per page; the actor handles both internally.
- Restrictions: only the first 100 rows per action per preset are reachable because Apple ignores offsets.
- No cross-run monitoring or change tracking.
- Placement and format filtering is client-side, bounded by `maxPagesPerQuery`.

### Data source and compliance

The source is Apple's Ad Repository API (`https://adrepository.apple.com/api/v1`), documented in Apple's public Ad Repository API guide. The actor reads only public transparency data, sends no credentials and stores nothing beyond the dataset you run.

# Actor input Schema

## `mode` (type: `string`):

What to fetch: name search, advertiser/entity rows, exact app or developer IDs, App Store URLs, exact ad IDs, a country-wide sweep, or Apple's advertising-restrictions feed.

## `searchTerms` (type: `array`):

Names resolved through Apple's own entity lookup (minimum 2 characters). Used by mode=search and mode=entities. Each term can resolve to several apps and developers.

## `entityTypes` (type: `array`):

Only resolve apps, only developers, or both. Used by mode=search and mode=entities.

## `exactNameMatch` (type: `boolean`):

Only accept an app or developer whose name is identical to the search term (case and outer spaces ignored). Useful when similar names collide.

## `appIds` (type: `array`):

Numeric App Store app IDs (for example 1641486558) or bare `id1641486558` values. Used by mode=appIds.

## `developerIds` (type: `array`):

Numeric App Store developer IDs. Every ad of every app of the developer is returned. Used by mode=developerIds.

## `appUrls` (type: `array`):

App Store app or developer URLs, or bare numeric IDs. App IDs, developer URLs and Ad Repository detail URLs are auto-detected. Used by mode=appUrls.

## `adIds` (type: `array`):

Exact Ad Repository ad IDs or detail URLs (adrepository.apple.com/ad-repository-ads/...). Used by mode=adIds and also accepted by mode=appUrls.

## `maxEntities` (type: `integer`):

Cap on apps plus developers resolved from the name lookup across all search terms.

## `countries` (type: `array`):

Apple's 25 EU ad markets. Empty = all countries (one all-country query for ID/name modes, one query per country for countrySweep). Lists longer than five are chunked automatically because Apple accepts at most five per request.

## `datePreset` (type: `string`):

Apple reports ads with impressions inside this window. Data is delayed by seven days.

## `placements` (type: `array`):

Keep only ads or restrictions in these App Store placements. Apple has no placement selector on this API, so the actor filters the rows it reads. Empty = all placements.

## `formats` (type: `array`):

Keep only ads in these formats (client-side). Empty = all formats.

## `restrictionActions` (type: `array`):

Which restriction events to read in mode=restrictions. Apple requires one action per request, so the actor queries each selected value. Empty = both.

## `maxItems` (type: `integer`):

Cap on emitted ads (ad modes), restrictions (restrictions mode) or entities (entities mode). Locale-variation rows and search-mode entity rows are additional.

## `maxPagesPerQuery` (type: `integer`):

Pagination guard for each ad query (100 ads per page). Raise it for deep sweeps and complete advertiser histories; lower it to bound requests.

## `expandVariations` (type: `boolean`):

Fetch each ad's detail endpoint (one extra request per ad) and emit one flat row per locale variation and device asset, including localized names, subtitles, categories, promotional text and per-device creatives.

## `includeEntities` (type: `boolean`):

In mode=search, also emit one entity row per resolved app or developer before its ads. Ignored by other modes.

## Actor input object example

```json
{
  "mode": "appIds",
  "searchTerms": [],
  "entityTypes": [
    "APP",
    "DEVELOPER"
  ],
  "exactNameMatch": false,
  "appIds": [
    "1641486558"
  ],
  "developerIds": [],
  "appUrls": [],
  "adIds": [],
  "maxEntities": 10,
  "countries": [
    "DE"
  ],
  "datePreset": "LAST_90_DAYS",
  "placements": [],
  "formats": [],
  "restrictionActions": [
    "ACTION_ADVERTISING_REMOVED"
  ],
  "maxItems": 2,
  "maxPagesPerQuery": 100,
  "expandVariations": false,
  "includeEntities": false
}
```

# Actor output Schema

## `records` (type: `string`):

Dataset containing ad, adVariation, restriction and entity rows scraped from Apple's public Ad Repository.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "appIds",
    "searchTerms": [],
    "entityTypes": [
        "APP",
        "DEVELOPER"
    ],
    "exactNameMatch": false,
    "appIds": [
        "1641486558"
    ],
    "developerIds": [],
    "appUrls": [],
    "adIds": [],
    "maxEntities": 10,
    "countries": [
        "DE"
    ],
    "datePreset": "LAST_90_DAYS",
    "placements": [],
    "formats": [],
    "restrictionActions": [
        "ACTION_ADVERTISING_REMOVED"
    ],
    "maxItems": 2,
    "maxPagesPerQuery": 100,
    "expandVariations": false,
    "includeEntities": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("xyrelith-data/apple-ad-repository").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "appIds",
    "searchTerms": [],
    "entityTypes": [
        "APP",
        "DEVELOPER",
    ],
    "exactNameMatch": False,
    "appIds": ["1641486558"],
    "developerIds": [],
    "appUrls": [],
    "adIds": [],
    "maxEntities": 10,
    "countries": ["DE"],
    "datePreset": "LAST_90_DAYS",
    "placements": [],
    "formats": [],
    "restrictionActions": ["ACTION_ADVERTISING_REMOVED"],
    "maxItems": 2,
    "maxPagesPerQuery": 100,
    "expandVariations": False,
    "includeEntities": False,
}

# Run the Actor and wait for it to finish
run = client.actor("xyrelith-data/apple-ad-repository").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "appIds",
  "searchTerms": [],
  "entityTypes": [
    "APP",
    "DEVELOPER"
  ],
  "exactNameMatch": false,
  "appIds": [
    "1641486558"
  ],
  "developerIds": [],
  "appUrls": [],
  "adIds": [],
  "maxEntities": 10,
  "countries": [
    "DE"
  ],
  "datePreset": "LAST_90_DAYS",
  "placements": [],
  "formats": [],
  "restrictionActions": [
    "ACTION_ADVERTISING_REMOVED"
  ],
  "maxItems": 2,
  "maxPagesPerQuery": 100,
  "expandVariations": false,
  "includeEntities": false
}' |
apify call xyrelith-data/apple-ad-repository --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xyrelith-data/apple-ad-repository"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/2h5NmnyambPXLmizT/builds/dIcIB0cQ3sI1brng3/openapi.json
