{
  "openapi": "3.0.1",
  "info": {
    "title": "App Store Launch Detector — Country, Date & Category",
    "description": "Find recently released iOS apps by country, release date and category. Combine Apple feeds, charts and search; check Apple-reported release dates and retain first-seen history. Export deduplicated observations with source links. Bounded coverage.",
    "version": "0.1",
    "x-build-id": "O5vnlzxIu68Y787yR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/agency-shift~app-store-launch-detector/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-agency-shift-app-store-launch-detector",
        "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/agency-shift~app-store-launch-detector/runs": {
      "post": {
        "operationId": "runs-sync-agency-shift-app-store-launch-detector",
        "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/agency-shift~app-store-launch-detector/run-sync": {
      "post": {
        "operationId": "run-sync-agency-shift-app-store-launch-detector",
        "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": {
          "countries": {
            "title": "Countries / storefronts",
            "type": "array",
            "description": "Apple storefront codes, up to 5: us, gb, ie, de, fr, br, jp. A storefront is not proof of the local launch date.",
            "items": {
              "type": "string"
            },
            "default": [
              "us"
            ]
          },
          "daysBack": {
            "title": "Released within the last N days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Last N UTC calendar days including today. Used when no explicit releaseDateFrom is supplied.",
            "default": 30
          },
          "releaseDateFrom": {
            "title": "Release date from (optional)",
            "type": "string",
            "description": "Inclusive YYYY-MM-DD in UTC. Uses Apple original releaseDate, never the last update date. Overrides daysBack."
          },
          "releaseDateTo": {
            "title": "Release date through (optional)",
            "type": "string",
            "description": "Inclusive YYYY-MM-DD in UTC. Requires releaseDateFrom. Defaults to today. Future releases are excluded."
          },
          "categoryIds": {
            "title": "App category IDs (optional)",
            "type": "array",
            "description": "Match any supplied Apple genre ID against primary genre or genreIds. Examples: 6007 Productivity, 6000 Business, 6017 Education, 6014 Games, 6008 Photo & Video. Empty means all categories.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "keywords": {
            "title": "Additional keyword searches (optional)",
            "type": "array",
            "description": "Up to 8 Apple search terms. Search results are not chronological; launch-date/category filters are applied afterward.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "includeNewReleases": {
            "title": "Discover from Apple new-app feed",
            "type": "boolean",
            "description": "Use newapplications as candidates. Its name does not prove recency; original release dates are verified by Lookup.",
            "default": true
          },
          "includeCharts": {
            "title": "Include chart candidates",
            "type": "boolean",
            "description": "Add apps appearing in free/paid country charts. Chart appearance is not itself a launch.",
            "default": true
          },
          "chartTypes": {
            "title": "Chart types",
            "type": "array",
            "description": "Supported: topfreeapplications, toppaidapplications. Availability depends on Apple.",
            "items": {
              "type": "string"
            },
            "default": [
              "topfreeapplications"
            ]
          },
          "appIds": {
            "title": "Specific app IDs (optional)",
            "type": "array",
            "description": "Also verify supplied numeric Apple app IDs in each selected country. Useful for a watchlist.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Reuse the same name and filters to retain history. Use a different name when changing countries, keywords, date rules or categories.",
            "default": "default"
          },
          "outputMode": {
            "title": "Output selection",
            "enum": [
              "new",
              "all"
            ],
            "type": "string",
            "description": "New returns qualifying apps not previously delivered in this monitor. All returns all qualifying observations again.",
            "default": "new"
          },
          "historyMode": {
            "title": "History",
            "enum": [
              "monitor",
              "snapshot"
            ],
            "type": "string",
            "description": "Monitor keeps private per-user history. Snapshot performs a one-off search without reading or updating saved history.",
            "default": "monitor"
          },
          "perSourceLimit": {
            "title": "Candidates per source",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Local cap per feed/search. Apple can ignore its own requested feed limit. Bounded sources can miss matching apps.",
            "default": 100
          },
          "maxCandidates": {
            "title": "Maximum app-country candidates",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Total distinct app-country candidates across sources. Explicit app IDs are prioritized.",
            "default": 500
          },
          "maxResults": {
            "title": "Maximum delivered results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Matching rows delivered this run. In monitor mode eligible pending rows remain available to resume.",
            "default": 100
          },
          "maxRequests": {
            "title": "Maximum Apple HTTP requests",
            "minimum": 1,
            "maximum": 80,
            "type": "integer",
            "description": "Includes discovery and metadata verification. If verification cannot complete within this limit, the run fails without accepting a partial source collection.",
            "default": 40
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Timeout for each Apple request. Requests are paced; the collector has a 330-second total runtime limit.",
            "default": 25
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}