---
title: "Changes to Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir."
method: GET
path: "/repos/{owner}/{repo}/contents/{filepath}"
---

# Changes to Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir.

`GET /repos/{owner}/{repo}/contents/{filepath}`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 1 of 12 revisions.

- **2026-10-28** `7ef50c4c527f`: 1 info

## Changes

- **2026-10-28** `7ef50c4c527f`: 1 info
  - removed the non-success response with the status `404`

---

[Operation](https://skmtc.dev/gitea/apis/gitea-api/docs/repos/:owner/:repo/contents/:filepath/get.md) - [API](https://skmtc.dev/gitea/apis/gitea-api.md) - [Page](https://skmtc.dev/gitea/apis/gitea-api/changes/repos/:owner/:repo/contents/:filepath/get)
