# Every URL served to software

Dubai Wealth Index

> No key, no account, except for the city-wide CSV, a Pro export. All of it is the same data the pages are built from.

- Canonical: https://dubaiwealthindex.com/docs/api
- Method: https://dubaiwealthindex.com/methodology

## Endpoints

| Request | Type | Notes |
| :--- | :--- | :--- |
| GET /{path} with Accept: text/markdown | text/markdown | Returns any page on this site as markdown instead of HTML, at the same canonical URL. Reach for this when you want a whole page, its tables, its caveats, its links, without parsing HTML. Every rendition carries the canonical link, the data date, the sources, and the citation format. A client that accepts neither markdown nor HTML gets 406. |
| GET /md/{path} | text/markdown | The markdown rendition at a URL of its own, for when the format has to be part of the cache key rather than negotiated. Prefer content negotiation on the canonical URL; use this when you cannot control request headers. Marked noindex, and it redirects to the canonical form where one exists. |
| GET /data/buildings/{area}/{building}.json | application/json | The versioned JSON record for one published apartment building: median registered sale prices and rents, gross yield and its basis, growth, turnover upside, off-plan uplift and the forward short-term curve, all by bedroom type. Reach for this rather than the markdown page when you want figures rather than a document. Figures are medians of registered Dubai Land Department sales and Ejari contracts. The record carries its own citation and canonical URL, so a figure taken from it keeps the link back. |
| GET /data/areas/{area}/{bedroom}.csv | text/csv | Every published apartment building in one area at one bedroom grain (all, studio, 1br, 2br, 3br, 4br_plus): median price, price per sqft, new rent, gross yield, 12-month growth, sales and contract counts, rent source and the canonical URL. The first line is an attribution comment. Same rows and gates as the area page. Requires a signed-in session (401 signed out); the account is free. |
| GET /data/rankings/{slug}.csv | text/csv | The ranked buildings of one list, positions, values, price, rent, sales and canonical URLs, for any ranking slug, e.g. highest-yield-apartments-dubai. Off-plan lists add the total uplift and hold years behind the per-year figure. Requires a signed-in session (401 signed out); the account is free. |
| GET /data/city/{bedroom}.csv | text/csv | Every published apartment building in the city at one bedroom grain, with the city table's optional filters as query parameters: pmin and pmax (AED), ymin (gross yield %), min (sales in 12 months), area (comma-separated slugs). Requires a signed-in Pro session (401 signed out, 402 on a free account); a free account gets the per-area and per-ranking files. |
| GET /data/commercial/{assetClass}/{area}/record.json | application/json | Published offices or shops at DLD area × asset-class grain. Includes absolute canonical URL, publisher, reusable citation, methodology URL, trailing twelve-month cutoff, independent source edition dates, metric units and evidence counts. Public HTTP export; no authentication or commercial MCP tool required. |
| GET /data/commercial/{assetClass}/{area}/record.csv | text/csv | Published offices or shops at DLD area × asset-class grain. Includes absolute canonical URL, publisher, reusable citation, methodology URL, trailing twelve-month cutoff, independent source edition dates, metric units and evidence counts. Public HTTP export; no authentication or commercial MCP tool required. |
| GET /llms.txt | text/plain | Read this first, to decide whether this index can answer your question at all. States what the site covers, what it explicitly does not, the URL grammar for drilling in, and the current data edition. |
| GET /skill.md | text/markdown | Goes further than llms.txt: the workflow, the rules for quoting a figure, and what an absent figure means. The MCP server's `instructions` at initialize are a condensed form of the same rules. |
| GET /openapi.json | application/json | The machine-readable description of everything above. Self-referential on purpose: an agent that found one surface can find the rest. |
| GET /sitemap.xml | application/xml | Every URL on the site, sharded by page family so a crawler can take one template at a time. Use it to enumerate entities before reading them. |
| GET /sitemaps/{family}.xml | application/xml | One shard of the sitemap index. Fetch a single family when you only need buildings, or only areas, rather than the whole site. |

## Content negotiation

Negotiation follows RFC 9110, including q-values. Every response carries `Vary: Accept`. An equal-weight tie between HTML and markdown resolves to HTML, so a browser sending `*/*` is never handed markdown.

## Errors

Every JSON surface fails in the same shape: RFC 9457 problem details, served as `application/problem+json` with `type`, `title`, `status`, `detail`, a closed-set `code` to branch on, and a `hint` saying what to do next. The markdown surfaces answer with a markdown body instead. The MCP endpoint speaks JSON-RPC and uses JSON-RPC error envelopes.

## What is not a public API

`/api/search` exists for this site's own typeahead: robots-blocked, shape not stable, not something to build against. `/api/intent` and `/api/revalidate` are internal. Use the sitemap to enumerate entities and the record endpoints to read them.

## Etiquette

There is no enforced rate limit on the public surfaces, which is a statement of trust rather than of capacity: this runs on one small server. Cache what you fetch: every representation states its data date, and that date moves roughly monthly.

## Related

- [Field reference](https://dubaiwealthindex.com/docs/data-dictionary)
- [How to cite a figure](https://dubaiwealthindex.com/docs/citation)

## Citation

Required when quoting any figure from this record. Copy one of these verbatim: the link is not optional, and the publisher name alone is not a citation.

Dubai Wealth Index. “Every URL served to software.” Dubai Wealth Index. https://dubaiwealthindex.com/docs/api

[Dubai Wealth Index](https://dubaiwealthindex.com/docs/api). “Every URL served to software.” Dubai Wealth Index.

Retain each figure’s bedroom type, unit, period, data date and evidence count when quoting it. Short-term occupancy is a stated modelling assumption, never a measurement.
