---
title: "Changes to Fetch a document by docid"
method: GET
path: "/{index}/doc/{docid}"
---

# Changes to Fetch a document by docid

`GET /{index}/doc/{docid}`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 3 of 3 revisions.

- **2026-07-17** `a95dfd318781` — 1 breaking, 4 info
- **2026-03-21** `a2b4397b7f05` — 1 info
- **2026-03-15** `70cb270260ea` — 1 breaking

## Changes

- **2026-07-17** `a95dfd318781` — 1 breaking, 4 info
  - removed the required property `document` from the response with the `200` status
  - added the new optional `query` request parameter `parse`
  - added the non-success response with the status `405`
  - added the non-success response with the status `500`
  - added the required property `doc` to the response with the `200` status
- **2026-03-21** `a2b4397b7f05` — 1 info
  - endpoint added
- **2026-03-15** `70cb270260ea` — 1 breaking
  - api path removed without deprecation

---

[Operation](https://skmtc.dev/castorini/apis/anserini-rest-api/docs/:index/doc/:docid/get.md) · [API](https://skmtc.dev/castorini/apis/anserini-rest-api.md) · [Page](https://skmtc.dev/castorini/apis/anserini-rest-api/changes/:index/doc/:docid/get)
