{
  "openapi": "3.0.1",
  "info": {
    "title": "ASO Keyword Rank Tracker — App Store & Google Play",
    "description": "Track keyword rankings, find top apps per keyword, and discover related keywords across Apple App Store and Google Play (60+ storefronts). Pay-per-use, no subscription. Flat CSV output. The affordable AppTweak / Sensor Tower alternative — same data at a fraction of the cost.",
    "version": "1.0",
    "x-build-id": "VJNdhLcitRem5szze"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/slothtechlabs~aso-keyword-rank-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-slothtechlabs-aso-keyword-rank-tracker",
        "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/slothtechlabs~aso-keyword-rank-tracker/runs": {
      "post": {
        "operationId": "runs-sync-slothtechlabs-aso-keyword-rank-tracker",
        "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/slothtechlabs~aso-keyword-rank-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-slothtechlabs-aso-keyword-rank-tracker",
        "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": [
          "action",
          "stores",
          "storefront"
        ],
        "properties": {
          "action": {
            "title": "What do you want to do?",
            "enum": [
              "keyword-top-apps",
              "keyword-recommendations",
              "app-rank-tracking"
            ],
            "type": "string",
            "description": "Pick an action. Each action uses a different subset of the fields below.",
            "default": "keyword-top-apps"
          },
          "stores": {
            "title": "Stores",
            "type": "array",
            "description": "Query Apple App Store, Google Play, or both in one run.",
            "items": {
              "type": "string",
              "enum": [
                "apple",
                "google"
              ],
              "enumTitles": [
                "🍎 Apple App Store (iOS)",
                "🤖 Google Play Store (Android)"
              ]
            },
            "default": [
              "apple",
              "google"
            ]
          },
          "storefront": {
            "title": "Storefront (Country)",
            "enum": [
              "us",
              "gb",
              "jp",
              "kr",
              "cn",
              "de",
              "fr",
              "au",
              "ca",
              "br",
              "in",
              "mx",
              "it",
              "es",
              "nl",
              "se",
              "no",
              "dk",
              "fi",
              "ch",
              "at",
              "be",
              "pt",
              "ie",
              "nz",
              "sg",
              "hk",
              "tw",
              "th",
              "my",
              "ph",
              "id",
              "vn",
              "sa",
              "ae",
              "il",
              "tr",
              "ru",
              "pl",
              "cz",
              "hu",
              "ro",
              "bg",
              "hr",
              "sk",
              "si",
              "lt",
              "lv",
              "ee",
              "gr",
              "ua",
              "za",
              "ng",
              "ke",
              "eg",
              "ar",
              "cl",
              "co",
              "pe",
              "pk"
            ],
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code. 60 storefronts supported.",
            "default": "us"
          },
          "keywords": {
            "title": "Keywords",
            "maxItems": 100,
            "type": "array",
            "description": "Used by 'Top apps for keywords' and 'App rank tracking'. Enter one keyword per line, up to 100.",
            "items": {
              "type": "string"
            }
          },
          "topN": {
            "title": "How many top apps per keyword?",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Only used by 'Top apps for keywords'. 1–20. Default 10. Increasing this multiplies the number of result rows.",
            "default": 10
          },
          "seedKeyword": {
            "title": "Seed keyword",
            "type": "string",
            "description": "Only used by 'Keyword recommendations'. A single seed word to expand (e.g., 'fitness' → 'fitness tracker', 'fitness app for women', ...)."
          },
          "limit": {
            "title": "How many recommendations?",
            "minimum": 1,
            "maximum": 80,
            "type": "integer",
            "description": "Only used by 'Keyword recommendations'. 1–80 suggestions per store. Default 50.",
            "default": 50
          },
          "apps": {
            "title": "App IDs to track",
            "maxItems": 20,
            "type": "array",
            "description": "Only used by 'App rank tracking'. Enter Apple numeric trackIds (e.g., \"389801252\" — the digits after '/id' in a URL like https://apps.apple.com/us/app/instagram/id389801252) OR Google bundle ids (e.g., \"com.instagram.android\" — the value after '?id=' in a URL like https://play.google.com/store/apps/details?id=com.instagram.android). Up to 20.",
            "items": {
              "type": "string"
            }
          },
          "myApp": {
            "title": "My app ID (optional)",
            "type": "string",
            "description": "Only used by 'App rank tracking'. Your own app's ID (Apple trackId or Google bundle id). If set, the row for that app will have isMyApp=true — handy for side-by-side reports. Will be automatically added to the tracked apps list if not already there."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Defaults to Apify Proxy (datacenter). Enable residential if a specific country returns sparse Google Play results.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}