noel-sason › tools › api.md Plain view Résumé

<!-- tools · json api -->

JSON API

Everything on this site about me is also available as JSON. It is read-only, needs no key, and allows requests from any origin, so you can fetch it straight from a browser.

Endpoints

GET /api/v1/index.json A list of every endpoint.
GET /api/v1/profile.json Name, bio, contact links, education and interests.
GET /api/v1/work.json Projects I am building, research, papers, and smaller things.
GET /api/v1/experience.json Roles, newest first, with machine-readable start/end dates.
GET /api/v1/writing.json Published posts, newest first.
GET /api/v1/all.json Everything above in one response.

Example

const res = await fetch('https://noelsason.com/api/v1/profile.json');
const me = await res.json();
console.log(me.headline);

Responses are regenerated whenever the site deploys and are cached at the edge for an hour. /api/v1 will not change shape; a breaking change would ship as a new version.