Back to KB
Difficulty
Intermediate
Read Time
4 min

Returns limit: 20 in the response body

By Codcompass Team··4 min read

Overview

The /api/local-only/run-history endpoint provides a lightweight, query-driven interface for retrieving recent crawler execution records. Designed primarily for local development, debugging, and administrative monitoring, this route returns a bounded list of past crawler runs without requiring authentication. Because it operates exclusively within local or development environments, access is gated by an environment-level configuration flag rather than traditional API keys or session tokens.

Developers and QA engineers typically call this endpoint when verifying that automated crawling tasks have executed successfully, inspecting run timestamps, or diagnosing intermittent failures in local test environments. The endpoint is optimized for low-latency retrieval and integrates seamlessly with dashboard UIs, CLI tools, and automated test suites that require historical execution data.

Endpoint Reference

PropertyValue
Full Path/api/local-only/run-history
HTTP MethodGET
AuthenticationPublic (No Auth)
Environment GateLocal Crawler UI must be enabled
Caching Behaviorforce-dynamic (Next.js)
Base URLhttps://<your-domain>/api/local-only/run-history

The route is marked with dynamic = 'force-dynamic', which instructs the Next.js runtime to bypass static generation and route caching. This ensures that every request fetches the most recent execution data directly from the underlying storage layer, making it suitable for real-time monitoring but unsuitable for high-frequency polling in production workloads.

Request Format

This endpoint accepts only query parameters. No request body or special headers are required.

Query Parameters

| Parameter | Type | Required | Default | Allowed Values | Description | |---|---|---

🎉 Mid-Year Sale — Unlock Full Article

Base plan from just $4.99/mo or $49/yr

Sign in to read the full article and unlock all 635+ tutorials.

Sign In / Register — Start Free Trial

7-day free trial · Cancel anytime · 30-day money-back

Sources

  • api-reference