StatikAPI Documentation

Build APIs from your data — without backend complexity.

StatikAPI helps you combine external APIs with your own content, shape outputs, and publish reliable structured endpoints. These docs cover the open source foundation, with guidance for local CLI workflows, Cloudflare deployment, and hosted platform usage.

StatikAPI App

Use the hosted visual workflow when you want managed publishing, private APIs, and automation.

Open StatikAPI App

The open source CLI stays free and self-hostable. StatikAPI App adds hosted workflows, visual editing, automations, analytics, and private API access.

Last updated: May 2026

Routes Overview

Routes are defined by files in src-api/ and map directly to URLs.

  • Static — plain files like index.js, about.js
  • Dynamicusers/[id].js parameterized by segments
  • Catch-alldocs/[...slug].js captures multiple segments
  • Remote — any route that fetches external data within data() at build time

Every route module must provide data via:

  • export default <object> or export async function data(ctx)

Dynamic/catch-all routes also provide:

  • export async function paths() to enumerate all concrete pages

Dynamic and catch-all routes can optionally emit a parent collection route with:

  • export const config = { listIndex: true }
  • or export const config = { listIndex: { enabled: true, pick: [...] } }

Get started

Ready to publish your first API?

Start locally with the CLI or use StatikAPI Cloud when you want managed publishing and automation.

Get Started View examples