DEV Community

Alex Spinov
Alex Spinov

Posted on

Scalar Has a Free API That Most Developers Dont Know About

Scalar generates beautiful interactive API docs from OpenAPI specs. Replaces Swagger UI.

Express

import { apiReference } from "@scalar/express-api-reference";
app.use("/docs", apiReference({ spec: { url: "/openapi.json" }, theme: "purple" }));
Enter fullscreen mode Exit fullscreen mode

Next.js

import { ApiReference } from "@scalar/nextjs-api-reference";
export default function Docs() {
  return <ApiReference spec={{ url: "/api/openapi" }} />;
}
Enter fullscreen mode Exit fullscreen mode

Key Features

  • Interactive API docs
  • Built-in API client
  • Multiple themes
  • Framework integrations

Need to scrape or monitor web data at scale? Check out my web scraping actors on Apify or email spinov001@gmail.com for custom solutions.

Top comments (0)