{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Play Similar Apps Scraper",
    "description": "Collect public related and similar-app recommendations from Google Play listings.",
    "version": "1.1",
    "x-build-id": "sB5jePB9JRHI5YCMs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/googleapi~google-play-similar-apps-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-googleapi-google-play-similar-apps-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/googleapi~google-play-similar-apps-scraper/runs": {
      "post": {
        "operationId": "runs-sync-googleapi-google-play-similar-apps-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/googleapi~google-play-similar-apps-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-googleapi-google-play-similar-apps-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": {
          "appId": {
            "title": "App ID",
            "pattern": "^[A-Za-z0-9_]+(?:[.-][A-Za-z0-9_]+)+$",
            "type": "string",
            "description": "Google Play package ID to inspect as a source app."
          },
          "appIds": {
            "title": "App IDs",
            "maxItems": 50,
            "type": "array",
            "description": "Package IDs for several source app listings.",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_]+(?:[.-][A-Za-z0-9_]+)+$"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "maxItems": 50,
            "type": "array",
            "description": "Public HTTPS Google Play app-detail, search, or category pages.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "title": "Public Google Play URL",
                  "description": "HTTPS URL on play.google.com under /store/.",
                  "type": "string"
                }
              },
              "required": [
                "url"
              ],
              "additionalProperties": false
            }
          },
          "sourceUrls": {
            "title": "Source URL alias",
            "maxItems": 50,
            "type": "array",
            "description": "Compatibility alias for a list of public Google Play URLs.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "URL alias",
            "maxItems": 50,
            "type": "array",
            "description": "Compatibility alias for a list of public Google Play URLs.",
            "items": {
              "type": "string"
            }
          },
          "url": {
            "title": "Single URL alias",
            "type": "string",
            "description": "Compatibility alias for one public Google Play URL."
          },
          "searchTerm": {
            "title": "Search term",
            "maxLength": 200,
            "type": "string",
            "description": "Discover app listings from the public Google Play app-search page."
          },
          "searchTerms": {
            "title": "Search terms",
            "maxItems": 20,
            "type": "array",
            "description": "Discover app listings from up to 20 public Google Play searches.",
            "items": {
              "type": "string",
              "maxLength": 200
            }
          },
          "maxApps": {
            "title": "Maximum apps per search source",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum distinct app listings discovered from each search source.",
            "default": 20
          },
          "maxTargets": {
            "title": "Maximum source apps",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum source app-detail pages processed, including apps discovered from search pages.",
            "default": 10
          },
          "maxItems": {
            "title": "Maximum output records",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Global limit on similar-app records across all source apps.",
            "default": 200
          },
          "maxResults": {
            "title": "Maximum output alias",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Compatibility alias for maxItems."
          },
          "page": {
            "title": "Starting page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "One-based page to begin processing. The Actor follows only next-page links present in the public source; Google Play currently may expose no next link.",
            "default": 1
          },
          "maxPages": {
            "title": "Maximum pages per source URL",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum pages followed per search/category URL, including pages traversed to reach the starting page.",
            "default": 10
          },
          "maxSimilar": {
            "title": "Similar apps per source app",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum distinct cards read from each source app's Similar apps shelf.",
            "default": 20
          },
          "deduplicate": {
            "title": "Deduplicate recommendations",
            "type": "boolean",
            "description": "Keep only one record for each source-app and recommended-app package-ID pair.",
            "default": true
          },
          "includeSimilarAppDetails": {
            "title": "Fetch recommended-app details",
            "type": "boolean",
            "description": "Optionally fetch each recommended app's public listing to add its description, screenshots, rating distribution, data-safety summary, and developer links. Disabled by default to avoid extra page requests.",
            "default": false
          },
          "maxDetailApps": {
            "title": "Maximum recommended-app detail pages",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Global cap on additional recommended-app pages fetched when detail enrichment is enabled.",
            "default": 20
          },
          "locale": {
            "title": "Locale",
            "pattern": "^[a-z]{2}(?:[-_][A-Z]{2})?$",
            "type": "string",
            "description": "Google Play language-country locale used for generated page URLs, for example en-US."
          },
          "language": {
            "title": "Language alias",
            "pattern": "^[a-z]{2}$",
            "type": "string",
            "description": "Optional two-letter language override. Must agree with locale when both are provided."
          },
          "country": {
            "title": "Country alias",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "Optional two-letter country override. Must agree with locale when both are provided."
          },
          "location": {
            "title": "Country compatibility alias",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "Compatibility alias for country."
          },
          "requestTimeoutSecs": {
            "title": "Request timeout",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Maximum seconds per public Google Play request.",
            "default": 30
          },
          "requestTimeoutMs": {
            "title": "Timeout compatibility alias",
            "minimum": 5000,
            "maximum": 120000,
            "type": "integer",
            "description": "Compatibility alias for requestTimeoutSecs, in milliseconds."
          },
          "timeoutSecs": {
            "title": "Timeout compatibility alias",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Compatibility alias for requestTimeoutSecs."
          },
          "requestDelayMs": {
            "title": "Request delay",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Minimum delay before every later public page request.",
            "default": 500
          },
          "maxRequestRetries": {
            "title": "Request retries",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Finite retries for transient network and server failures.",
            "default": 1
          },
          "maxResponseBytes": {
            "title": "Maximum response size",
            "minimum": 100000,
            "maximum": 5000000,
            "type": "integer",
            "description": "Maximum HTML bytes accepted from any page.",
            "default": 2500000
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional active Apify Proxy configuration. No proxy is selected automatically."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}