{
  "openapi": "3.0.1",
  "info": {
    "title": "Apple App Store Scraper: App Details, Prices & Top Charts",
    "description": "Extract iOS app metadata from Apple's public App Store search API: name, developer, price and currency per country, category, ratings, version, release dates, size, age rating, icon, plus Top Free / Top Paid chart ranks. Search, look up by id or bundle id, or pull charts. Pay per record.",
    "version": "0.1",
    "x-build-id": "gUlZGmBTmQ55d5TYz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hridayrungta~apple-app-store-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hridayrungta-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/hridayrungta~apple-app-store-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hridayrungta-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/hridayrungta~apple-app-store-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hridayrungta-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": [
              "search",
              "lookup",
              "charts"
            ],
            "type": "string",
            "description": "`search` runs each of **Search terms** against the App Store search API (up to 200 apps per term per country). `lookup` fetches exact apps by **App IDs** and/or **Bundle IDs** (200 per request). `charts` pulls the Top Free or Top Paid chart for each country and enriches every ranked app with full details.",
            "default": "search"
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Keywords to search, one per line (search mode). Each term costs one API call per country and returns up to **Limit** apps.",
            "items": {
              "type": "string"
            }
          },
          "appIds": {
            "title": "App IDs",
            "type": "array",
            "description": "Numeric App Store ids (lookup mode), one per line. `553834731`, `id553834731` and full URLs such as `https://apps.apple.com/us/app/candy-crush-saga/id553834731` are all accepted. Batched 200 per request.",
            "items": {
              "type": "string"
            }
          },
          "bundleIds": {
            "title": "Bundle IDs",
            "type": "array",
            "description": "Bundle identifiers (lookup mode), one per line, e.g. `com.midasplayer.apps.candycrushsaga`. Batched 200 per request; falls back to one-by-one lookups if Apple rejects the batch.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country (storefront)",
            "type": "string",
            "description": "ISO 3166-1 alpha-2 storefront code, e.g. `us`, `gb`, `de`, `jp`, `in`, `br`. Prices, currency, availability and ranks are per storefront. Ignored when **Countries** is filled in.",
            "default": "us"
          },
          "countries": {
            "title": "Countries (multi-storefront)",
            "type": "array",
            "description": "Run the same search / lookup / chart in several storefronts, one code per line (e.g. `us`, `gb`, `de`, `jp`). Each app is saved once per storefront with its local price and currency - ideal for price comparison. Leave empty to use **Country**.",
            "items": {
              "type": "string"
            }
          },
          "chartFeed": {
            "title": "Chart feed",
            "enum": [
              "top-free",
              "top-paid"
            ],
            "type": "string",
            "description": "Which chart to pull in charts mode.",
            "default": "top-free"
          },
          "chartGenreId": {
            "title": "Chart genre (category) id",
            "pattern": "^\\d*$",
            "type": "string",
            "description": "Optional App Store genre id to get a category chart instead of the overall chart (charts mode). Common ids: 6014 Games, 6000 Business, 6017 Education, 6016 Entertainment, 6015 Finance, 6023 Food & Drink, 6013 Health & Fitness, 6012 Lifestyle, 6020 Medical, 6011 Music, 6010 Navigation, 6009 News, 6021 Magazines & Newspapers, 6008 Photo & Video, 6007 Productivity, 6006 Reference, 6024 Shopping, 6005 Social Networking, 6004 Sports, 6003 Travel, 6002 Utilities, 6001 Weather, 6018 Books, 6027 Graphics & Design, 6026 Developer Tools; game sub-genres 7001-7019 (7012 Puzzle, 7017 Strategy, ...). Category charts come from Apple's legacy RSS feed."
          },
          "limit": {
            "title": "Results per term / chart size",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Search mode: apps per search term per country (max 200). Charts mode: chart length (max 200; above 100 or with a genre the legacy feed is used). Ignored in lookup mode.",
            "default": 50
          },
          "includeDescription": {
            "title": "Include description and release notes",
            "type": "boolean",
            "description": "Add the full App Store description and latest release notes to every record (no extra API calls; makes records much larger).",
            "default": false
          },
          "maxItems": {
            "title": "Max records",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many records have been saved. This is also your cost cap: you are billed once per saved record.",
            "default": 500
          },
          "requestsPerMinute": {
            "title": "Requests per minute",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Throttle for calls to Apple (1-60). Apple documents roughly 20 calls per minute per IP for the search API; 18 is a safe default without a proxy. Go higher only with a rotating proxy.",
            "default": 18
          },
          "lang": {
            "title": "Language",
            "type": "string",
            "description": "Optional result language override, e.g. `en_us` or `ja_jp`. By default Apple returns the storefront's language."
          },
          "maxRetries": {
            "title": "Max retries per request",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Retries with exponential backoff for network errors, 5xx, 403 and 429 responses before a request is given up.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Apple's feeds are public and work without a proxy at <= 18 requests/minute. Enable Apify Proxy (datacenter is enough) to rotate IPs on 403/429 and spread the per-IP limit.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}