> **For coding agents and LLMs:** This is one Social Fetch marketing page (markdown export). For API orientation start with [`/llms.txt`](https://www.socialfetch.dev/llms.txt); for auth and crawl rules use [`/agents.txt`](https://www.socialfetch.dev/agents.txt); for every operation use [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt).

## This page

- **On-site (HTML):** <https://www.socialfetch.dev/platforms/hugging-face/repos-repotype-owner-name-discussions-number>
- **Markdown (.mdx) URL:** <https://www.socialfetch.dev/platforms/hugging-face/repos-repotype-owner-name-discussions-number.mdx>

---

# Hugging Face Discussion API

One discussion or pull request with its whole timeline, from the opening comment to the latest status change.

`GET /v1/hugging-face/repos/{repoType}/{owner}/{name}/discussions/{number}` returns `repo` and `discussion`. The discussion has `number`, `url`, `title`, `status`, `isPullRequest`, `pinned`, `createdAt`, `locked`, `isReport`, `author`, optional `pullRequest` details and the `events` timeline, oldest first.

Events carry `id`, `type`, `createdAt` and `author`. Comment events add `text`, `html`, `hidden`, `edited`, `editCount`, `isReport` and `reactions`; status and title changes add `newStatus` or `newTitle`; commit events add `commit.sha` and `commit.subject`. A missing number returns `lookupStatus: not_found`.

## Request

- **Endpoint:** `GET /v1/hugging-face/repos/{repoType}/{owner}/{name}/discussions/{number}`
- **Credits:** 1 credit
Failed requests are free
- **Input:** by repository and number
- **Full reference:** [docs](https://www.socialfetch.dev/docs/api/v1/hugging-face/repos/repotype/owner/name/discussions/number/get)
- **Platform page:** [/platforms/hugging-face](https://www.socialfetch.dev/platforms/hugging-face)

## FAQ

### What kinds of event are in the timeline?

Comments, status changes, commits, title changes and pinning changes. The type field names the kind and unknown kinds pass through as strings.

### Where are the pull request details?

Read discussion.pullRequest for baseRef, diffUrl and conflictingFiles. It is null for a plain discussion.

### What do hidden comments look like?

hidden is true and the text is absent, because a hidden comment has no readable body.

### How much does a discussion lookup cost?

Pricing is documented on the operation in the API registry (shown on this page). Confirm on every response with meta.creditsCharged: that field is the billing source of truth.
