{
  "openapi": "3.0.1",
  "info": {
    "title": "App Store & Google Play Rank Tracker: Keywords + Top Charts",
    "description": "Track keyword rankings and top charts on App Store and Google Play in one run, across countries. Highlights your apps and competitors and shows rank change since the previous run. Built for ASO monitoring on a schedule.",
    "version": "0.1",
    "x-build-id": "lgVIQvJFwAVFWbJBo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/feedharvest~app-store-play-rank-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-feedharvest-app-store-play-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/feedharvest~app-store-play-rank-tracker/runs": {
      "post": {
        "operationId": "runs-sync-feedharvest-app-store-play-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/feedharvest~app-store-play-rank-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-feedharvest-app-store-play-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",
        "properties": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Search terms to check rankings for, e.g. \"budget planner\". Each keyword is searched in every selected store and country.",
            "items": {
              "type": "string"
            }
          },
          "keywordSuggestionsFor": {
            "title": "Get keyword suggestions for",
            "type": "array",
            "description": "Seed words for keyword research, e.g. \"budget\". Returns the stores' own search autocomplete suggestions per store and country.",
            "items": {
              "type": "string"
            }
          },
          "deepSuggestions": {
            "title": "Deep suggestions (A–Z expansion)",
            "type": "boolean",
            "description": "Also query \"seed a\", \"seed b\" … \"seed z\" to find many more long-tail suggestions (27x more lookups).",
            "default": false
          },
          "trackApps": {
            "title": "Apps to track",
            "type": "array",
            "description": "Your app and competitors: app names, App Store IDs/links or Google Play package names/links. Their ranks are highlighted, and if they are not in the list we tell you.",
            "items": {
              "type": "string"
            }
          },
          "onlyTrackedApps": {
            "title": "Only save rows for tracked apps",
            "type": "boolean",
            "description": "Cheaper and shorter output: save only your tracked apps' positions (including \"not ranked\"), not the full lists.",
            "default": false
          },
          "charts": {
            "title": "Top charts",
            "type": "array",
            "description": "Optional: also collect top charts.",
            "items": {
              "type": "string",
              "enum": [
                "topFree",
                "topPaid",
                "topGrossing"
              ],
              "enumTitles": [
                "Top free",
                "Top paid",
                "Top grossing"
              ]
            },
            "default": []
          },
          "chartCategories": {
            "title": "Chart categories",
            "type": "array",
            "description": "Categories for the top charts. Mapped to the matching category in each store.",
            "items": {
              "type": "string",
              "enum": [
                "ALL",
                "GAMES",
                "BOOKS",
                "BUSINESS",
                "EDUCATION",
                "ENTERTAINMENT",
                "FINANCE",
                "FOOD_DRINK",
                "GRAPHICS_DESIGN",
                "HEALTH_FITNESS",
                "LIFESTYLE",
                "MEDICAL",
                "MUSIC",
                "NAVIGATION",
                "NEWS",
                "PHOTO_VIDEO",
                "PRODUCTIVITY",
                "SHOPPING",
                "SOCIAL",
                "SPORTS",
                "TRAVEL",
                "UTILITIES",
                "WEATHER",
                "DEVELOPER_TOOLS",
                "COMMUNICATION",
                "DATING"
              ],
              "enumTitles": [
                "All apps",
                "Games",
                "Books & Reference",
                "Business",
                "Education",
                "Entertainment",
                "Finance",
                "Food & Drink",
                "Graphics & Design",
                "Health & Fitness",
                "Lifestyle",
                "Medical",
                "Music",
                "Navigation",
                "News",
                "Photo & Video",
                "Productivity",
                "Shopping",
                "Social Networking",
                "Sports",
                "Travel",
                "Utilities / Tools",
                "Weather",
                "Developer Tools (App Store only)",
                "Communication (Google Play only)",
                "Dating (Google Play only)"
              ]
            },
            "default": [
              "ALL"
            ]
          },
          "stores": {
            "title": "Stores",
            "enum": [
              "both",
              "appStore",
              "googlePlay"
            ],
            "type": "string",
            "description": "Which stores to check.",
            "default": "both"
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Two-letter country codes, e.g. us, gb, de, jp, vn.",
            "default": [
              "us"
            ],
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Google Play language",
            "type": "string",
            "description": "Two-letter language code used for Google Play.",
            "default": "en"
          },
          "maxResults": {
            "title": "Positions to check per list",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How deep to look. Store limits: App Store search 200, App Store charts 100, Google Play search 30, Google Play charts 200.",
            "default": 50
          },
          "compareWithPreviousRun": {
            "title": "Show rank change vs previous run",
            "type": "boolean",
            "description": "Remembers ranks between runs (in a named key-value store in your account) and adds previousRank, rankChange and isNewEntry. Schedule the run daily to track movement.",
            "default": true
          },
          "historyName": {
            "title": "History name",
            "type": "string",
            "description": "Use different names to keep separate histories for different projects or tasks.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}