{
  "openapi": "3.0.1",
  "info": {
    "title": "App Store Scraper · Apps, Reviews, Search & Developer Emails",
    "description": "Scrape the Apple App Store — app details, reviews, ranked search (ASO), similar apps and developer portfolios — across multiple countries in one run. Optional ratings histogram and developer contact-email enrichment. Prices, ratings and ranking per storefront. JSON, CSV, Excel.",
    "version": "0.0",
    "x-build-id": "IMqsw6LJkQbTfwKKe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~app-store-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-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/memo23~app-store-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-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/memo23~app-store-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-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": {
          "action": {
            "title": "Action",
            "enum": [
              "appDetails",
              "reviews",
              "search",
              "similar",
              "developer"
            ],
            "type": "string",
            "description": "What to extract. appDetails returns full app info (with optional ratings histogram, similar apps and developer email); reviews returns app reviews; search returns ranked results (ASO position); similar returns related apps; developer returns a developer's apps. Tip: you can just fill the field you have — a keyword in Search terms OR an app URL in App URLs — and the Actor auto-runs the matching action even if this dropdown says something else.",
            "default": "appDetails"
          },
          "appUrls": {
            "title": "App Store URLs / IDs",
            "type": "array",
            "description": "App Store app URLs, numeric track IDs, or bundle IDs (e.g. https://apps.apple.com/us/app/spotify/id324684580, 324684580, or com.spotify.client). Used by App details / Reviews / Similar apps.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search terms",
            "type": "array",
            "description": "Keywords to search (Search action). If you fill this and leave App URLs empty, the Actor runs a search automatically — even if Action is still on 'App details'. Results come back in the App Store's ranked order — array position is the ASO rank.",
            "items": {
              "type": "string"
            }
          },
          "devIds": {
            "title": "Developer IDs",
            "type": "array",
            "description": "Apple developer IDs or developer-page URLs (used by action = Developer's apps), e.g. 324684583 or https://apps.apple.com/us/developer/spotify/id324684583.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Two-letter storefront codes to scrape — every input runs against each country. Prices, ratings, availability and ranking are country-specific. Default ['us'].",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Optional language code (e.g. en-us) for the returned text."
          },
          "includeRatings": {
            "title": "Include ratings histogram",
            "type": "boolean",
            "description": "Attach the total ratings count and the 1–5 star histogram. One extra request per app. (App details only.)",
            "default": false
          },
          "includeSimilar": {
            "title": "Include similar apps",
            "type": "boolean",
            "description": "Attach a list of similar apps to each app row. One extra request per app. (App details only.)",
            "default": false
          },
          "enrichEmails": {
            "title": "Enrich with developer contact email (billed per email)",
            "type": "boolean",
            "description": "Resolve a contact email from the developer's website (lead generation). Adds contactEmail + emailEnrichment. Billed per email found; only charged when an email is returned. (App details only.)",
            "default": false
          },
          "reviewsSort": {
            "title": "Reviews sort",
            "enum": [
              "recent",
              "helpful"
            ],
            "type": "string",
            "description": "Order for reviews (action = Reviews). The App Store exposes up to ~500 reviews per app per country.",
            "default": "recent"
          },
          "maxReviewsPerApp": {
            "title": "Max reviews per app",
            "minimum": 1,
            "type": "integer",
            "description": "Upper bound on reviews collected per app per country (action = Reviews). The App Store caps at ~500.",
            "default": 100
          },
          "resultsLimit": {
            "title": "Results per query / developer",
            "minimum": 1,
            "type": "integer",
            "description": "Max results per search term or developer.",
            "default": 50
          },
          "reviewInsights": {
            "title": "📊 Review insights — auto-analyze the reviews (billed per app)",
            "type": "boolean",
            "description": "Adds one `review_insights` summary row per app: rating breakdown & sentiment split, the recurring complaint themes (crashes, pricing, ads, login, missing features…), the top negative-review terms, and feature-request snippets users are asking for. Instant, no AI/keys required. Billed per app analyzed.",
            "default": false
          },
          "painPointAnalysis": {
            "title": "🤖 AI pain-point analysis — LLM teardown (paid plans, billed per app)",
            "type": "boolean",
            "description": "The premium tier of review insights. Runs an AI (Claude) pass over each app's reviews and adds a `painPointAnalysis` row: clustered pain-point themes with severity & recurrence, missing features users ask for, quick wins, overall sentiment and a short summary — e.g. an app → 'Frequent crashes on launch' (severity 5, 40% of reviews), missing: offline mode. Requires a paid Apify plan (uses AI credits); billed per app analyzed. For a free, no-AI version use Review insights above.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum items to scrape",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on total dataset rows across all inputs and countries.",
            "default": 1000
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum requests in flight.",
            "default": 6
          },
          "proxy": {
            "title": "Proxy configuration (optional override)",
            "type": "object",
            "description": "Leave empty — the actor already routes all traffic through its own built-in residential proxy at no extra cost to you. Only set this if you want to use your own proxies."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}