---
title: "Get one documentation page"
description: "Returns the same fields as a list entry, plus a `markdown` field that contains the page body. The API converts components such as `Callout` and `Steps` to standard Markdown and makes site links absolute."
url: https://beacon-arodoni.vercel.app/api-reference/get-doc
---

# Get one documentation page

`GET /docs/{slug}.json`

Base URL: `https://example.com/api/v1`

Returns the same fields as a list entry, plus a `markdown` field that contains the page body. The API converts components such as `Callout` and `Steps` to standard Markdown and makes site links absolute.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| slug | string | Yes | The page's file name in `content/docs/` without the `.mdx` extension. The home page's slug is `introduction`. |

## Responses

### 200

The page's metadata and Markdown body

Content type: `application/json`

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| slug | string | Yes |  |
| title | string | Yes |  |
| description | string | Yes |  |
| url | string (uri) | Yes |  |
| markdownUrl | string (uri) | Yes |  |
| apiUrl | string (uri) | Yes |  |
| markdown | string | Yes |  |

```json
{
  "slug": "quickstart",
  "title": "Quickstart",
  "description": "Create a site and deploy it.",
  "url": "https://example.com/quickstart",
  "markdownUrl": "https://example.com/quickstart.md",
  "apiUrl": "https://example.com/api/v1/docs/quickstart.json",
  "markdown": "# Quickstart"
}
```

### 404

No page has this slug

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://example.com/api/v1/docs/quickstart.json'
```

### JavaScript

```javascript
const response = await fetch("https://example.com/api/v1/docs/quickstart.json", {
  method: "GET",
});

console.log(await response.json());
```

### Python

```python
import requests

response = requests.request(
    "GET",
    "https://example.com/api/v1/docs/quickstart.json",
)

print(response.json())
```
