{
  "openapi": "3.0.1",
  "info": {
    "title": "Apple App Store Review Scraper By Country & Storefront",
    "description": "🍎 Apple App Store Review Scraper pulls app reviews, ratings, titles, dates, versions, locales & developer replies. 📊 Export to CSV/JSON for ASO, sentiment analysis, product insights & competitor research. ⚙️ Filter by country, star, date, app ID; paginate; schedule runs. 🚀 Fast, reliable.",
    "version": "0.1",
    "x-build-id": "5Zbm6D6xsF0zukluO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapio~apple-app-store-review-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapio-apple-app-store-review-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/scrapio~apple-app-store-review-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapio-apple-app-store-review-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/scrapio~apple-app-store-review-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapio-apple-app-store-review-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": {
          "countries": {
            "title": "🌍 Storefront countries",
            "type": "array",
            "description": "Two-letter Apple storefront codes, e.g. `us`, `gb`, `de`, `jp`, `br`. Leave empty to use only the country already present in each App Store link (classic behaviour). `ru` and `cn` are skipped automatically — Apple no longer serves review feeds for them and they return zero entries.",
            "items": {
              "type": "string"
            }
          },
          "appIds": {
            "title": "🆔 App Store IDs (no link needed)",
            "type": "array",
            "description": "Bare numeric App Store IDs, e.g. `324684580`. The ID is storefront-independent, so it pairs naturally with the market list above — one ID sweeps every country you listed. `id324684580` and full store URLs pasted here are also accepted.",
            "items": {
              "type": "string"
            }
          },
          "maxReviewsPerCountry": {
            "title": "🎯 Review budget per storefront",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many reviews to collect for each app in each storefront. Apple's hard ceiling is 500 per app per storefront — a run's real ceiling is this number multiplied by the number of storefronts. Example: 200 with 3 markets = up to 600 reviews for one app.",
            "default": 60
          },
          "includeStorefrontSummary": {
            "title": "📊 Add a per-storefront summary row",
            "type": "boolean",
            "description": "Appends one extra row per storefront with the 1-to-5 star spread of the reviews collected there, the sampled average, and the rating gap versus the best-performing storefront in the same run. These rows are marked `type = storefront_summary` and are never billed as review rows.",
            "default": true
          },
          "url": {
            "title": "🔗 App Store links",
            "type": "array",
            "description": "Full App Store URLs, one entry per app — for example https://apps.apple.com/us/app/quicken-simplifi-budget-smart/id1449777194",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "🔗 Additional App Store links",
            "type": "array",
            "description": "A second link list, merged with the one above and de-duplicated. Kept so existing input files keep working unchanged.",
            "items": {
              "type": "string"
            }
          },
          "max_review": {
            "title": "🎯 Reviews per app per storefront (legacy key)",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Same meaning as the storefront budget above, kept under its original name. Values over 500 are accepted and clamped to 500 with a warning in the log, because Apple's feed cannot return more per storefront."
          },
          "max_pages": {
            "title": "📄 Feed pages per storefront",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Each page returns up to 50 reviews. Apple serves 10 pages at most — page 11 answers HTTP 400 — so values above 10 are clamped. Lower it for a faster sample.",
            "default": 10
          },
          "pageDelaySeconds": {
            "title": "⏱️ Pause between feed pages (seconds)",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Seconds to wait between page requests. Raise it if a long multi-market sweep starts hitting rate limits. The original `delay_between_pages` key is still read first when present, including fractional values.",
            "default": 2
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy (optional)",
            "type": "object",
            "description": "Optional Apify Proxy settings. Left off, the run goes direct and escalates automatically only if Apple starts refusing pages."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}