Back to KB
Difficulty
Intermediate
Read Time
4 min

GET /api/admin/articles

By Codcompass Team¡¡4 min read

GET /api/admin/articles

Overview

The GET /api/admin/articles endpoint provides a public, unauthenticated interface for retrieving a list of articles from the codcompass knowledge base. Designed for developers building dashboards, content aggregators, or frontend search interfaces, this endpoint returns article metadata, content references, and associated quality metrics in a single request.

Unlike typical administrative routes that require bearer tokens or session validation, this endpoint is explicitly configured for public access. It leverages Supabase’s query builder to fetch records from the Article table, automatically including the qualityDetails payload. Results are sorted by creation date in descending order, ensuring the most recent content appears first. The endpoint supports optional filtering by article status and allows clients to control the maximum number of returned records via a configurable limit.

This endpoint is ideal for scenarios where you need to synchronize local caches, populate content feeds, or generate static site maps without exposing sensitive administrative operations. It serves as a lightweight data source for read-only integrations and public-facing content directories.

Endpoint Reference

PropertyValue
Base URLhttps://codcompass.com
Path/api/admin/articles
HTTP MethodGET
AuthenticationNone (Public)
Content-Typeapplication/json
Rate LimitingSubject to platform defaults (not enforced at the route level)

Request Format

This endpoint does not require a request body. All configuration is handled through URL query parameters.

🎉 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