---
title: "Github Tree"
method: GET
path: "/github/tree/{owner}/{repo}"
tags: ["Search"]
---

# Github Tree

`GET /github/tree/{owner}/{repo}`

Get the file tree of a GitHub repository or subdirectory.

## Path parameters

- `owner` string, required
- `repo` string, required

## Query parameters

- `ref` string — Branch, tag, or commit SHA
- `path` string, nullable — Subdirectory path

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/nozomio-labs/apis/nia-ai-api.md) · [All operations](https://skmtc.net/nozomio-labs/apis/nia-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nozomio-labs/nia-ai-api/versions/dbb602a3ef17/schema)
