# iTunes & App Store Search API Scraper (`ahmdshrif/itunes-app-store-search-scraper`) Actor

Queries the official iTunes Search API for any term/entity combination and exports flat, typed records for apps, songs, podcasts, or other media with pricing, ratings, and metadata.

- **URL**: https://apify.com/ahmdshrif/itunes-app-store-search-scraper.md
- **Developed by:** [Ahmed](https://apify.com/ahmdshrif) (community)
- **Categories:** Developer tools, SEO tools, E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.20 / 1,000 per result returneds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## iTunes Search API Scraper

Queries Apple's official iTunes Search API for any term and entity type (apps, songs, podcasts, and other media) and returns flat, typed JSON records with pricing, ratings, genres, and full metadata. Built for ASO teams tracking app store rankings, developers benchmarking competitor apps, and researchers or marketplaces needing structured iTunes/App Store data without writing API integration code.

### Why this scraper

- **One flat schema for every media type.** Apps, songs, and podcasts all come back with the same normalized field set, so you don't need separate parsing logic per entity type.
- **Query context included in every record.** Each result carries the `searchTerm` and `entity` it was found under, so you can trace results back to the query that produced them when running multiple searches in one job.
- **$0.0002 per result.** Priced well below comparable pay-per-result iTunes scrapers with established usage.

### Output fields

| Field | Type | Description |
|---|---|---|
| trackId | integer | Unique iTunes/App Store identifier for the result |
| trackName | string | Name of the app, song, or media item |
| artistName | string | Developer, artist, or seller name |
| sellerName | string | Legal seller name (apps only) |
| bundleId | string | App bundle identifier (apps only) |
| kind | string | Media kind, e.g. software, song, podcast |
| wrapperType | string | iTunes wrapper type of the result |
| primaryGenreName | string | Primary genre/category name |
| genres | string | Comma-separated list of all genres |
| price | number | Numeric price in the store currency |
| currency | string | ISO currency code |
| formattedPrice | string | Human-readable price string, e.g. Free or $4.99 |
| averageUserRating | number | Average user rating across all versions |
| userRatingCount | integer | Total number of user ratings |
| releaseDate | string | Original release date, ISO 8601 |
| currentVersionReleaseDate | string | Release date of current version, ISO 8601 |
| version | string | Current version string |
| description | string | Full store description text |
| artworkUrl | string | URL of the 512x512 artwork image |
| trackViewUrl | string | Public store page URL for the item |
| minimumOsVersion | string | Minimum required OS version (apps only) |
| fileSizeBytes | integer | App file size in bytes (apps only) |
| contentAdvisoryRating | string | Content age rating, e.g. 4+ |
| collectionName | string | Album or collection name (music/media only) |
| trackTimeMillis | integer | Track duration in milliseconds (music only) |
| searchTerm | string | The search term extracted from the input startUrl |
| entity | string | The entity type queried, e.g. software or song |

### Input

```json
{
  "startUrls": [
    { "url": "https://itunes.apple.com/search?term=fitness&entity=software&limit=50" }
  ],
  "maxItems": 50
}
```

### Output

```json
{
  "trackId": 1208224953,
  "trackName": "Apple Fitness",
  "artistName": "Apple",
  "sellerName": "Apple Inc.",
  "bundleId": "com.apple.Fitness",
  "kind": "software",
  "wrapperType": "software",
  "primaryGenreName": "Health & Fitness",
  "genres": "Health & Fitness",
  "price": 0,
  "currency": "USD",
  "formattedPrice": "Free",
  "averageUserRating": 2.86673,
  "userRatingCount": 11405,
  "releaseDate": "2017-04-10T23:30:13Z",
  "currentVersionReleaseDate": "2026-03-17T21:41:25Z",
  "version": "2.7",
  "description": "Apple Fitness and Apple Fitness+\nGet a comprehensive view of your fitness including Activity details, training load, Trends, and Awards...",
  "artworkUrl": "https://is1-ssl.mzstatic.com/image/thumb/Purple221/v4/93/61/a0/9361a04d-3951-ec4b-4566-65ba69afc4fc/fitness-0-0-1x_U007epad-0-1-0-sRGB-85-220.png/512x512bb.jpg",
  "trackViewUrl": "https://apps.apple.com/us/app/apple-fitness/id1208224953?uo=4",
  "minimumOsVersion": "11.0",
  "fileSizeBytes": 9921536,
  "contentAdvisoryRating": "4+",
  "collectionName": "",
  "trackTimeMillis": null,
  "searchTerm": "fitness",
  "entity": "software"
}
```

### Pricing

Pay-per-result at **$0.0002 per record returned**. A search returning 50 results (one `startUrl` with `limit=50`) costs $0.01. Running the three sample queries above (150 results total) costs $0.03.

### Use cases

- **ASO keyword tracking:** run the same search term weekly with `entity=software` to monitor how an app's ranking, rating, and price shift in results over time.
- **Competitor app research:** pull all apps in a category (e.g. `term=finance&entity=software`) to compare pricing, ratings, and update frequency across a market segment.
- **Music/podcast catalog lookups:** query `entity=song` or `entity=podcast` to build a flat dataset of track metadata, genres, and release dates for a content library or recommendation feature.

# Actor input Schema

## `startUrls` (type: `array`):

Pages to export.

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

Stop after this many records.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://itunes.apple.com/search?term=fitness&entity=software&limit=50"
    },
    {
      "url": "https://itunes.apple.com/search?term=finance&entity=software&limit=50"
    },
    {
      "url": "https://itunes.apple.com/search?term=music&entity=song&limit=50"
    }
  ],
  "maxItems": 50
}
```

# Actor output Schema

## `results` (type: `string`):

One structured record per input URL.

# 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 = {
    "startUrls": [
        {
            "url": "https://itunes.apple.com/search?term=fitness&entity=software&limit=50"
        },
        {
            "url": "https://itunes.apple.com/search?term=finance&entity=software&limit=50"
        },
        {
            "url": "https://itunes.apple.com/search?term=music&entity=song&limit=50"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ahmdshrif/itunes-app-store-search-scraper").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 = { "startUrls": [
        { "url": "https://itunes.apple.com/search?term=fitness&entity=software&limit=50" },
        { "url": "https://itunes.apple.com/search?term=finance&entity=software&limit=50" },
        { "url": "https://itunes.apple.com/search?term=music&entity=song&limit=50" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("ahmdshrif/itunes-app-store-search-scraper").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 '{
  "startUrls": [
    {
      "url": "https://itunes.apple.com/search?term=fitness&entity=software&limit=50"
    },
    {
      "url": "https://itunes.apple.com/search?term=finance&entity=software&limit=50"
    },
    {
      "url": "https://itunes.apple.com/search?term=music&entity=song&limit=50"
    }
  ]
}' |
apify call ahmdshrif/itunes-app-store-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ahmdshrif/itunes-app-store-search-scraper"
        }
    }
}
```

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/xEBSQcGsyqffJDGKf/builds/vyEWx7YxkgZN4uVwr/openapi.json
