{
  "openapi": "3.0.1",
  "info": {
    "title": "Apple App Store API — Apps, Reviews, Ratings & ASO",
    "description": "Unofficial Apple App Store API in one Apify actor. 10 endpoints: app details, search, reviews, top charts, similar apps, developer profiles, autocomplete, rating histograms, privacy labels, version history. Pure HTTP, sub-3s cold start, batch & parallel. For iOS devs, ASO and AI tools.",
    "version": "1.0",
    "x-build-id": "54mhBHLG4WyaTGdF8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/logiover~app-store-data-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-logiover-app-store-data-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/logiover~app-store-data-api/runs": {
      "post": {
        "operationId": "runs-sync-logiover-app-store-data-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/logiover~app-store-data-api/run-sync": {
      "post": {
        "operationId": "run-sync-logiover-app-store-data-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "app",
              "reviews",
              "list",
              "similar",
              "developer",
              "suggest",
              "ratings",
              "privacy",
              "versionHistory"
            ],
            "type": "string",
            "description": "Which App Store endpoint to call.\n\n• **search** — keyword search (most common)\n• **app** — full details for one or more apps\n• **reviews** — user reviews with pagination\n• **list** — top charts (free/paid/grossing) by category\n• **similar** — apps similar to a given app\n• **developer** — all apps by a developer (artistId)\n• **suggest** — autocomplete suggestions (great for ASO keyword research)\n• **ratings** — rating histogram (1-star to 5-star breakdown)\n• **privacy** — Apple Privacy Labels (data collected, tracking, etc.)\n• **versionHistory** — version-release history of an app",
            "default": "search"
          },
          "id": {
            "title": "App ID (numeric)",
            "minimum": 1,
            "type": "integer",
            "description": "Numeric App Store ID — the digits after `id` in the App Store URL. E.g. for `https://apps.apple.com/us/app/spotify/id324684580`, use `324684580`. Used by **app**, **reviews**, **similar**, **ratings**, **privacy**, **versionHistory** modes."
          },
          "ids": {
            "title": "App IDs (numeric, batch)",
            "type": "array",
            "description": "Array of numeric App Store IDs for batch operations. Adds to (or replaces) the single ID field above.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "appId": {
            "title": "Bundle ID (alternative to numeric ID)",
            "type": "string",
            "description": "Reverse-DNS bundle identifier (e.g. `com.spotify.client`). Use this instead of `id` when you have the bundle ID handy."
          },
          "appIds": {
            "title": "Bundle IDs (batch)",
            "type": "array",
            "description": "Array of bundle IDs for batch operations.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "query": {
            "title": "Search query / keyword",
            "type": "string",
            "description": "Keyword to search for in **search** mode, or partial term for **suggest** mode autocomplete."
          },
          "devId": {
            "title": "Developer ID (numeric artistId)",
            "minimum": 1,
            "type": "integer",
            "description": "Numeric artistId of the developer (e.g. `324684580` for Spotify Ltd.). Find it as `developerId` in any app result for that publisher. Used by **developer** mode."
          },
          "collection": {
            "title": "Top-chart collection",
            "enum": [
              "TOP_FREE_IOS",
              "TOP_PAID_IOS",
              "TOP_GROSSING_IOS",
              "NEW_IOS",
              "NEW_FREE_IOS",
              "NEW_PAID_IOS",
              "TOP_FREE_IPAD",
              "TOP_PAID_IPAD",
              "TOP_GROSSING_IPAD",
              "TOP_MAC",
              "TOP_FREE_MAC",
              "TOP_PAID_MAC",
              "TOP_GROSSING_MAC"
            ],
            "type": "string",
            "description": "Which top chart to fetch in **list** mode.\n\n**iOS:** `TOP_FREE_IOS`, `TOP_PAID_IOS`, `TOP_GROSSING_IOS`, `NEW_IOS`, `NEW_FREE_IOS`, `NEW_PAID_IOS`\n**iPad:** `TOP_FREE_IPAD`, `TOP_PAID_IPAD`, `TOP_GROSSING_IPAD`\n**Mac:** `TOP_MAC`, `TOP_FREE_MAC`, `TOP_PAID_MAC`, `TOP_GROSSING_MAC`",
            "default": "TOP_FREE_IOS"
          },
          "category": {
            "title": "Category filter",
            "type": "string",
            "description": "Optional category filter for **list** mode. Common codes: `GAMES`, `BUSINESS`, `EDUCATION`, `FINANCE`, `SOCIAL_NETWORKING`, `MUSIC`, `PHOTO_AND_VIDEO`, `PRODUCTIVITY`, `SHOPPING`, `UTILITIES`, `TRAVEL`, `HEALTH_AND_FITNESS`, `LIFESTYLE`, `ENTERTAINMENT`, `NEWS`, `NAVIGATION`, `FOOD_AND_DRINK`, `WEATHER`, `REFERENCE`, `BOOKS`, `MEDICAL`, `SPORTS`, `MAGAZINES_AND_NEWSPAPERS`. Game sub-categories: `GAMES_ACTION`, `GAMES_ADVENTURE`, `GAMES_ARCADE`, `GAMES_BOARD`, `GAMES_CARD`, `GAMES_CASINO`, `GAMES_DICE`, `GAMES_EDUCATIONAL`, `GAMES_FAMILY`, `GAMES_MUSIC`, `GAMES_PUZZLE`, `GAMES_RACING`, `GAMES_ROLE_PLAYING`, `GAMES_SIMULATION`, `GAMES_SPORTS`, `GAMES_STRATEGY`, `GAMES_TRIVIA`, `GAMES_WORD`."
          },
          "device": {
            "title": "Device filter",
            "enum": [
              "IPAD",
              "MAC",
              "ALL"
            ],
            "type": "string",
            "description": "Optional device filter for **list** mode and others. Apple App Store has separate top-chart collections per device class."
          },
          "reviewSort": {
            "title": "Review sort order",
            "enum": [
              "RECENT",
              "HELPFUL"
            ],
            "type": "string",
            "description": "How reviews are ordered when fetched from App Store RSS feed.",
            "default": "RECENT"
          },
          "country": {
            "title": "Country (App Store storefront)",
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code. Determines the App Store storefront — same app can have different pricing, availability, screenshots, and ratings per country. E.g. `us`, `gb`, `de`, `tr`, `jp`, `br`, `in`, `mx`.",
            "default": "us"
          },
          "language": {
            "title": "Language (BCP 47 with region)",
            "type": "string",
            "description": "BCP 47 language code with region, e.g. `en-us`, `tr-tr`, `de-de`, `ja-jp`, `pt-br`. Affects localized title, description, screenshots.",
            "default": "en-us"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum results to return. For **reviews** mode, this is per-app (App Store hard cap: 500). For **list / search / similar / developer** modes, this is overall (App Store hard cap: ~200)."
          },
          "idsOnly": {
            "title": "Return numeric IDs only (search mode)",
            "type": "boolean",
            "description": "For **search** mode: if enabled, returns only numeric app IDs (much faster). Useful for bulk pipelines where you'll enrich via **app** mode afterwards.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}