# japanlive.info — Markdown for Agents

Every public page on `japanlive.info` is available as markdown. Send the
`Accept: text/markdown` header and the server will return a markdown
representation with YAML frontmatter instead of HTML.

## Requesting

Either send the Accept header:

```
GET https://www.japanlive.info/blog/japan-real-estate-tax-guide
Accept: text/markdown
```

Or call the direct endpoint:

```
GET https://www.japanlive.info/api/md/blog/japan-real-estate-tax-guide
```

## Response headers

- `Content-Type: text/markdown; charset=utf-8`
- `x-markdown-tokens: <integer>` — estimated token count of the response body
- `Content-Signal: ai-train=yes, search=yes, ai-input=yes` — AI usage permissions
- `Vary: Accept` — HTML is returned when this header is absent

## What's covered

- Homepage: `/` (zh-TW) and `/ja` (ja) — company info, services, tools list,
  key tax rates, FAQ, latest articles
- Blog: `/blog`, `/blog/category/{cat}`, `/blog/{slug}` — 90+ articles on
  Japanese real estate, tax, landlord practice, visa/residency
- News: `/news`, `/news/{slug}` — daily Japanese real estate news (zh-TW
  translations)
- Static: `/about`, `/contact`, `/tools`, `/services/property-management`,
  `/services/tax-agent` (each also under `/ja/`)

## Frontmatter fields

```yaml
---
title: string
url: string
locale: "zh-TW" | "ja"
publishedAt: string    # blog/news only
slug: string           # blog only
category: string       # blog only
tags: string           # blog only, comma-separated
author: string         # blog only
description: string    # blog only, from metaDescription
source: string         # news only
originalUrl: string    # news only
---
```

## Caching

Edge-cached for 5 minutes (`Cache-Control: public, s-maxage=300,
stale-while-revalidate=600`). Safe to fetch repeatedly.

## Citation-ready facts

For the most quotable tax numbers, fetch `/llms.txt` or `/llms-full.txt`
instead — those contain hand-curated citable data blocks.
