{
  "openapi": "3.0.1",
  "info": {
    "title": "App Store & Google Play Scraper — Leads & Review Intel",
    "description": "Scrape Google Play & Apple App Store app profiles, B2B developer contacts (email, phone, legal entity, address, website), multi-country reviews (breaking Apple's 500/country cap), 1-2★ pain-point/crash tags & cross-run delta dedup. Zero proxies.",
    "version": "1.0",
    "x-build-id": "3oUKYRGQUcF2Eh66S"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vayneshen~app-store-google-play-leads-reviews/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vayneshen-app-store-google-play-leads-reviews",
        "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/vayneshen~app-store-google-play-leads-reviews/runs": {
      "post": {
        "operationId": "runs-sync-vayneshen-app-store-google-play-leads-reviews",
        "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/vayneshen~app-store-google-play-leads-reviews/run-sync": {
      "post": {
        "operationId": "run-sync-vayneshen-app-store-google-play-leads-reviews",
        "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": {
          "appUrlsOrIds": {
            "title": "App URLs or App IDs",
            "type": "array",
            "description": "Accepts Google Play URLs (play.google.com/store/apps/details?id=...), Apple App Store URLs (apps.apple.com/.../id...), Google Play package IDs (e.g. com.openai.chatgpt), or Apple numeric track IDs (e.g. 6448311069). Leave empty with searchQueries empty to run a fast dual-store demo.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Keyword Search Queries (Discovery Mode)",
            "type": "array",
            "description": "Optional search keywords (e.g. [\"ai note taker\", \"invoice maker\"]) to discover matching apps across the selected stores, harvest B2B developer contacts, and optionally analyze reviews.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "stores": {
            "title": "Stores to Search (for Keyword Discovery)",
            "type": "array",
            "description": "Which app stores to query when searchQueries is provided.",
            "items": {
              "type": "string",
              "enum": [
                "google_play",
                "apple_app_store"
              ]
            },
            "default": [
              "google_play",
              "apple_app_store"
            ]
          },
          "mode": {
            "title": "Extraction Mode",
            "enum": [
              "profiles_and_reviews",
              "profiles_only",
              "reviews_only"
            ],
            "type": "string",
            "description": "Choose whether to extract full app profiles + reviews, fast B2B app/developer profiles only, or reviews only.",
            "default": "profiles_and_reviews"
          },
          "maxAppsPerQuery": {
            "title": "Max Apps per Search Query (per Store)",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum apps to discover per search query per store (1–50).",
            "default": 10
          },
          "countries": {
            "title": "Storefront Countries (ISO-2, Multi-Country Polling)",
            "type": "array",
            "description": "One or more 2-letter country codes (e.g. [\"us\", \"gb\", \"ca\", \"au\", \"de\"]). Multi-country polling breaks Apple's 500-review/country RSS cap (up to 7,500+ reviews across 15+ regions with zero proxies).",
            "default": [
              "us"
            ],
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Google Play Language (hl)",
            "type": "string",
            "description": "2-letter language code for Google Play requests (e.g. en, de, fr, es, ja).",
            "default": "en"
          },
          "maxReviewsPerApp": {
            "title": "Max Reviews per App (Total Across Countries)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum review records to export per app across all selected countries (1–5000).",
            "default": 40
          },
          "sortBy": {
            "title": "Review Sort Order",
            "enum": [
              "newest",
              "most_relevant",
              "rating"
            ],
            "type": "string",
            "description": "Sort reviews by newest first, most relevant/helpful, or rating.",
            "default": "newest"
          },
          "ratingFilter": {
            "title": "Filter Reviews by Star Rating (Optional)",
            "type": "array",
            "description": "Restrict exported reviews to specific star ratings (e.g. [1, 2] to capture only negative pain-point & churn reviews). Empty = all 1–5 stars.",
            "default": []
          },
          "includePainDigest": {
            "title": "Generate Per-App Pain-Point & Version-Crash Digest",
            "type": "boolean",
            "description": "Emits 1 structured executive summary row (recordType: \"pain_digest\") per app ranking top user complaints, buggiest app versions, churn-risk share, and developer contact details.",
            "default": true
          },
          "onlyAppsWithDeveloperEmail": {
            "title": "Only Export Profiles with Developer Email (B2B Mode)",
            "type": "boolean",
            "description": "When enabled, skips exporting/charging app-profile records that do not include a public developer email (primarily applies to Google Play B2B lead generation).",
            "default": false
          },
          "deduplicateAcrossRuns": {
            "title": "Cross-Run Incremental Delta Dedup ($0 on Seen Reviews)",
            "type": "boolean",
            "description": "Enable for scheduled daily/weekly ASO monitoring: skips already-exported reviews from previous runs so you never pay twice for the same review.",
            "default": false
          },
          "dedupKey": {
            "title": "Delta State Namespace",
            "type": "string",
            "description": "Isolate cross-run dedup state between separate pipelines or client workspaces.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}