{
  "openapi": "3.0.1",
  "info": {
    "title": "App Store & Google Play Search Rank + Top Charts (ASO)",
    "description": "Keyword search ranks and top charts (free, paid, grossing) by category and country for the Apple App Store and Google Play. Track your app's position for ASO. One row per app.",
    "version": "0.1",
    "x-build-id": "Jd4A1nYe2qOxXU67p"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fjordlabs~app-store-search-charts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fjordlabs-app-store-search-charts",
        "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/fjordlabs~app-store-search-charts/runs": {
      "post": {
        "operationId": "runs-sync-fjordlabs-app-store-search-charts",
        "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/fjordlabs~app-store-search-charts/run-sync": {
      "post": {
        "operationId": "run-sync-fjordlabs-app-store-search-charts",
        "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": "Mode",
            "enum": [
              "search",
              "charts",
              "both"
            ],
            "type": "string",
            "description": "Keyword search ranks, top charts, or both in one run.",
            "default": "search"
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Search terms to check, one per line. Each keyword gives the ranked list of apps the store returns for it (search mode).",
            "items": {
              "type": "string"
            }
          },
          "stores": {
            "title": "Stores",
            "type": "array",
            "description": "Apple App Store (iOS) and/or Google Play (Android).",
            "items": {
              "type": "string",
              "enum": [
                "apple",
                "google_play"
              ],
              "enumTitles": [
                "Apple App Store",
                "Google Play"
              ]
            },
            "default": [
              "apple",
              "google_play"
            ]
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Two-letter store country codes, e.g. us, gb, dk, de. Rankings differ per country.",
            "default": [
              "us"
            ],
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Language (Google Play)",
            "type": "string",
            "description": "Language code for Google Play results, e.g. en, da, de. Apple uses the country's default language.",
            "default": "en"
          },
          "maxResultsPerKeyword": {
            "title": "Max apps per keyword (per store and country)",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How deep to check search ranks. Apple returns up to 200; Google Play usually around 30-50.",
            "default": 50
          },
          "charts": {
            "title": "Charts",
            "type": "array",
            "description": "Which top charts to fetch (charts mode).",
            "items": {
              "type": "string",
              "enum": [
                "top_free",
                "top_paid",
                "top_grossing"
              ],
              "enumTitles": [
                "Top free",
                "Top paid",
                "Top grossing"
              ]
            },
            "default": [
              "top_free"
            ]
          },
          "categories": {
            "title": "Chart categories",
            "type": "array",
            "description": "Store categories for the charts. Each name maps to the matching Apple genre and Google Play category.",
            "items": {
              "type": "string",
              "enum": [
                "ALL",
                "GAMES",
                "BOOKS",
                "BUSINESS",
                "EDUCATION",
                "ENTERTAINMENT",
                "FINANCE",
                "FOOD_AND_DRINK",
                "HEALTH_AND_FITNESS",
                "LIFESTYLE",
                "MEDICAL",
                "MUSIC",
                "NAVIGATION",
                "NEWS",
                "PHOTO_AND_VIDEO",
                "PRODUCTIVITY",
                "SHOPPING",
                "SOCIAL",
                "SPORTS",
                "TRAVEL",
                "UTILITIES",
                "WEATHER"
              ],
              "enumTitles": [
                "All apps (Play: all non-game apps)",
                "Games",
                "Books & Reference",
                "Business",
                "Education",
                "Entertainment",
                "Finance",
                "Food & Drink",
                "Health & Fitness",
                "Lifestyle",
                "Medical",
                "Music & Audio",
                "Maps & Navigation",
                "News & Magazines",
                "Photo & Video",
                "Productivity",
                "Shopping",
                "Social",
                "Sports",
                "Travel",
                "Utilities / Tools",
                "Weather"
              ]
            },
            "default": [
              "ALL"
            ]
          },
          "maxResultsPerChart": {
            "title": "Max apps per chart",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Apple's charts stop at 100 apps; Google Play goes up to 200.",
            "default": 100
          },
          "trackApps": {
            "title": "Track my apps (optional)",
            "type": "array",
            "description": "Your apps (and competitors): App Store URLs/IDs or Google Play URLs/package names. Matching rows get tracked = true.",
            "items": {
              "type": "string"
            }
          },
          "onlyTrackedApps": {
            "title": "Only output tracked apps",
            "type": "boolean",
            "description": "Keep only the tracked apps' rows. A tracked app that is not in the results gets a free 'not ranked' row, so you see where you dropped out.",
            "default": false
          },
          "includePlayDetails": {
            "title": "Add Google Play rating counts (slower)",
            "type": "boolean",
            "description": "Google Play search and charts don't include the number of ratings. This fetches each Play app's page for ratingsCount and exact installs (one extra request per app).",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}