{
  "openapi": "3.0.1",
  "info": {
    "title": "App Store ASO Keyword Scraper: Difficulty & Ranks ($2/1K)",
    "description": "App Store ASO keyword scraper: difficulty and opportunity scores, top 10 ranked apps, related keywords and your app's rank, plus search results, app details, reviews and top charts. Takes keywords, app IDs or developer IDs and a country. Use it to pick ASO keywords and track app ranks.",
    "version": "1.0",
    "x-build-id": "RQehjaCJkBmssASad"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tamnt67~app-store-aso-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tamnt67-app-store-aso-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/tamnt67~app-store-aso-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tamnt67-app-store-aso-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/tamnt67~app-store-aso-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tamnt67-app-store-aso-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": {
          "mode": {
            "title": "Operation Mode",
            "enum": [
              "aso_keyword",
              "search",
              "app_detail",
              "reviews",
              "charts",
              "developer"
            ],
            "type": "string",
            "description": "Which App Store data to extract: aso_keyword (difficulty and opportunity scores per keyword), search (ranked apps per keyword), app_detail, reviews, charts or developer (all apps of a developer).",
            "default": "aso_keyword"
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "App Store search keywords, used in aso_keyword and search modes. If empty, the example keyword \"fitness tracker\" is used.",
            "items": {
              "type": "string"
            }
          },
          "appIds": {
            "title": "App IDs, URLs, or Bundle IDs",
            "type": "array",
            "description": "Apple numeric IDs (e.g. 6448311069), App Store URLs, or bundle IDs (e.g. com.openai.chat), used in app_detail and reviews modes. If empty, the example app 6448311069 is used.",
            "items": {
              "type": "string"
            }
          },
          "developerIds": {
            "title": "Developer IDs",
            "type": "array",
            "description": "Apple developer (artist) IDs, e.g. 1684349733, used in developer mode. The ID is the number after /developer/.../id in a developer page URL. If empty, the example 1684349733 is used.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Storefront Country (ISO-2)",
            "type": "string",
            "description": "2-letter Apple App Store storefront code (e.g. us, gb, jp, de, vn, sg, au, ca).",
            "default": "us"
          },
          "device": {
            "title": "Apple Device",
            "enum": [
              "iphone",
              "ipad",
              "mac"
            ],
            "type": "string",
            "description": "Target Apple App Store device catalog (iphone, ipad, or mac).",
            "default": "iphone"
          },
          "chartType": {
            "title": "Chart Type",
            "enum": [
              "top-free",
              "top-paid",
              "top-grossing"
            ],
            "type": "string",
            "description": "App Store top chart feed to scrape when mode is charts.",
            "default": "top-free"
          },
          "limit": {
            "title": "Max Items per Query",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of apps or chart entries returned per keyword or query (1-100). In aso_keyword mode the scores use the top 10.",
            "default": 25
          },
          "maxReviewPages": {
            "title": "Max Review Pages per App",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of Apple review pages to fetch per app (1-10 pages, ~50 reviews/page).",
            "default": 2
          },
          "reviewSort": {
            "title": "Review Sort Order",
            "enum": [
              "mostrecent",
              "mosthelpful"
            ],
            "type": "string",
            "description": "Sort customer reviews by most recent or most helpful.",
            "default": "mostrecent"
          },
          "includeDescription": {
            "title": "Include Full App Descriptions",
            "type": "boolean",
            "description": "Include full store descriptions and release notes in search and developer results (app_detail always includes them).",
            "default": false
          },
          "trackAppIds": {
            "title": "Track my apps (optional)",
            "type": "array",
            "description": "Optional. App IDs, App Store URLs or bundle IDs of your own or competitor apps, used in aso_keyword and search modes. aso_keyword records get a trackedApps list with each app's rank for the keyword (top 200, null if not found); search rows get isTrackedApp = true, and tracked apps ranked below the limit are added as extra rows.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}