{
  "openapi": "3.0.1",
  "info": {
    "title": "🤖 AI App Review Monitor",
    "description": "Monitor Google Play and App Store pages to extract reviews, utilizing AI to cluster themes and schedule daily data runs for cross-platform sentiment tracking.",
    "version": "0.1",
    "x-build-id": "ttA3jZmP4RsPWgBoM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/taroyamada~app-review-cross-platform-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-taroyamada-app-review-cross-platform-intelligence",
        "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/taroyamada~app-review-cross-platform-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-taroyamada-app-review-cross-platform-intelligence",
        "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/taroyamada~app-review-cross-platform-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-taroyamada-app-review-cross-platform-intelligence",
        "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": {
          "productName": {
            "title": "Product Name",
            "type": "string",
            "description": "Optional label for the monitored product. If empty, the actor uses the best store title it finds."
          },
          "country": {
            "title": "Default Country Code",
            "type": "string",
            "description": "Default ISO country code for both stores. App Store lookups and review feeds use lowercase values like us, gb, jp.",
            "default": "us"
          },
          "language": {
            "title": "Google Play Language",
            "type": "string",
            "description": "Google Play language code for the public page request, for example en_US.",
            "default": "en_US"
          },
          "appleApp": {
            "title": "App Store App",
            "type": "object",
            "description": "Optional App Store target. Provide {\"appId\":\"570060128\"} or {\"url\":\"https://apps.apple.com/us/app/id570060128\"}."
          },
          "googlePlayApp": {
            "title": "Google Play App",
            "type": "object",
            "description": "Optional Google Play target. Provide {\"appId\":\"com.duolingo\"} or a full play.google.com URL."
          },
          "reviewLimitPerPlatform": {
            "title": "Review Sample Limit Per Platform",
            "minimum": 5,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum reviews to analyze per platform. Google Play usually exposes about 20 public review cards without deeper pagination; App Store can return more from RSS pages.",
            "default": 20
          },
          "lookbackDays": {
            "title": "Lookback Window (Days)",
            "minimum": 7,
            "maximum": 365,
            "type": "integer",
            "description": "Prefer reviews inside this window. If a source has no matches inside the window, the actor falls back to the public sample and flags the fallback in warnings.",
            "default": 180
          },
          "minThemeMentions": {
            "title": "Minimum Theme Mentions",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Minimum complaint mentions before a theme is treated as a real cluster instead of one-off noise.",
            "default": 2
          },
          "delivery": {
            "title": "Delivery Mode",
            "enum": [
              "dataset",
              "webhook"
            ],
            "type": "string",
            "description": "Dataset is the default. Webhook still writes the local output file and dataset row, then posts the summary payload to the webhook URL.",
            "default": "dataset"
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Webhook URL to receive the summary payload when delivery is webhook."
          },
          "snapshotKey": {
            "title": "Snapshot Key",
            "type": "string",
            "description": "Optional override for the monitoring snapshot key. Leave empty to derive it from the configured app IDs and locale."
          },
          "nowIso": {
            "title": "Debug Timestamp Override",
            "type": "string",
            "description": "Optional ISO timestamp override for deterministic tests or backfills."
          },
          "dryRun": {
            "title": "Dry Run",
            "type": "boolean",
            "description": "If true, the actor skips dataset delivery, webhook delivery, and snapshot writes. Local output is still written.",
            "default": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}