{
  "openapi": "3.0.1",
  "info": {
    "title": "Apple App Store Games Scraper: iOS Game Charts, Arcade & IAPs",
    "description": "Crawl the Apple App Store by keyword, app, developer or top chart in any country. One clean row per app (price, rating, version, size, screenshots), optional reviews, rating histogram, in-app purchases and privacy labels, plus change tracking between runs.",
    "version": "0.1",
    "x-build-id": "3Bz11QKj2hG3pf7gM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/raiselabs~appstore-games-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-raiselabs-appstore-games-scraper",
        "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/raiselabs~appstore-games-scraper/runs": {
      "post": {
        "operationId": "runs-sync-raiselabs-appstore-games-scraper",
        "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/raiselabs~appstore-games-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-raiselabs-appstore-games-scraper",
        "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",
        "properties": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Keywords to search the App Store for games (e.g. \"puzzle\", \"roguelike\"). Each term returns up to \"Max games per source\" games, ranked by their position in Apple's results.",
            "items": {
              "type": "string"
            }
          },
          "appIds": {
            "title": "Games (IDs, bundle IDs or URLs)",
            "type": "array",
            "description": "Specific games to fetch: an App Store ID (e.g. 1287282214), a bundle ID (e.g. com.activision.callofduty.shooter) or an apps.apple.com URL. Always kept, even with \"Games only\" on.",
            "items": {
              "type": "string"
            }
          },
          "developerIds": {
            "title": "Publishers (developer IDs or URLs)",
            "type": "array",
            "description": "Fetch every game by a publisher: a developer ID (e.g. 285005466) or an apps.apple.com/…/developer/… URL.",
            "items": {
              "type": "string"
            }
          },
          "charts": {
            "title": "Top charts",
            "type": "array",
            "description": "Game top charts to crawl, with each game's rank. Combine with Game categories.",
            "items": {
              "type": "string",
              "enum": [
                "top-free",
                "top-paid",
                "top-grossing",
                "top-free-ipad",
                "top-paid-ipad",
                "top-grossing-ipad",
                "new",
                "new-free",
                "new-paid"
              ],
              "enumTitles": [
                "Top free (iPhone)",
                "Top paid (iPhone)",
                "Top grossing (iPhone)",
                "Top free (iPad)",
                "Top paid (iPad)",
                "Top grossing (iPad)",
                "New apps",
                "New free apps",
                "New paid apps"
              ]
            }
          },
          "chartCategories": {
            "title": "Game categories",
            "type": "array",
            "description": "Game subgenres for the top charts. Leave empty for the overall games chart.",
            "items": {
              "type": "string",
              "enum": [
                "games",
                "action",
                "adventure",
                "casual",
                "board",
                "card",
                "casino",
                "dice",
                "educational",
                "family",
                "music",
                "puzzle",
                "racing",
                "role-playing",
                "simulation",
                "sports",
                "strategy",
                "trivia",
                "word"
              ],
              "enumTitles": [
                "All games",
                "Action",
                "Adventure",
                "Casual",
                "Board",
                "Card",
                "Casino",
                "Dice",
                "Educational",
                "Family",
                "Music",
                "Puzzle",
                "Racing",
                "Role Playing",
                "Simulation",
                "Sports",
                "Strategy",
                "Trivia",
                "Word"
              ]
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Two-letter App Store country codes (e.g. us, gb, de, jp). Every source is crawled in every country, and you get one row per app per country, with local prices and ratings.",
            "default": [
              "us"
            ],
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Optional language for names and descriptions, as an Apple locale (e.g. en_us, ja_jp). Leave empty for the store's default."
          },
          "maxItemsPerSource": {
            "title": "Max games per source",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Games to take from each search term, publisher or chart, per country (max 200).",
            "default": 50
          },
          "maxItems": {
            "title": "Max games in total",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many rows (one row per game per country).",
            "default": 100
          },
          "gamesOnly": {
            "title": "Games only",
            "type": "boolean",
            "description": "Drop non-game apps that a search or publisher returns. Turn off to keep every app (rows then carry isGame).",
            "default": true
          },
          "includeReviews": {
            "title": "Include reviews",
            "type": "boolean",
            "description": "Add review rows (type \"review\") for every game found. Apple serves up to 500 reviews per game per country.",
            "default": false
          },
          "maxReviewsPerApp": {
            "title": "Max reviews per game",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Reviews per game per country (max 500).",
            "default": 50
          },
          "reviewSort": {
            "title": "Review order",
            "enum": [
              "mostrecent",
              "mosthelpful"
            ],
            "type": "string",
            "description": "Which reviews Apple returns first.",
            "default": "mostrecent"
          },
          "enrichFromAppPage": {
            "title": "Add game-page details",
            "type": "boolean",
            "description": "Reads each game's apps.apple.com page: controller support, Apple Arcade, Editors' Choice, subtitle, chart position, in-app purchases with prices (min/max), ads and loot boxes from the age rating, live in-game events, the 1–5 star breakdown and privacy labels. One extra page per game, so it is slower.",
            "default": false
          },
          "trackingId": {
            "title": "Tracking ID (change tracking)",
            "type": "string",
            "description": "Any name for a set of games you monitor (e.g. \"puzzle-top-grossing-us\"). Runs with the same ID mark each game as new or changed since the last run: rating, rating count, version, price, size, chart rank and, with game-page details, new live events, Editors' Choice, controller support, top IAP price, ads."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Apple's public API rarely needs a proxy for small runs; use one for large crawls to stay within Apple's per-IP rate limits.",
            "default": {
              "useApifyProxy": 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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}