# App Details API - iOS App Store and Google Play (`stas_k/app-details-api`) Actor

You should not pay twice for one app detail: most app scrapers cover only one store. This one reads the iOS App Store and Google Play in a single run, charges only for an app that landed, and names every id it could not find.

- **URL**: https://apify.com/stas_k/app-details-api.md
- **Developed by:** [Stas K](https://apify.com/stas_k) (community)
- **Categories:** Developer tools, SEO tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 app details

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?

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

## App Details API: iOS App Store and Google Play in one run

One list of apps in, one row per app out, with the numbers you would otherwise copy by
hand: rating, number of ratings, installs, price, genres, version, last update, content
rating, in app purchases, minimum OS, icon and store link.

Both stores are read by their public endpoints. No API key, no proxy, no browser, no
login, so nothing outside can be revoked to stop it working.

### Why this exists

Most actors in this niche cover one store. If your list has both iPhone and Android
apps, you either buy two actors, or you keep two spreadsheets and join them yourself. This actor takes a mixed list and decides per item which store to ask.

### Input

- `apps` (required): App Store numeric ids, `apps.apple.com` links, Google Play package
  names, `play.google.com` links, or plain dotted names such as `com.instagram.android`.
  A dotted name is looked up in Google Play first and in the App Store bundle id second,
  so a mixed list needs no extra field.
- `country` (default `us`): two letter store country. Ratings, prices and availability
  are reported for this country, and the App Store request really does ask that
  storefront, so an app that is not sold there comes back as not found.
- `lang` (default `en`): language of the Google Play page.
- `platform` (default `both`): which store to try for a dotted name. A numeric id or a
  store link already says its store, and this field does not override it.
- `maxApps` (default 25, maximum 100): how many apps one run reads.
- `includeDescription` (default false): add the long store description to each row.

### Output

One row per delivered app: `platform`, `appId`, `storeId`, `title`, `developer`,
`rating`, `ratingsCount`, `reviewsCount`, `installs`, `installsExact`, `price`,
`currency`, `free`, `genres`, `version`, `released`, `lastUpdated`, `contentRating`,
`adSupported`, `offersInAppPurchases`, `minimumOs`, `fileSizeBytes`, `languages`,
`country`, `iconUrl`, `storeUrl`, and `billable`.

Fields that a store does not publish are `null`, not zero. The App Store does not publish
installs or the number of written reviews, Google Play does not publish the app file
size or the language list. `minimumOs` is reported for iOS only: the Play client does
not expose the Android version requirement at all. `installs` is the store bracket as text (`5,000,000,000+`),
`installsExact` is the number Google Play reports behind it.

### Price

You pay for one delivered app detail (`app-detail`), and only when the row reached the
dataset. The lowest spending limit you can set per run is $0.05.

Free, with a status and a reason instead of data: an empty or unusable input, a repeated
app, an app the store does not have, an app past `maxApps`, an app the run had no time
for, a store that answered an error, and anything after the spending cap or after a
failed charge.

A row that could not be delivered carries no `appId`, `title`, `iconUrl` or `storeUrl`,
so a free row can never be mistaken for a delivered one.

`billable` on a row is the price claim taken before the write, not a receipt: the money
actually charged lives in `chargedEvents` and `deliveredUncharged` in the run summary.
An empty `apps` list is an input mistake and the run stops with a message naming the
field, rather than returning a green run with nothing in it.

### What this actor does not do

- It does not read reviews. That is `app-reviews-api`.
- It does not download screenshots or the app binary, it only returns their links.
- It does not track rank, keywords or search position over time.
- It does not read paid app price history.
- It does not look at your competitor's metrics beyond what the store page shows.

### Status codes

`OK`, `INVALID_INPUT`, `DUPLICATE`, `NOT_FOUND`, `NOT_CHECKED_LIMIT`,
`NOT_CHECKED_TIME`, `NOT_CHECKED_ERROR`, `NOT_CHECKED_CAP`, `NOT_CHECKED_BILLING`.

### Stop reasons

`charge-error` (the charge raised: when the dataset counter answers, the batch is
delivered and counted in `deliveredUncharged` and `chargeUncertain`; when the counter
cannot be read, delivery and the charge are **both unknown**, the batch is counted in
`deliveredUnverified` and nothing is claimed as sold, so check the dataset before
re-running), `dataset-write-error` (the dataset refused the rows: nothing was delivered
and nothing was charged; when the counter grew by only part of the batch, the note says
how many of the rows landed and the rest is counted in `deliveredUnverified`),
`billing-price-unknown` (the event price could not be read, so nothing is delivered and
nothing is charged), `spending-cap` (the buyer's spending limit was reached), `deadline`
(the run was close to being stopped by the platform).

On a failed charge the dataset counter is the only proof of what happened, so it is read
three times over about a second and the highest reading wins. A lag longer than that
window still reads as zero; in that narrow case the run cannot tell a refused write from
a slow counter, and the note says which case it assumed.

### Run summary

The summary is written to the run store under `RUN_SUMMARY`, and a copy per run goes to
the `app-details-summary` store under `RUN_SUMMARY-<runId>`. It carries the counters
listed in the output schema, including `counterMismatch`, which is `false` only when
every input line ended up in exactly one status. `appsCutByBudget` is the tail a
money stop cut (the spending limit, an unreadable price, a failed charge),
`appsCutByStop` is the tail any other stop cut (a dataset write error, for example) and
those rows carry the real reason instead of a money claim, `appsCutByDeadline` is the tail
the clock cut: they are counted apart because they mean different things to the buyer.

# Actor input Schema

## `apps` (type: `array`):

App Store numeric ids, apps.apple.com links, Google Play package names or play.google.com links. A dotted name that lives in either store is looked up in both.

## `country` (type: `string`):

Two letter store country, for example us, gb, de. Prices, ratings and availability are reported for this country. A full country name is refused before any store is asked.

## `lang` (type: `string`):

Language of the Google Play page, for example en or de. The App Store lookup is language neutral.

## `platform` (type: `string`):

Which store to try when the input is a dotted name such as com.instagram.android. Numeric ids and store links always say the store themselves. both tries Google Play first, then the App Store bundle id.

## `maxApps` (type: `integer`):

How many apps one run reads. The rest come back as free status rows with the reason maxApps.

## `includeDescription` (type: `boolean`):

Add the long store description to every delivered row. It is the largest field, so it is off by default.

## Actor input object example

```json
{
  "apps": [
    "389801252",
    "com.instagram.android",
    "https://apps.apple.com/us/app/facebook/id284882215"
  ],
  "country": "us",
  "lang": "en",
  "platform": "both",
  "maxApps": 25,
  "includeDescription": false
}
```

# Actor output Schema

## `dataset` (type: `string`):

Every delivered app carries actorInput, actorIndex, platform, appId, storeId, title, developer, rating, ratingsCount, reviewsCount, installs, installsExact, price, currency, free, genres, version, released, lastUpdated, contentRating, adSupported, offersInAppPurchases, minimumOs, fileSizeBytes, languages, country, iconUrl, storeUrl, status and billable. Rows with a status other than OK carry reason instead of data: no appId, no title, no icon and no storeUrl.

## `summary` (type: `string`):

Counters: appsRequested, appsAttempted, appsRead, appsNotFound, appsInvalid, appsDuplicate, appsFailed, appsLimited, appsCutByBudget, appsCutByStop, appsCutByDeadline, appsDelivered, appsCapped, rowsWritten, byStatus, chargedEvents, deliveredUncharged, deliveredUnverified, chargeUncertain, writeErrors, summaryWriteErrors, billingActive, priceEvent, priceNote, country, lang, platform, includeDescription, maxApps, counterMismatch, stopReason, datasetNote, startedAt, finishedAt. Status codes: OK, INVALID_INPUT, DUPLICATE, NOT_FOUND, NOT_CHECKED_LIMIT, NOT_CHECKED_TIME, NOT_CHECKED_ERROR, NOT_CHECKED_CAP, NOT_CHECKED_BILLING. Stop reasons: dataset-write-error, billing-price-unknown, spending-cap, charge-error, deadline.

# 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 = {
    "apps": [
        "389801252",
        "com.instagram.android",
        "https://apps.apple.com/us/app/facebook/id284882215"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("stas_k/app-details-api").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 = { "apps": [
        "389801252",
        "com.instagram.android",
        "https://apps.apple.com/us/app/facebook/id284882215",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("stas_k/app-details-api").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 '{
  "apps": [
    "389801252",
    "com.instagram.android",
    "https://apps.apple.com/us/app/facebook/id284882215"
  ]
}' |
apify call stas_k/app-details-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,stas_k/app-details-api"
        }
    }
}
```

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/T8H4ablmVAHpA6oWL/builds/r0dWr1oNboQDTmbRE/openapi.json
