{
  "openapi": "3.0.1",
  "info": {
    "title": "App Store Reviews API: Ratings History, ASO Keywords, Charts",
    "description": "App Store reviews API and Google Play reviews export: star ratings history, review summaries, category rankings, top charts, tracked keyword positions, ASO keyword research, keyword search results and release notes, from the AppFollow API v2. Bring your own key.",
    "version": "0.1",
    "x-build-id": "jbSjfMmAjrVne3WXF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nabeelbaghoor~app-store-reviews-ratings-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nabeelbaghoor-app-store-reviews-ratings-api",
        "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/nabeelbaghoor~app-store-reviews-ratings-api/runs": {
      "post": {
        "operationId": "runs-sync-nabeelbaghoor-app-store-reviews-ratings-api",
        "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/nabeelbaghoor~app-store-reviews-ratings-api/run-sync": {
      "post": {
        "operationId": "run-sync-nabeelbaghoor-app-store-reviews-ratings-api",
        "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": "What to read",
            "enum": [
              "reviews",
              "reviewsSummary",
              "ratingsHistory",
              "rankings",
              "topCharts",
              "keywordPositions",
              "keywordSuggestions",
              "keywordSearch",
              "whatsNew",
              "trackedApps"
            ],
            "type": "string",
            "description": "Each mode calls one documented read method of the AppFollow API v2 with your own token. Nothing is ever replied to, tagged, edited, added or removed on your account. Every data read uses AppFollow credits from your own allowance; tracked apps is free.",
            "default": "reviews"
          },
          "apiKey": {
            "title": "AppFollow API token",
            "type": "string",
            "description": "Your own AppFollow API v2 token. The Account Owner or Admin creates it on the API page of your AppFollow account; read access is enough. Sent only in the X-AppFollow-API-Token header to api.appfollow.io and removed from every log line. Leave empty to use the DATA_API_KEY secret."
          },
          "appIds": {
            "title": "App IDs",
            "type": "array",
            "description": "Reviews, reviews summary, ratings history, rankings, keyword positions and what's new. One app per line: an App Store ID such as 618783545, a Google Play bundle such as com.Slack, or an App Store or Google Play URL. Apps usually need to be tracked in your AppFollow workspace.",
            "items": {
              "type": "string"
            }
          },
          "collectionName": {
            "title": "Workspace (collection) name",
            "type": "string",
            "description": "Ratings history needs the workspace the apps are tracked in. Reviews reads every app in this workspace when no app IDs are given. Tracked apps lists only this workspace. Run tracked apps to see the names."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "ASO keyword research and keyword search results. One keyword or phrase per line, such as hotel or photo editor.",
            "items": {
              "type": "string"
            }
          },
          "store": {
            "title": "Store",
            "enum": [
              "as",
              "gp",
              "ms",
              "am",
              "mc",
              "xs"
            ],
            "type": "string",
            "description": "Ratings history. The documented store codes.",
            "default": "as"
          },
          "country": {
            "title": "Country",
            "enum": [
              "any",
              "all",
              "us",
              "gb",
              "ca",
              "au",
              "nz",
              "ie",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "be",
              "ch",
              "at",
              "se",
              "no",
              "dk",
              "fi",
              "pl",
              "cz",
              "pt",
              "gr",
              "ro",
              "hu",
              "ua",
              "ru",
              "tr",
              "il",
              "ae",
              "sa",
              "eg",
              "za",
              "ng",
              "ke",
              "in",
              "pk",
              "bd",
              "id",
              "my",
              "sg",
              "th",
              "vn",
              "ph",
              "jp",
              "kr",
              "cn",
              "hk",
              "tw",
              "br",
              "mx",
              "ar",
              "cl",
              "co",
              "pe"
            ],
            "type": "string",
            "description": "Store country (ISO 3166 two letter code). Top charts needs one. For Google Play reviews and release notes AppFollow filters by language rather than country.",
            "default": "us"
          },
          "language": {
            "title": "Language",
            "enum": [
              "any",
              "en",
              "es",
              "de",
              "fr",
              "it",
              "pt",
              "nl",
              "sv",
              "no",
              "da",
              "fi",
              "pl",
              "cs",
              "ro",
              "hu",
              "el",
              "tr",
              "ru",
              "uk",
              "ar",
              "he",
              "hi",
              "id",
              "ms",
              "th",
              "vi",
              "ja",
              "ko",
              "zh"
            ],
            "type": "string",
            "description": "Reviews, reviews summary and what's new. Filters Google Play reviews and release notes by language.",
            "default": "any"
          },
          "device": {
            "title": "Device",
            "enum": [
              "any",
              "iphone",
              "ipad",
              "android"
            ],
            "type": "string",
            "description": "Rankings, top charts, keyword positions, keyword research and keyword search. Top charts needs one.",
            "default": "any"
          },
          "genreId": {
            "title": "Genre ID",
            "type": "string",
            "description": "Top charts (required) and rankings (optional). The store genre ID: 0 for all App Store apps, 6003 for App Store Travel, 7016 for Sports games, or a Google Play category such as GAME_SPORTS or BUSINESS."
          },
          "dateFrom": {
            "title": "Start date",
            "type": "string",
            "description": "Reviews, reviews summary and ratings history. Defaults to 13 days before the end date, the 14 day range that costs the base 12 credits. Each further started 14 days costs 12 more credits per request."
          },
          "dateTo": {
            "title": "End date",
            "type": "string",
            "description": "Reviews, reviews summary and ratings history. Defaults to today (UTC)."
          },
          "date": {
            "title": "Date",
            "type": "string",
            "description": "Rankings, top charts and keyword positions. Defaults to today; top charts always sends it, as the method requires a date."
          },
          "reviewSearch": {
            "title": "Review text search",
            "type": "string",
            "description": "Reviews. Only reviews whose original text matches these words, such as crash or login."
          },
          "appVersion": {
            "title": "App version",
            "type": "string",
            "description": "Reviews summary and ratings history. Only this app version, such as 3.12."
          },
          "ratingsType": {
            "title": "Ratings type",
            "enum": [
              "total",
              "diff"
            ],
            "type": "string",
            "description": "Ratings history. Total is the running total of ratings on each date; diff is the new ratings between two consecutive dates.",
            "default": "total"
          },
          "ratingsPeriod": {
            "title": "Ratings period",
            "enum": [
              "daily",
              "weekly",
              "monthly",
              "quarter"
            ],
            "type": "string",
            "description": "Ratings history. One row per day, week, month or quarter.",
            "default": "daily"
          },
          "maxPagesPerLookup": {
            "title": "Pages per app",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Reviews, ratings history, keyword positions and what's new. Each page is one AppFollow request (12 credits or more). Reviews come up to 100 a page on paid plans.",
            "default": 3
          },
          "maxResults": {
            "title": "Maximum rows",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The run stops after this many rows.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}