> For the complete Lynkow documentation index in agent-friendly format, see [llms.txt](/llms.txt).

# Render sitemap.xml

**Published**: 2026-11-30
**Category**: SEO & LLMs

## `GET /sitemap.xml`

**Render sitemap.xml**

Returns the site's sitemap as XML. It lists the manual sitemap
entries, then each type the SEO settings turn on: article categories,
articles, pages, products, product categories and collections. Items
marked noindex are left out. On a multi-language site, each URL
carries its hreflang alternates and an `x-default`.

When the URLs fit in one file (50,000 URLs and 50 MB) and no
external sitemap source is enabled, the response is a `<urlset>`.
Otherwise it is a `<sitemapindex>` of `/sitemap-content.xml` or the
`/sitemap-{n}.xml` parts, then the external sources. Serve those
files on your domain.

Changes appear within 5 minutes.

### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `402` | The site subscription does not currently permit this operation |


> **Notes:** Content type: `application/xml`. Cache:
> `Cache-Control: no-cache, no-store, must-revalidate`. The sitemap is
> never edge-cached. Rate-limit bucket: general.

### SDK

```typescript
import { createClient } from 'lynkow'

const lynkow = createClient({ siteId: process.env.LYNKOW_SITE_ID! })

// In a Next.js route handler (app/sitemap.xml/route.ts)
export async function GET() {
  const xml = await lynkow.seo.sitemap()
  return new Response(xml, {
    headers: { 'Content-Type': 'application/xml' }
  })
}
```

### Examples

```curl
curl "https://api.lynkow.com/storefront/{siteId}/sitemap.xml"
```

### Response Example

```
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://docs.acme.io/</loc>
    <lastmod>2026-05-12</lastmod>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
  </url>
  <url>
    <loc>https://docs.acme.io/pricing</loc>
    <lastmod>2026-05-10</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
  </url>
</urlset>
```

---