Projects API

Read-only access to the published projects shown on the landing page.

Endpoint

GET
https://eggisatria.dev/api/v1/projects

Query parameters

NameTypeDefaultDescription
featured"true" | "false"Only return projects marked as featured.
limit1..10050Maximum number of projects to return.

Example request

Terminal
curl https://eggisatria.dev/api/v1/projects?featured=true \
  -H "x-api-key: exstr_live_..."

Example response

JSON
{
  "success": true,
  "data": {
    "count": 2,
    "projects": [
      {
        "id": "ckxxx...",
        "slug": "ecommerce-dashboard",
        "title": "E-Commerce Dashboard",
        "description": "A comprehensive dashboard...",
        "imageUrl": "/projects/dashboard.png",
        "liveUrl": "https://dashboard-demo.eggisatria.dev",
        "githubUrl": "https://github.com/EgiStr/dashboard",
        "featured": true,
        "status": "PUBLISHED",
        "clicks": 42,
        "tech": ["Next.js", "TailwindCSS", "Prisma", "PostgreSQL"],
        "author": "Eggi Satria",
        "createdAt": "2024-01-15T10:30:00.000Z",
        "updatedAt": "2024-02-01T12:00:00.000Z"
      }
    ]
  },
  "error": null
}

Notes

  • Only PUBLISHED projects are returned.
  • Results are sorted by featured DESC, displayOrder ASC, then createdAt DESC.
  • The tech array is derived from the project's tech stack entries.