---
title: "Read a page as Markdown"
method: GET
path: "/api/v1/page"
tags: ["content"]
---

# Read a page as Markdown

`GET /api/v1/page`

## Request

- Base URL: `https://justidea.agency`
- URL: `https://justidea.agency/api/v1/page`
- Auth: one of:
  - none
  - OAuth 2 (authorization code, authorization URL `https://justidea.agency/oauth/authorize/`, token URL `https://justidea.agency/oauth/token/`, scopes: `site:read`)

The content of one public page as clean Markdown (no navigation, scripts or forms). Accepts a full URL, a path or the .md address of the page.

## Query parameters

- `url` string, required

## Response `200`

Page content.

- PageContent
  - `url` string, uri, required
  - `markdownUrl` string, uri, required
  - `title` string
  - `lang` 'pl' | 'en'
  - `type` 'services_index' | 'service_area' | 'service' | 'city_page' | 'pricing' | 'case_studies' | 'event' | 'blog' | 'company'
  - `markdown` string, required: Page content as Markdown.
  - `truncated` boolean, required: True when the page was longer than 80000 characters and was cut.

## Other responses

- `400`: A parameter or the request body is invalid (code invalid-parameter or invalid-body).
- `401`: The bearer token is invalid or expired (code invalid-token). Call without a token or get a new one.
- `404`: No such public page or endpoint (code not-found).
- `429`: Rate limit exceeded (code rate-limited). Wait Retry-After seconds.
- `500`: Unexpected error (code internal-error). Retry later.
- `503`: Site data is temporarily unavailable (code unavailable). Wait Retry-After seconds.

---

[API](https://skmtc.dev/justidea/apis/justidea-agency-public-api.md) · [All operations](https://skmtc.dev/justidea/apis/justidea-agency-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/justidea/apis/justidea-agency-public-api/revisions/83c8195ed800?raw)
