# prelaunchapi (`whispery_artemisia/prelaunchapi`) Actor

- **URL**: https://apify.com/whispery_artemisia/prelaunchapi.md
- **Developed by:** [Sid](https://apify.com/whispery_artemisia) (community)
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $30.00 / 1,000 quick scans

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Prelaunch: Launch-Readiness Scan

Find the things that should block a launch before your users (or attackers) do. Give this Actor one or more public website URLs and get back a grade, a launch-ready yes/no, and every finding with a one-line fix.

It runs the same checks as [Prelaunch](https://github.com/sagacioussid02/prelaunch), built for Vercel and Next.js apps but useful on any public site.

### What it checks

**Quick scan** (seconds, no browser):

- **Exposed environment files:** `/.env`, `/.env.local`, `/.env.production` readable by anyone.
- **Public source maps:** `.map` files that ship your original source code.
- **Security headers:** Content-Security-Policy, HSTS, X-Frame-Options, nosniff, Referrer-Policy, Permissions-Policy, and plain-HTTP serving.

**Full scan** (usually under a minute, real headless browser): everything in the quick scan, plus

- error-page verbosity and a custom 404 page
- SEO basics (title, description, Open Graph, canonical)
- page load, mobile layout, accessibility, performance and broken-link checks in a real browser
- read-only user-journey checks
- a launch-traffic forecast for your hosting
- desktop, tablet and mobile screenshots

Every check is passive: read-only requests, no logins, no form submissions, nothing that changes the site. Private, local and internal addresses are refused.

### How much it costs

You pay per finished scan, nothing else:

| Event | Price |
| --- | --- |
| `quick-scan` | $0.02 per site |
| `full-scan` | $0.08 per site |

URLs that are invalid, private or don't respond are reported in the results and **not charged**. Set a maximum cost on the run and the Actor stops starting new scans once the next one wouldn't fit.

### Input

```json
{
  "urls": ["https://your-app.vercel.app", "https://staging.example.com"],
  "scanType": "quick"
}
```

| Field | What it does |
| --- | --- |
| `urls` | Sites to scan, up to 100 per run. Duplicates are scanned once. |
| `scanType` | `quick` (default) or `full`. |
| `includeScreenshots` | Full scans: save screenshots to the run's key-value store (default on). |
| `maxConcurrency` | Sites scanned at once: up to 10 for quick (default 5), up to 2 for full (default 1). |

### Output

One dataset item per URL:

```json
{
  "inputUrl": "your-app.vercel.app",
  "url": "https://your-app.vercel.app",
  "scanType": "quick",
  "status": "done",
  "grade": "C",
  "score": 75,
  "ready": false,
  "blockers": 1,
  "warnings": 2,
  "info": 0,
  "checks": [
    { "id": "exposed-env", "name": "Exposed .env files", "outcome": "issues", "findings": 1 }
  ],
  "findings": [
    {
      "checkId": "exposed-env",
      "severity": "blocker",
      "title": "/.env is publicly reachable and looks like an env file",
      "location": "https://your-app.vercel.app/.env",
      "fix": "Block dotfiles at the edge (Vercel rewrites/headers) and rotate every key inside."
    }
  ],
  "checkedAt": "2026-11-16T05:00:00.000Z",
  "durationMs": 2140
}
```

- `ready` is `true` only when there are no blockers and every check ran.
- `grade` runs A+ to F: the score starts at 100 and loses 15 per blocker, 5 per warning and 1 per info finding.
- A URL that couldn't be scanned gets `"status": "error"` and an `error` message instead.
- The run's `OUTPUT` record sums it up: how many were scanned, ready, not ready, errored or skipped.

### Use it from CI or an AI agent

Run it synchronously and fail the build when a site isn't ready:

```bash
curl -s -X POST \
  "https://api.apify.com/v2/acts/<username>~prelaunchapi/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls":["https://your-app.vercel.app"]}' \
  | jq -e 'all(.[]; .ready)'
```

AI agents can call it through the [Apify MCP server](https://mcp.apify.com) like any other Actor: give it a URL and read back `ready`, `blockers` and `findings`.

### Limits and notes

- Up to 100 URLs per run. Only public `http` and `https` sites.
- A scan looks at the site's homepage and well-known paths; it doesn't crawl or log in.
- Sites behind Vercel Deployment Protection or a login wall answer with a sign-in page, so most checks can't see the real app.
- Full scans need a browser, so give the run at least 2 GB of memory (the default).

# Actor input Schema

## `urls` (type: `array`):

Public sites to scan, for example https://your-app.vercel.app. Up to 100 per run. Duplicates are scanned once.

## `scanType` (type: `string`):

Quick: exposed .env files, public source maps and security headers, in seconds. Full: every check in an anonymous Prelaunch scan, including headless-browser load, mobile, accessibility, performance, link and journey checks, SEO basics and a launch-traffic forecast.

## `includeScreenshots` (type: `boolean`):

Full scans only: store desktop, tablet and mobile screenshots in the run's key-value store and link them from each result.

## `maxConcurrency` (type: `integer`):

How many sites to scan at once. Quick: up to 10 (default 5). Full: up to 2 (default 1), because each full scan drives a browser.

## Actor input object example

```json
{
  "urls": [
    "https://example.com"
  ],
  "scanType": "quick",
  "includeScreenshots": true
}
```

# Actor output Schema

## `results` (type: `string`):

One item per URL: grade, score, launch-ready flag, blocker/warning/info counts, per-check outcomes and every finding with its fix. URLs that couldn't be scanned have status "error".

## `summary` (type: `string`):

How many sites were scanned, launch-ready, not ready, errored, or skipped at the spending limit.

## `files` (type: `string`):

Desktop, tablet and mobile screenshots saved by full scans.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://example.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("whispery_artemisia/prelaunchapi").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "urls": ["https://example.com"] }

# Run the Actor and wait for it to finish
run = client.actor("whispery_artemisia/prelaunchapi").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://example.com"
  ]
}' |
apify call whispery_artemisia/prelaunchapi --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,whispery_artemisia/prelaunchapi"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/e8RtfFp8ikl2UMfae/builds/r9niDgb6NGu0g6vzC/openapi.json
