Badryansah Bangsawan

Public API

Public portfolio endpoints for profile, projects, content, contact, and statistics.

API Overview

Use these endpoints to read public portfolio data from external sites, dashboards, experiments, or small integrations. Authentication is optional by default and becomes required only when the server is configured with PUBLIC_API_KEY.

Base URL

https://www.badryansahbangsawan.my.id

Format

JSON

Rate Limit

120 / 10 min
GET/api/portfolio?locale=en | ?locale=id

Full Portfolio

Returns all safe public sections in one response: home, profile, about, achievements, projects, contents, contact, and dashboard.

GET/api/home?locale=en | ?locale=id

Home

Returns localized introduction copy, location, resume summary, and active skills.

GET/api/profile?locale=en | ?locale=id

Profile

Returns public profile details, localized story paragraphs, active skills, social links, career entries, and education entries.

GET/api/about?locale=en | ?locale=id

About

Returns localized story blocks, career entries, and education entries.

GET/api/contents

Contents

Returns local MDX content files with front matter and compiled content.

GET/api/projects

Projects

Returns the public project collection used by the portfolio. The response stays array-compatible with the website.

GET/api/contact?locale=en | ?locale=id

Contact

Returns localized contact metadata and public social links.

GET/api/dashboard

Dashboard

Returns the same public data as stats for dashboard integrations.

GET/api/stats

Stats

Returns portfolio counts plus integration summaries for GitHub, Monkeytype, and Spotify when those services are available.