{
  "openapi": "3.0.1",
  "info": {
    "title": "Apple App Store Scraper (Apps, Search, Top Charts)",
    "description": "Scrape Apple App Store apps by keyword, app ID, URL, bundle ID or developer, and top free, paid and grossing charts in any country. Clean prices, ratings, ISO dates, sizes, screenshots and chart positions. No login.",
    "version": "0.1",
    "x-build-id": "Qd0qsSUPDjMbnN3tQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapewonder~appstore-apps-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapewonder-appstore-apps-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/scrapewonder~appstore-apps-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapewonder-appstore-apps-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/scrapewonder~appstore-apps-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapewonder-appstore-apps-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 in the App Store (e.g. 'fitness', 'photo editor'). Apple returns at most ~200 apps per term and country.",
            "items": {
              "type": "string"
            }
          },
          "apps": {
            "title": "Apps (IDs, URLs or bundle IDs)",
            "type": "array",
            "description": "Get full details for specific apps. Accepts numeric app IDs (389801252), App Store URLs (https://apps.apple.com/us/app/instagram/id389801252) and bundle IDs (com.burbn.instagram).",
            "items": {
              "type": "string"
            }
          },
          "developers": {
            "title": "Developers (IDs or URLs)",
            "type": "array",
            "description": "Get all apps of a developer. Accepts developer IDs (284882218) or developer page URLs (https://apps.apple.com/us/developer/meta-platforms-inc/id284882218).",
            "items": {
              "type": "string"
            }
          },
          "chartTypes": {
            "title": "Top charts",
            "type": "array",
            "description": "Scrape App Store top charts. Each chart has up to 100 apps and every item gets its chartPosition.",
            "items": {
              "type": "string",
              "enum": [
                "topfree",
                "toppaid",
                "topgrossing",
                "topfreeipad",
                "toppaidipad",
                "topgrossingipad",
                "newapps",
                "newfree",
                "newpaid"
              ],
              "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"
              ]
            }
          },
          "chartGenres": {
            "title": "Chart categories (genre IDs)",
            "type": "array",
            "description": "Optional category filter for charts, as Apple genre IDs. Examples: 6014 Games, 6013 Health & Fitness, 6007 Productivity, 6015 Finance, 6016 Entertainment, 6005 Social Networking, 6008 Photo & Video, 6017 Education, 6024 Shopping, 6002 Utilities. Unknown IDs are skipped with a warning. Empty = overall chart.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Two-letter App Store country codes (us, gb, de, pl, jp...). The United Kingdom is gb (uk is converted automatically). Every search term, app and chart is scraped in each country. Prices are in the local currency.",
            "default": [
              "us"
            ],
            "items": {
              "type": "string"
            }
          },
          "platform": {
            "title": "Platform (search and developer apps)",
            "enum": [
              "iphone",
              "ipad",
              "mac"
            ],
            "type": "string",
            "description": "Which store to search. iPhone covers most universal apps.",
            "default": "iphone"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Optional language for names and descriptions, e.g. en_us or ja_jp. Empty = the default language of each country store."
          },
          "maxItemsPerQuery": {
            "title": "Max apps per search / chart / developer",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Stop after this many apps for each search term, chart or developer, per country. Search is capped by Apple at ~200, charts at 100. With Remove duplicates on, the limit counts new apps, so later search terms and developers still return up to this many apps when Apple has them.",
            "default": 100
          },
          "enrichCharts": {
            "title": "Full details for chart apps",
            "type": "boolean",
            "description": "Fetch full app details (rating, rating count, size, version, screenshots, description...) for chart apps. Costs 1 extra request per 50 apps. Turn off for chart positions only.",
            "default": true
          },
          "dedupe": {
            "title": "Remove duplicates",
            "type": "boolean",
            "description": "Save each app only once per country across all search terms, app lists and developers. Charts are always kept complete. A duplicate does not use up a slot of maxItemsPerQuery.",
            "default": true
          },
          "includeSupportedDevices": {
            "title": "Include supported devices",
            "type": "boolean",
            "description": "Add the long list of supported device models to each app.",
            "default": false
          },
          "maxRequestsPerMinute": {
            "title": "Max requests per minute",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Apple allows about 20 requests per minute per IP. Default: 20 without proxy, 60 with proxy rotation."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apple's API is public, so the cheap datacenter proxy is enough. Proxy rotation spreads requests across IPs to avoid Apple's per-IP rate limit on large runs.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}