{
  "openapi": "3.0.1",
  "info": {
    "title": "Apple App Store Scraper & ASO Rank Tracker",
    "description": "Apple App Store data via Apple's official public API: keyword search results with positions, top charts by country and category, app details and developer portfolios. ASO rank tracking for your app and competitors, plus price, version and rating change alerts.",
    "version": "0.1",
    "x-build-id": "aPaZJUzhqphMRSSCR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pegton~app-store-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pegton-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/pegton~app-store-scraper/runs": {
      "post": {
        "operationId": "runs-sync-pegton-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/pegton~app-store-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-pegton-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 keywords",
            "type": "array",
            "description": "App Store search terms, one per line (e.g. habit tracker, budget app). Each keyword returns the apps in the order of Apple's official Search API, with their position.",
            "items": {
              "type": "string"
            }
          },
          "apps": {
            "title": "Apps (URLs, IDs or bundle IDs)",
            "type": "array",
            "description": "Full app details for specific apps. Accepts https://apps.apple.com/us/app/spotify/id324684580, 324684580 or com.spotify.client. Up to thousands per run (looked up in batches of 150).",
            "items": {
              "type": "string"
            }
          },
          "developers": {
            "title": "Developers (URLs or IDs)",
            "type": "array",
            "description": "All apps of a developer, e.g. https://apps.apple.com/us/developer/google-llc/id281956209 or 281956209.",
            "items": {
              "type": "string"
            }
          },
          "charts": {
            "title": "Top charts",
            "type": "array",
            "description": "Apple's official top charts (up to 100 apps each), per country and category.",
            "items": {
              "type": "string",
              "enum": [
                "top-free",
                "top-paid",
                "top-grossing",
                "new",
                "new-free",
                "new-paid",
                "top-free-ipad",
                "top-paid-ipad",
                "top-grossing-ipad",
                "top-free-mac",
                "top-paid-mac",
                "top-grossing-mac"
              ],
              "enumTitles": [
                "Top Free (iPhone)",
                "Top Paid (iPhone)",
                "Top Grossing (iPhone)",
                "New Apps",
                "New Free Apps",
                "New Paid Apps",
                "Top Free (iPad)",
                "Top Paid (iPad)",
                "Top Grossing (iPad)",
                "Top Free (Mac)",
                "Top Paid (Mac)",
                "Top Grossing (Mac)"
              ]
            }
          },
          "chartCategories": {
            "title": "Chart categories",
            "type": "array",
            "description": "Leave empty or pick 'All' for the overall chart. Every chart is fetched for every category picked.",
            "items": {
              "type": "string",
              "enum": [
                "All",
                "Books",
                "Business",
                "Developer Tools",
                "Education",
                "Entertainment",
                "Finance",
                "Food & Drink",
                "Games",
                "Graphics & Design",
                "Health & Fitness",
                "Lifestyle",
                "Magazines & Newspapers",
                "Medical",
                "Music",
                "Navigation",
                "News",
                "Photo & Video",
                "Productivity",
                "Reference",
                "Shopping",
                "Social Networking",
                "Sports",
                "Travel",
                "Utilities",
                "Weather"
              ]
            }
          },
          "countries": {
            "title": "Countries (App Store storefronts)",
            "type": "array",
            "description": "2-letter codes, one per line: us, gb, de, fr, jp, br, in ... Every keyword, chart and app is checked in each country.",
            "items": {
              "type": "string"
            }
          },
          "trackApps": {
            "title": "Track the rank of these apps",
            "type": "array",
            "description": "Your app and competitors (URL, ID or bundle ID). For every keyword and chart, you get one 'rank' row per app: its position (searches checked to depth 200, charts to 100), the top 3 apps, and with monitoring on, the change since the last run.",
            "items": {
              "type": "string"
            }
          },
          "monitorChanges": {
            "title": "Monitor changes between runs",
            "type": "boolean",
            "description": "Remembers each app (per country) and each tracked rank. On the next run, app rows get isNew, changes (price, version, rating, rating count, name, category, minimum iOS, size) and ratingCountDelta; rank rows get previousRank and rankChange. Schedule the same input daily or weekly.",
            "default": false
          },
          "onlyChanged": {
            "title": "Only output new or changed apps",
            "type": "boolean",
            "description": "With monitoring on: apps that did not change since the last run are skipped and not charged. Rank rows are always delivered.",
            "default": false
          },
          "maxResultsPerSearch": {
            "title": "Apps per keyword",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "How many search results to save per keyword and country (Apple returns up to 200). 0 = only rank rows for tracked apps.",
            "default": 50
          },
          "chartSize": {
            "title": "Apps per chart",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How many chart positions to save per chart, category and country. 0 = only rank rows for tracked apps.",
            "default": 100
          },
          "device": {
            "title": "Search device",
            "enum": [
              "iphone",
              "ipad"
            ],
            "type": "string",
            "description": "Which App Store to search.",
            "default": "iphone"
          },
          "includeDescription": {
            "title": "Include full description",
            "type": "boolean",
            "description": "Adds the full App Store description text (long). descriptionLength is always included.",
            "default": false
          },
          "includeScreenshots": {
            "title": "Include screenshot URLs",
            "type": "boolean",
            "description": "Adds iPhone and iPad screenshot URLs.",
            "default": false
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many charged rows (0 = no limit).",
            "default": 0
          },
          "maxChargeUsd": {
            "title": "Max charge (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Stop before this amount would be exceeded. The run's own max-charge setting is always respected too."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed. Apple's API asks for about 20 calls per minute per IP, so the Actor paces itself. A proxy lets very large runs go faster.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}