{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Play & App Store Scraper",
    "description": "Scrape Google Play and the Apple App Store in one Actor: search apps, app details, reviews, ratings, similar apps, top charts, developer listings, categories, privacy and data safety, cross-store matching and a virality score. Export to JSON, CSV or Excel.",
    "version": "0.0",
    "x-build-id": "WNC8LPB3ou0TtEXsC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pintostudio~google-apple/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pintostudio-google-apple",
        "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/pintostudio~google-apple/runs": {
      "post": {
        "operationId": "runs-sync-pintostudio-google-apple",
        "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/pintostudio~google-apple/run-sync": {
      "post": {
        "operationId": "run-sync-pintostudio-google-apple",
        "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": [
          "operation"
        ],
        "properties": {
          "operation": {
            "title": "Operation",
            "enum": [
              "search",
              "suggest",
              "appDetail",
              "reviews",
              "similar",
              "ratings",
              "virality",
              "privacy",
              "permissions",
              "datasafety",
              "developer",
              "charts",
              "categories",
              "match",
              "appMatch"
            ],
            "type": "string",
            "description": "Which thing to do.",
            "default": "search"
          },
          "source": {
            "title": "Source",
            "enum": [
              "google",
              "apple",
              "all"
            ],
            "type": "string",
            "description": "Which store. \"all\" only applies to Search, Categories and Match search.",
            "default": "google"
          },
          "term": {
            "title": "Search term",
            "type": "string",
            "description": "Required for Search, Autocomplete suggestions, and Match search."
          },
          "appId": {
            "title": "App ID",
            "type": "string",
            "description": "Required for App details, Reviews, Similar apps, Ratings, Virality score, Privacy, Permissions, Data safety, and Match app. Google: the package name (e.g. com.whatsapp). Apple: the numeric App Store id (e.g. 553834731) or the bundle id (e.g. com.midasplayer.apps.candycrushsaga)."
          },
          "devId": {
            "title": "Developer ID",
            "type": "string",
            "description": "Required for Developer's apps. Google: the developer's display name as shown on Play (e.g. \"WhatsApp LLC\"). Apple: the numeric developer/artist id (e.g. 526656015)."
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "2-letter store country code.",
            "default": "us"
          },
          "lang": {
            "title": "Language",
            "type": "string",
            "description": "Language code for localized results. Leave empty for the store's default."
          },
          "page": {
            "title": "Page",
            "minimum": 1,
            "type": "integer",
            "description": "1-based page number. Applies to Search, Reviews, Similar apps, Developer's apps, and Charts.",
            "default": 1
          },
          "perPage": {
            "title": "Results per page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Applies to Search, Reviews, Similar apps, Developer's apps, and Charts. Also used by Match search/Match app as \"candidates to consider per store\".",
            "default": 20
          },
          "sort": {
            "title": "Sort",
            "type": "string",
            "description": "Search / Similar apps / Developer's apps / Charts: \"relevance\" (default), \"rating\", \"newest\", or \"title\". Reviews: \"newest\" (default), \"oldest\", \"highest\", or \"lowest\". Leave empty for the default."
          },
          "collection": {
            "title": "Collection",
            "type": "string",
            "description": "Charts only. Google: a google-play-scraper collection constant (e.g. TOP_FREE, TOP_PAID, TOP_GROSSING). Apple: \"top-free\", \"top-paid\", \"top-grossing\", or a classic app-store-scraper collection constant (e.g. topfreeipadapplications).",
            "default": "top-free"
          },
          "category": {
            "title": "Category",
            "type": "string",
            "description": "Charts only. Google: a google-play-scraper category constant (e.g. GAME_ACTION). Apple: a numeric genre id."
          },
          "minScore": {
            "title": "Minimum match score",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Match app only. Confidence threshold (0-1) below which \"match\" comes back null.",
            "default": 0.55
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}