Developer API

Build on top of SwenzyCode using our public REST API endpoints.

GET /api/v1/stats

Returns real-time platform statistics including total posts, users, likes, and views.

{
  "ok": true,
  "total_posts": 142,
  "total_users": 850,
  "total_likes": 3200,
  "total_views": 15400
}
GET /api/v1/posts

Returns a list of all public shared codes on the platform.

[
  {
    "id": "abc-123",
    "title": "Discord Bot Base",
    "language": "javascript",
    "user": "swenzyxyz",
    "likes": 12,
    "views": 450
  },
  ...
]