{
  "openapi": "3.0.1",
  "info": {
    "title": "Apple App Store Scraper — Reviews, Apps, Search & Top Charts",
    "description": "Scrape Apple App Store (iOS) app details, multi-country user reviews, keyword search results and Top Charts with no API keys. Extracts ratings, versions, developer websites, In-App Purchase prices, privacy labels and filtered 1-5 star reviews.",
    "version": "0.1",
    "x-build-id": "31fd6KDtQuQtbyW9D"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/foxlabs~apple-app-store-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-foxlabs-apple-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/foxlabs~apple-app-store-scraper/runs": {
      "post": {
        "operationId": "runs-sync-foxlabs-apple-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/foxlabs~apple-app-store-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-foxlabs-apple-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": {
          "apps": {
            "title": "Apps (App IDs, Bundle IDs or URLs)",
            "type": "array",
            "description": "Apple App Store numeric IDs ('310633997'), iOS bundle IDs ('com.openai.chat') or apps.apple.com URLs ('https://apps.apple.com/us/app/whatsapp-messenger/id310633997').",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Keyword search queries (optional)",
            "type": "array",
            "description": "Keywords to search on the Apple App Store (e.g. 'habit tracker', 'ai note taker').",
            "items": {
              "type": "string"
            }
          },
          "chartType": {
            "title": "Top Chart feed (optional)",
            "enum": [
              "none",
              "topfreeapplications",
              "toppaidapplications",
              "topgrossingapplications"
            ],
            "type": "string",
            "description": "Optionally scrape an Apple App Store Top Chart (automatically enriched with full app ratings, versions and developer websites via batch lookup).",
            "default": "none"
          },
          "genreId": {
            "title": "Chart category / genre ID (optional)",
            "type": "string",
            "description": "Optional numeric Apple genre ID for Top Charts (e.g. '6015' Finance, '6007' Productivity, '6000' Business, '6014' Games). Leave empty for overall chart."
          },
          "countries": {
            "title": "Storefront countries (ISO-2)",
            "type": "array",
            "description": "Two-letter App Store country codes (e.g. ['us'], or ['us', 'gb', 'de', 'ca', 'au'] to aggregate reviews and regional pricing across multiple storefronts).",
            "default": [
              "us"
            ],
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Extraction mode",
            "enum": [
              "appsAndReviews",
              "reviewsOnly",
              "appsOnly"
            ],
            "type": "string",
            "description": "Choose whether to emit both app metadata + reviews, reviews only, or app metadata rows only.",
            "default": "appsAndReviews"
          },
          "reviewSort": {
            "title": "Review sort order",
            "enum": [
              "mostrecent",
              "mosthelpful",
              "both"
            ],
            "type": "string",
            "description": "Sort order for customer reviews ('both' fetches both Most Recent and Most Helpful feeds and deduplicates by reviewId).",
            "default": "mostrecent"
          },
          "maxReviewsPerApp": {
            "title": "Max reviews per app (per country)",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum reviews to collect per app per storefront country (up to 500 per sort order, 1000 with 'both').",
            "default": 50
          },
          "maxSearchResults": {
            "title": "Max apps per search query",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum apps returned per keyword in 'searchQueries' (1..200).",
            "default": 20
          },
          "chartLimit": {
            "title": "Top Chart size",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Number of ranked apps to fetch when 'chartType' is enabled (1..100).",
            "default": 25
          },
          "maxResults": {
            "title": "Max total rows",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Overall cap on delivered rows across the entire run (0 = unlimited).",
            "default": 100
          },
          "minRating": {
            "title": "Minimum review star rating (1-5)",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Keep only reviews with rating >= minRating.",
            "default": 1
          },
          "maxRating": {
            "title": "Maximum review star rating (1-5)",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Keep only reviews with rating <= maxRating (e.g. set to 2 to extract 1-2 star bug reports and complaints).",
            "default": 5
          },
          "postedAfter": {
            "title": "Reviews posted after (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional ISO date cut-off for reviews (e.g. '2026-01-01')."
          },
          "enrichWebDetails": {
            "title": "Enrich In-App Purchases & Privacy from web page",
            "type": "boolean",
            "description": "Fetches apps.apple.com product page for emitted app rows to extract In-App Purchase price tiers, Privacy Policy URL and App Privacy labels.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy settings. Works out of the box on default Apify Proxy.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}