{
  "openapi": "3.0.1",
  "info": {
    "title": "App Store Reviews Scraper: New Reviews & Alerts",
    "description": "Watch your iOS apps and competitors: each run returns only the App Store reviews that are new since the last run, for any countries, with a per-version rating summary and an optional Slack or webhook alert for 1–2★ reviews. Uses Apple's public review feed.",
    "version": "0.4",
    "x-build-id": "bx1rlxnE8bGgaKN6M"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/signalkin~app-store-reviews-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-signalkin-app-store-reviews-monitor",
        "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/signalkin~app-store-reviews-monitor/runs": {
      "post": {
        "operationId": "runs-sync-signalkin-app-store-reviews-monitor",
        "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/signalkin~app-store-reviews-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-signalkin-app-store-reviews-monitor",
        "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",
        "required": [
          "apps"
        ],
        "properties": {
          "apps": {
            "title": "Apps",
            "type": "array",
            "description": "App Store app ids (e.g. 284882215) or app URLs (e.g. https://apps.apple.com/us/app/facebook/id284882215). Up to 100.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Two-letter App Store country codes (us, gb, de, ch, fr, pl…). Each app is checked in each country – reviews are per country store. Up to 60.",
            "default": [
              "us"
            ],
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Which reviews",
            "enum": [
              "new",
              "all"
            ],
            "type": "string",
            "description": "'Only new' remembers what earlier runs returned (per monitor id) and returns only reviews added since – schedule the actor daily and you never pay twice for a review. The first run returns the recent reviews. 'All recent' always returns the newest reviews Apple publishes (up to 500 per app and country). The form starts on 'All recent' so a first try always shows results; for a daily schedule choose 'Only new' (API calls, tasks and schedules that leave the field out get 'Only new').",
            "default": "new"
          },
          "sort": {
            "title": "Order of reviews",
            "enum": [
              "mostRecent",
              "mostHelpful"
            ],
            "type": "string",
            "description": "\"Most helpful first\" returns the reviews other users voted most helpful (often older ones) — useful to see what hurts users most. Works only with mode \"all\"; \"new\" mode needs the newest-first order.",
            "default": "mostRecent"
          },
          "maxReviewsPerApp": {
            "title": "Max reviews per app and country",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Apple publishes up to the newest 500 reviews per app and country.",
            "default": 500
          },
          "ratings": {
            "title": "Star ratings to return",
            "type": "array",
            "description": "Only reviews with these star ratings are saved (and charged). Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1★",
                "2★",
                "3★",
                "4★",
                "5★"
              ]
            },
            "default": []
          },
          "alertWebhookUrl": {
            "title": "Alert webhook URL (optional)",
            "type": "string",
            "description": "A Slack incoming-webhook URL (or any URL that accepts a JSON POST: Zapier, Make, n8n). Gets one message per run with the new low-rated reviews. Must be a public https URL (stored encrypted); private or local addresses and redirects are refused. E.g. a Slack incoming webhook https://hooks.slack.com/services/… (Slack → Apps → Incoming Webhooks)."
          },
          "alertMaxRating": {
            "title": "Alert for reviews up to",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Reviews with this many stars or fewer are sent to the webhook.",
            "default": 2
          },
          "includeAppInfo": {
            "title": "Include app info",
            "type": "boolean",
            "description": "Fetch name, developer, current version and overall rating of each app (saved in the OUTPUT record).",
            "default": true
          },
          "snapshotIfNoReviews": {
            "title": "Save an app snapshot when no reviews are found",
            "type": "boolean",
            "description": "If Apple's review feed returns no review at all in a run (it is sometimes empty for hours), save one free row per app and country with the rating data from Apple's Lookup API (rowType \"appSnapshot\": average rating, rating count, current version; needs \"Include app info\") instead of an empty dataset. No review is ever invented; not triggered by a spending limit, a ratings filter or a quiet day in \"new\" mode. Off when left out (API calls, older tasks); on in the Console form, and a task saved from the form keeps it on.",
            "default": false
          },
          "includeAuthor": {
            "title": "Include reviewer nickname",
            "type": "boolean",
            "description": "Off by default: reviews are saved without the reviewer's nickname.",
            "default": false
          },
          "monitorId": {
            "title": "Monitor id",
            "type": "string",
            "description": "Name of the memory for 'Only new'. Use different ids for independent monitors (e.g. 'my-apps' and 'competitors').",
            "default": "default"
          },
          "requestDelayMs": {
            "title": "Pause between requests (ms)",
            "minimum": 500,
            "maximum": 10000,
            "type": "integer",
            "description": "Keeps the request rate polite for Apple's public endpoints.",
            "default": 1500
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}