{
  "openapi": "3.0.1",
  "info": {
    "title": "App Stores Scraper",
    "description": "Effortlessly gather app data from both the Google Play Store and Apple App Store. Our Actor is designed for speed, reliability, and scalability, handling multiple apps in a single run with ease. Perfect for businesses, developers, and analysts looking to gain insights and make data-driven decisions.",
    "version": "1.1",
    "x-build-id": "Q58UKAFT9zSjaUjMo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/codingfrontend~app-stores-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-codingfrontend-app-stores-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/codingfrontend~app-stores-scraper/runs": {
      "post": {
        "operationId": "runs-sync-codingfrontend-app-stores-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/codingfrontend~app-stores-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-codingfrontend-app-stores-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": [
              "apple_store_app_details",
              "apple_store_top_apps",
              "apple_store_search_apps",
              "google_play_app_details",
              "google_play_app_reviews",
              "google_play_top_apps",
              "google_play_search_apps"
            ],
            "type": "string",
            "description": "Operation to run; defaults to Apple app details when omitted.",
            "default": "apple_store_app_details"
          },
          "country": {
            "title": "Country",
            "pattern": "^[A-Za-z]{2}$",
            "minLength": 2,
            "maxLength": 2,
            "type": "string",
            "description": "Two-letter storefront country code.",
            "default": "us"
          },
          "language": {
            "title": "Language",
            "pattern": "^[A-Za-z]{2}$",
            "minLength": 2,
            "maxLength": 2,
            "type": "string",
            "description": "Two-letter language code.",
            "default": "en"
          },
          "apple_app_ids": {
            "title": "Apple App IDs",
            "maxItems": 100,
            "type": "array",
            "description": "Numeric Apple App Store IDs. Used by apple_store_app_details; if omitted, the default Apple app ID is used.",
            "items": {
              "type": "string",
              "pattern": "^[0-9]+$",
              "maxLength": 40
            },
            "default": [
              "284882215"
            ]
          },
          "apple_store_top_apps_device_types": {
            "title": "Apple chart device types",
            "maxItems": 10,
            "type": "array",
            "description": "Device families to request for Apple charts.",
            "items": {
              "type": "string",
              "enum": [
                "iphone",
                "ipad"
              ]
            },
            "default": [
              "iphone"
            ]
          },
          "apple_store_top_apps_modes": {
            "title": "Apple chart modes",
            "maxItems": 10,
            "type": "array",
            "description": "Apple free or paid chart collections.",
            "items": {
              "type": "string",
              "enum": [
                "top-free",
                "top-paid"
              ]
            },
            "default": [
              "top-free"
            ]
          },
          "apple_store_top_apps_genres": {
            "title": "Apple chart genre IDs",
            "maxItems": 20,
            "type": "array",
            "description": "Apple genre IDs to request, such as 6005 for Social Networking.",
            "items": {
              "type": "string",
              "minLength": 1,
              "pattern": "^[0-9]+$"
            },
            "default": [
              "6005"
            ]
          },
          "apple_store_max_top_apps": {
            "title": "Maximum apps per Apple chart",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of app records to keep from each selected Apple chart.",
            "default": 100
          },
          "apple_store_search_apps": {
            "title": "Apple search text",
            "pattern": "\\S",
            "minLength": 1,
            "maxLength": 500,
            "type": "string",
            "description": "Search phrase for apple_store_search_apps. Required for that action."
          },
          "google_bundle_ids": {
            "title": "Google Play package IDs",
            "maxItems": 50,
            "type": "array",
            "description": "Google Play package IDs for app details or review collection. Required by those actions.",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_]+(?:\\.[A-Za-z0-9_]+)+$",
              "maxLength": 300
            },
            "default": []
          },
          "google_play_reviews_rating": {
            "title": "Review rating filter",
            "enum": [
              "all",
              "1",
              "2",
              "3",
              "4",
              "5"
            ],
            "type": "string",
            "description": "Keep all visible review cards or only cards with this star rating.",
            "default": "all"
          },
          "google_play_max_reviews": {
            "title": "Maximum reviews per package",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of visible public review cards to return for each package ID.",
            "default": 100
          },
          "google_play_top_apps_categories": {
            "title": "Google Play categories",
            "maxItems": 20,
            "type": "array",
            "description": "Category codes whose public Google Play pages should be searched, such as SOCIAL or GAME_ACTION. Use OVERALL for the general apps page.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[A-Za-z0-9_]+$"
            },
            "default": [
              "SOCIAL"
            ]
          },
          "google_play_search_apps": {
            "title": "Google Play search text",
            "pattern": "\\S",
            "minLength": 1,
            "maxLength": 500,
            "type": "string",
            "description": "Search phrase for google_play_search_apps. Required for that action."
          },
          "maxResults": {
            "title": "Maximum discovery results",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "Maximum results for Apple search and Google Play search or category discovery. It does not cap detail actions or Apple charts.",
            "default": 25
          },
          "timeoutMs": {
            "title": "Request timeout (milliseconds)",
            "minimum": 5000,
            "maximum": 120000,
            "type": "integer",
            "description": "Timeout for each direct public request.",
            "default": 30000
          },
          "requestDelayMs": {
            "title": "Delay between requests (milliseconds)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Minimum pause between sequential direct requests.",
            "default": 150
          },
          "maxResponseBytes": {
            "title": "Maximum response size (bytes)",
            "minimum": 1000,
            "maximum": 15000000,
            "type": "integer",
            "description": "Maximum number of bytes accepted from each public source response.",
            "default": 8000000
          },
          "deduplicate": {
            "title": "Deduplicate records",
            "type": "boolean",
            "description": "Skip repeated app identities and repeated review IDs before writing results.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional Apify Proxy or custom HTTP, HTTPS, or SOCKS5 proxy settings. Proxy use is disabled by default.",
            "default": {
              "useApifyProxy": 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}