{
  "openapi": "3.0.1",
  "info": {
    "title": "App Store Scraper - Apps, Charts & Reviews",
    "description": "Extract Apple App Store search results, charts, app details, reviews and developer links across storefronts. Pay per delivered row plus a start fee; export JSON, CSV or Excel.",
    "version": "0.2",
    "x-build-id": "IJ3C9QsxDKc3zpDNJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~apple-app-store-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-apple-app-store-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/lentic_clockss~apple-app-store-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-apple-app-store-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/lentic_clockss~apple-app-store-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-apple-app-store-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": "Mode",
            "enum": [
              "auto",
              "search",
              "charts",
              "detail",
              "today",
              "games",
              "apps",
              "arcade",
              "developer",
              "grouping",
              "editorial",
              "story",
              "room",
              "reviews",
              "similar"
            ],
            "type": "string",
            "description": "What to collect. Auto picks the mode from the fields you fill in (start URL > app id > developer id > collection id > search term). Shelf and chart modes (charts, today, games, apps, arcade) need no other field.",
            "default": "auto"
          },
          "term": {
            "title": "Search term",
            "type": "string",
            "description": "Search term, e.g. calendar. Used by search mode; filling only this field runs a search."
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "App Store URLs for search, charts, apps, developers, reviews or collections; each URL determines its page type. Include the storefront, and include a platform for search URLs, such as https://apps.apple.com/us/iphone/search?term=notes.",
            "items": {
              "type": "string"
            }
          },
          "adamId": {
            "title": "App adamId",
            "pattern": "^(id)?[0-9]*$",
            "type": "string",
            "description": "Numeric app id (the digits after id in the app link). Used by detail, reviews and similar modes."
          },
          "artistId": {
            "title": "Developer artistId",
            "pattern": "^(id)?[0-9]*$",
            "type": "string",
            "description": "Numeric developer id (the digits after id in the developer link). Used by developer mode."
          },
          "groupingId": {
            "title": "Grouping id",
            "type": "string",
            "description": "Collection id for grouping, editorial, story and room modes, e.g. 25236."
          },
          "country": {
            "title": "Storefront",
            "type": "string",
            "description": "Two-letter App Store storefront code, such as us, gb, jp or cn. Search supports 174 storefronts; availability of other modes varies by storefront and platform.",
            "default": "us"
          },
          "platform": {
            "title": "Platform",
            "enum": [
              "iphone",
              "ipad",
              "mac",
              "vision",
              "watch",
              "tv"
            ],
            "type": "string",
            "description": "Choose the platform path: iphone, ipad, mac, vision, watch or tv. Available data varies by storefront and mode.",
            "default": "iphone"
          },
          "chart": {
            "title": "Chart type",
            "enum": [
              "top-free",
              "top-paid"
            ],
            "type": "string",
            "description": "Collect top-free or top-paid apps in charts mode. Top-grossing charts are not supported.",
            "default": "top-free"
          },
          "genreId": {
            "title": "Charts genre id",
            "type": "string",
            "description": "Chart category identifier, such as 6014 for Games or 6001 for Weather. Leave empty to collect the chart landing page."
          },
          "maxResults": {
            "title": "Max results per input",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum rows per input, from 1 to 200; the default is 70 and the form example uses 3. The run cost cap applies across inputs, and the Free Apify plan is limited to 200 rows per run and 10 runs of this Actor.",
            "default": 70
          },
          "cursor": {
            "title": "Continue from cursor",
            "type": "string",
            "description": "Continue a run that stopped at its time limit or was aborted gracefully: paste RUN_SUMMARY.nextCursor from that run and keep the rest of the input the same. A cursor works once and is valid for 6 hours. Usually leave empty."
          },
          "enrichDetails": {
            "title": "Add app details",
            "type": "boolean",
            "description": "Add available app detail fields, including developer website, support and privacy links. Enabled by default; enrichLimit limits how many app rows receive additional details.",
            "default": true
          },
          "enrichItunes": {
            "title": "Add catalog details",
            "type": "boolean",
            "description": "Add available catalog identity and seller fields to app rows. Enabled by default; unavailable values remain absent.",
            "default": true
          },
          "enrichLimit": {
            "title": "Additional-detail limit",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum app rows considered for additional details, from 0 to 50 and no more than maxResults. A value of 0 uses the smaller of maxResults and 8.",
            "default": 0
          },
          "language": {
            "title": "Language (?l=)",
            "type": "string",
            "description": "Optional page-language code for supported App Store pages. This does not translate your search term or guarantee the language of returned text."
          },
          "proxyCountry": {
            "title": "Connection country",
            "type": "string",
            "description": "Leave at US. Use country to select the App Store storefront; you do not need to set up proxies.",
            "default": "US"
          },
          "fields": {
            "title": "Output field selection (not available)",
            "type": "array",
            "description": "Leave empty. This Actor version does not apply output field selection; the selected mode determines the returned fields.",
            "items": {
              "type": "string"
            }
          },
          "workerBaseUrl": {
            "title": "Developer testing",
            "type": "string",
            "description": "Leave empty. Used only by the developer for testing."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}