---
search:
  tags:
    - Parts
    - GET
seo:
  description: >-
    Markdown for one section subtree, heading included. anchor is a LaTeXML id…
    Reference for the GET /{idv}/sections/{anchor}.md endpoint in the arXivv
    API.
sidebar:
  label: One section as Markdown
  badge: GET
title: One section as Markdown
type: openapi-operation
---
Markdown for one section subtree, heading included. `anchor` is a LaTeXML id (`S3.SS2`), a short alias (`S3.2`) or a slug (`introduction`).

`GET /{idv}/sections/{anchor}.md`

**Responses**

- `200` — OK
- `202` — Accepted (\`Prefer: respond-async\` or \`?async\`, tree not yet built). Poll \`Location\` (the requested URL).
- `400` — Invalid paper ID
- `404` — Paper, version or part not found
- `422` — arXiv has no HTML for this version
- `429` — Rate limit exceeded
- `500` — Tree build failed
- `502` — arXiv (or another upstream) returned an error

Response example, 200:

```json
"string"
```

Response example, 400:

```json
{
  "type": "https://arxivv.org/errors/invalid-id",
  "title": "Invalid paper ID",
  "status": 400,
  "detail": "Invalid paper ID",
  "instance": "/1706.03762v7.md",
  "code": "invalid-id"
}
```

Response example, 404:

```json
{
  "type": "https://arxivv.org/errors/not-found",
  "title": "Not found",
  "status": 404,
  "detail": "Paper, version or part not found",
  "instance": "/1706.03762v7.md",
  "code": "not-found"
}
```

Response example, 422:

```json
{
  "type": "https://arxivv.org/errors/no-html",
  "title": "arXiv has no HTML for this version",
  "status": 422,
  "detail": "arXiv has no HTML for this version",
  "instance": "/1706.03762v7.md",
  "code": "no-html"
}
```

Response example, 429:

```json
{
  "type": "https://arxivv.org/errors/rate-limited",
  "title": "Rate limit exceeded",
  "status": 429,
  "detail": "Rate limit exceeded",
  "instance": "/1706.03762v7.md",
  "code": "rate-limited"
}
```

Response example, 500:

```json
{
  "type": "https://arxivv.org/errors/build-failed",
  "title": "Tree build failed",
  "status": 500,
  "detail": "Tree build failed",
  "instance": "/1706.03762v7.md",
  "code": "build-failed"
}
```

Response example, 502:

```json
{
  "type": "https://arxivv.org/errors/upstream",
  "title": "Upstream error",
  "status": 502,
  "detail": "arXiv (or another upstream) returned an error",
  "instance": "/1706.03762v7.md",
  "code": "upstream"
}
```
