{
  "openapi": "3.0.1",
  "info": {
    "title": "Apple App Store Scraper – Apps, Ratings, Prices & Top Charts",
    "description": "Scrape Apple App Store apps: search results with keyword rank, app details by ID or bundle ID, all apps of a developer, and top free/paid/grossing charts for 175 countries. Ratings, prices, versions, sizes, screenshots. Official Apple Search API, no proxies.",
    "version": "0.1",
    "x-build-id": "bLqIMlNHtNjYCtCcs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~app-store-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-app-store-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/gazidev~app-store-scraper/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-app-store-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/gazidev~app-store-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-app-store-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 (App Store search)",
            "type": "array",
            "description": "Keywords to search on the App Store, e.g. \"budget\", \"habit tracker\". Results come in App Store search order, so `searchPosition` is the keyword rank (ASO). Uses Apple's official iTunes Search API.",
            "items": {
              "type": "string"
            }
          },
          "apps": {
            "title": "Apps (IDs, URLs or bundle IDs)",
            "type": "array",
            "description": "Get full details for specific apps: App Store URLs (https://apps.apple.com/us/app/duolingo-language-lessons/id570060128), numeric IDs (570060128) or bundle IDs (com.duolingo.DuolingoMobile).",
            "items": {
              "type": "string"
            }
          },
          "developers": {
            "title": "Developers (all their apps)",
            "type": "array",
            "description": "Developer IDs (284882218) or developer page URLs (https://apps.apple.com/us/developer/meta-platforms-inc/id284882218). Returns every app of each developer.",
            "items": {
              "type": "string"
            }
          },
          "charts": {
            "title": "Top charts",
            "type": "array",
            "description": "App Store top charts to scrape (up to 100 apps each, with chart rank). Each app gets full details from the Lookup API.",
            "items": {
              "type": "string",
              "enum": [
                "topfreeapplications",
                "toppaidapplications",
                "topgrossingapplications",
                "newapplications",
                "newfreeapplications",
                "newpaidapplications",
                "topfreeipadapplications",
                "toppaidipadapplications",
                "topgrossingipadapplications",
                "topfreemacapps"
              ],
              "enumTitles": [
                "Top Free iPhone",
                "Top Paid iPhone",
                "Top Grossing iPhone",
                "New iPhone Apps",
                "New Free iPhone",
                "New Paid iPhone",
                "Top Free iPad",
                "Top Paid iPad",
                "Top Grossing iPad",
                "Top Free Mac"
              ]
            }
          },
          "chartGenre": {
            "title": "Chart category (optional)",
            "enum": [
              "all",
              "6000",
              "6001",
              "6002",
              "6003",
              "6004",
              "6005",
              "6006",
              "6007",
              "6008",
              "6009",
              "6010",
              "6011",
              "6012",
              "6013",
              "6014",
              "6015",
              "6016",
              "6017",
              "6018",
              "6020",
              "6021",
              "6023",
              "6024",
              "6026",
              "6027",
              "7001",
              "7002",
              "7003",
              "7004",
              "7005",
              "7006",
              "7009",
              "7011",
              "7012",
              "7013",
              "7014",
              "7015",
              "7016",
              "7017",
              "7018",
              "7019"
            ],
            "type": "string",
            "description": "Limit top charts to one App Store category (iPhone and iPad top free/paid/grossing). Not supported by Apple for New-apps and Mac charts.",
            "default": "all"
          },
          "countries": {
            "title": "Countries (App Store storefronts)",
            "type": "array",
            "description": "Two-letter codes, e.g. us, gb, de, tr, jp. \"TOP30\" = 30 biggest markets, \"ALL\" = all 175 storefronts. Every search, lookup, developer and chart is run in each country (prices, ratings and charts differ per storefront).",
            "default": [
              "us"
            ],
            "items": {
              "type": "string"
            }
          },
          "platform": {
            "title": "Platform (search & developer modes)",
            "enum": [
              "iphone",
              "ipad",
              "mac"
            ],
            "type": "string",
            "description": "Which apps search and developer modes return. Charts pick the platform by chart type; lookups return any platform.",
            "default": "iphone"
          },
          "maxSearchResults": {
            "title": "Max results per search term per country",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Apple's Search API returns up to 200.",
            "default": 50
          },
          "maxChartResults": {
            "title": "Max apps per chart per country",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Apple's charts expose up to 100 apps.",
            "default": 100
          },
          "includeDescription": {
            "title": "Include full description",
            "type": "boolean",
            "description": "Adds the App Store description text (long) to each row.",
            "default": false
          },
          "includeReleaseNotes": {
            "title": "Include release notes (What's New)",
            "type": "boolean",
            "description": "Adds the latest version's release notes to each row.",
            "default": false
          },
          "maxItems": {
            "title": "Max apps per run",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on rows (and cost) per run. The run also stops cleanly at your maximum cost per run.",
            "default": 100000
          },
          "maxRequestsPerMinute": {
            "title": "Max Apple API calls per minute",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Advanced. Apple documents roughly 20 calls per minute for the Search API; the Actor never goes above 20.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}