---
title: "Returns every public print's id with its last-modified time, for the sitemap's lastmod."
method: GET
path: "/api/Prints/public/sitemap"
tags: ["Prints"]
---

# Returns every public print's id with its last-modified time, for the sitemap's lastmod.

`GET /api/Prints/public/sitemap`

## Request

- Base URL: `https://api.3dprintlog.com`
- URL: `https://api.3dprintlog.com/api/Prints/public/sitemap`
- Auth: one of:
  - none
  - OAuth 2 (authorization code, authorization URL `https://3dprintlog.auth0.com/authorize`, token URL `https://3dprintlog.auth0.com/oauth/token`)
  - API key in header `X-Api-Key`
  - API key in query parameter `api_key`

A sibling of `GET public` rather than a change to it, so a sitemap generator that still
expects a bare id array keeps working. `lastModified` is the print's own last save
(UTC) and is null when no trustworthy timestamp exists.

## Response `200`

The public prints, ordered by id.

- PrintLogApiModelsDTOsSitemapSitemapEntryDto[]
  - `id` integer: The id the page URL is built from.
  - `lastModified` string, date-time, nullable: The last time the row was saved, in UTC. Null when no trustworthy timestamp exists, so the sitemap omits `lastmod` rather than publishing an invented date.

---

[API](https://skmtc.dev/3dprintlog/apis/3d-print-log-api.md) · [All operations](https://skmtc.dev/3dprintlog/apis/3d-print-log-api/llms.txt) · [OpenAPI document](https://skmtc.dev/3dprintlog/apis/3d-print-log-api/revisions/dfc3a4df4e38?raw)
