---
title: "Get a single post by id or by blogPath + postPath"
method: GET
path: "/blog/post"
---

# Get a single post by id or by blogPath + postPath

`GET /blog/post`

## Request

- Base URL: `https://api.vakantio.de`
- URL: `https://api.vakantio.de/blog/post`
- Auth: one of:
  - none
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://api.vakantio.de/authorize`, token URL `https://api.vakantio.de/token`, scopes: `vakantio:full`)

Public for published posts; drafts require auth (`draft=true`).

## Query parameters

- `_id` string
- `blogPath` string
- `postPath` string
- `draft` boolean
- `locale` string

## Response `200`

The post (full content, media, comments)

- PostSummary
  - `_id` string
  - `title` string
  - `preview` string
  - `tags` string[]
  - `topics` string[]
  - `path` string: URL slug (assigned at first publish)
  - `fullPath` string: Public URL path: /<blogPath>/<slug>
  - `blogName` string
  - `likeCount` number
  - `commentCount` number
  - `datePublished` number: Unix ms
  - `dateTraveled` number: Unix ms

## Other responses

- `4XX`: Client error — JSON body with a stable `error` code (e.g. not_found, not_authenticated, request_failed) and an optional `hint`.
- `5XX`: Server error — JSON body with `error: "server_error"`.

---

[API](https://skmtc.dev/vakantio/apis/vakantio-api.md) · [All operations](https://skmtc.dev/vakantio/apis/vakantio-api/llms.txt) · [OpenAPI document](https://skmtc.dev/vakantio/apis/vakantio-api/revisions/2e1306807326?raw)
