---
title: "Harlaksh Singh API and developer docs | Harlaksh Singh"
description: "API documentation for harlakshsingh.com: a public, read-only JSON API for the latest posts and live activity, current Bombay weather, and Markdown for any page. No keys, no sign-up."
canonical: https://www.harlakshsingh.com/developers/
last-updated: 2026-11-18
---

# Harlaksh Singh API

API documentation for this site. Public and read-only: no keys, no sign-up, anything you can fetch you can use.

## Endpoints

GET`/api/v1/posts`

The latest posts: slug, title, date, category and excerpt. Add `?limit=1` to `20` for more than the default four. Use this path for integrations.

GET`/api/posts`

Unversioned alias that always serves the current version.

GET`/api/activity`

The live activity feed: anonymous city-level visits, appreciations, GitHub events and posts, plus today's totals and map points. Cached for 15 seconds.

GET`/api/bombay`

Current weather in Bombay from Open-Meteo (CC BY 4.0), cached for 15 minutes.

GET`/api/subscribe`

The letters list. GET returns how many confirmed readers are on it; POST with an email signs it up and Kit emails a confirmation link (rate-limited, humans only).

Errors come back as JSON with a `code` and `message`. Unknown `/api/*` paths return a JSON 404, not an HTML page.

## Versioning and deprecation

Versions live in the path. Breaking changes get a new version and the old one keeps working for at least six months. A retired version answers with `Deprecation` (the date it was announced) and `Sunset` (the date it stops working) response headers, and a `Link` header pointing at its replacement. New fields don't create a version, so ignore fields you don't recognise.

## Rate limits

Please stay under 60 requests a minute. Responses include `RateLimit-Limit`, `RateLimit-Policy` and `RateLimit-Reset`. Nothing is enforced today; if that changes, `429` responses will carry `Retry-After`.

## Markdown and caching

Any page returns Markdown from the same URL when you send `Accept: text/markdown`. Responses carry `Vary: Accept`, so cache the two representations separately.

## Machine-readable files

-   [llms.txt](https://www.harlakshsingh.com/llms.txt) describes the site, when to use it and how to call it.
-   [openapi.json](https://www.harlakshsingh.com/openapi.json) is the OpenAPI 3.1 spec, with operation IDs and typed schemas.
-   [auth.md](https://www.harlakshsingh.com/auth.md) says what needs a key: nothing does, and there are no OAuth endpoints.
-   [/mcp](https://www.harlakshsingh.com/mcp) is a read-only MCP server with three tools. Its card is at [/.well-known/mcp.json](https://www.harlakshsingh.com/.well-known/mcp.json).
-   [/.well-known/api-catalog](https://www.harlakshsingh.com/.well-known/api-catalog) is an RFC 9727 linkset naming every file on this list.
-   [/.well-known/agent-skills/index.json](https://www.harlakshsingh.com/.well-known/agent-skills/index.json) lists the agent skill, which is a [SKILL.md](https://www.harlakshsingh.com/.well-known/agent-skills/harlakshsingh/SKILL.md).
-   [/.well-known/ai-catalog.json](https://www.harlakshsingh.com/.well-known/ai-catalog.json) is the Agentic Resource Discovery manifest.
-   [sitemap.xml](https://www.harlakshsingh.com/sitemap.xml) lists every page and [feed.xml](https://www.harlakshsingh.com/feed.xml) is the RSS feed.
-   [github.com/harlaksh](https://github.com/harlaksh) is where the code lives.

Responses also carry a `Link` header naming those files, so a client that only reads headers still finds them.

## Examples

```
# Latest posts as JSON
curl https://www.harlakshsingh.com/api/v1/posts

# Any page as Markdown
curl -H 'Accept: text/markdown' https://www.harlakshsingh.com/
```

Source: https://www.harlakshsingh.com/developers/
