Running and Monitoring Crawls
A crawl is a bounded job: it takes the website's discovered URLs, fetches them within the limits of your plan and the platform's safety controls, and produces observations that the rules turn into findings.
Before you start
- The website exists and the workspace has an active plan.
- Discovery has run, so the URL inventory is not empty.
- This website has crawl allowance left in the current billing period.
- No other crawl is queued or running for this website.
Discovery currently runs through seodiscover; a crawl start seeds its work from
the existing inventory and does not discover new URLs first. See
Workspace Setup and Adding a Website.
Starting a run
POST /api/v1/websites/<website-id>/crawls
{ "idempotency_key": "march-audit" }
idempotency_key is the only input. A retried request with the same key returns
the same run instead of creating a duplicate.
Crawl limits are calculated by PruneSEO when the run is admitted. You cannot
raise or lower them from the request; fields such as max_urls are not part of
the start API.
How crawl limits are set
The plan supplies the URL ceiling. PruneSEO applies the rest as a fixed platform safety envelope:
| Limit | Value |
|---|---|
| Unique URLs | The plan's per-crawl ceiling: 5,000 on Starter, 20,000 on Growth, 50,000 on Pro and Agency |
| HTTP requests | 5 per allowed URL |
| Downloaded bytes | About 1 MiB per allowed URL, capped at 50 GiB |
| Runtime | Up to 12 hours |
| Worker concurrency | 2 fetches in flight |
| Origin request interval | At least 500 ms between requests to one origin |
The run records the limits it was admitted with. That matters: a later plan change does not rewrite the limits of a crawl already in progress.
One active run per website
A website may have only one crawl in queued or running. A second start
returns 409:
crawl: a run is already active on this website (run <id>)
The response includes details.active_run_id, so the caller can follow the
existing run instead of retrying blindly.
Reading progress
GET /api/v1/crawls/<run-id>
The progress response contains:
- Lifecycle: status, creation time, start time, finish time, stop reason and any cancellation request.
- Configuration snapshot: the caps the run was admitted with. A later plan change does not rewrite them.
- Counters: pending, leased, succeeded, failed, retried, excluded by cap, requests and bytes downloaded.
Statuses
| Status | Meaning |
|---|---|
queued | Accepted, not yet executing |
running | At least one task has been claimed |
completed | All eligible work finished |
completed_with_errors | Finished, but some requests failed |
partial | A cap or deliberate stop prevented full completion |
failed | A fatal error prevented a useful report |
cancelled | A caller cancelled the run |
Stop reasons
scope_exhausted, url_cap_reached, runtime_cap_reached,
byte_cap_reached, request_cap_reached, user_cancelled, fatal_error.
An empty stop reason on a live run means it has not stopped yet.
completed_with_errors and partial are not interchangeable. The first means
the site misbehaved; the second means the crawl's own limits stopped it.
Cancelling
POST /api/v1/crawls/<run-id>/cancel
Cancellation writes a durable marker. Workers stop claiming new tasks, work already in flight finishes or fails, and the finalizer closes the run out.
- Cancelling a terminal run returns 409 "Crawl run already finished".
- Repeating a cancel while the run is live returns the first cancellation timestamp, not an error.
After the run
Findings are produced when the run finishes and is analysed. A live run has counters and coverage but no analysed findings.
GET /api/v1/crawls/<run-id>/report
GET /api/v1/crawls/<run-id>/findings
GET /api/v1/crawls/<run-id>/finding-groups
GET /api/v1/crawls/<run-id>/urls
A finished run can be re-analysed with the current ruleset:
POST /api/v1/crawls/<run-id>/analyze
Re-analysis replaces the run's findings and leaves its crawl status untouched. It is refused on a live run with 409 "Crawl run must finish before it can be analyzed".
Crawl allowances
Each plan includes four full crawls per website, per billing period on every tier. The allowance resets at the billing boundary and does not roll over.
The allowance is enforced when you start a crawl. PruneSEO checks the plan and the website's remaining allowance in the same transaction that creates the run. If the plan is missing or the allowance is used up, the start returns 409 and no run is created. The plan's URL ceiling is applied at the same point, so sending a larger URL limit cannot bypass it.
Usage shows the allowance, how many crawls have started in the current period,
and the reset date for a subscribed workspace. A retry with the same
idempotency_key returns the existing run and does not consume another crawl.
What the crawler respects
- robots.txt directives and sitemap declarations,
- the website's host and URL scheme,
- private-network and unsafe-target protections,
- per-origin request spacing and worker concurrency,
- bounded retries for transient failures,
- byte, request, URL and runtime budgets.
Common operational questions
Why did the run stop early? Read the stop reason. A cap reached is not a failure; it is the plan or platform limit that applied to the run.
Why are pages missing? Check coverage. They may have been out of scope, excluded by robots, refused by the safety guard, or discovered during the run rather than scheduled for it.
Why is the run still queued? No worker has claimed work yet. The queue is shared, and the one-active-run rule still applies.
Can I start a second run to go faster? No. One active run per website is a structural rule, not a default.
Next: Triage and Pattern Analysis.