> **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>
- **Markdown (.mdx) URL:** <https://www.socialfetch.dev/platforms/hugging-face/repos-repotype-owner-name-discussions.mdx>

---

# Hugging Face Discussions API

Discussions and pull requests with status, reactions, comment counts and authors, filtered the way you need them.

`GET /v1/hugging-face/repos/{repoType}/{owner}/{name}/discussions` returns `repo`, `discussionsEnabled`, `totalCount`, `closedCount` and a page of `discussions`. Filter with `status` (`all`, `open`, `closed`), `type` (`all`, `discussion`, `pull_request`), `sort` (`recently-created`, `trending`, `reactions`), `author` or a title `query`.

Each discussion has `number`, `url`, `title`, `status`, `isPullRequest`, `pinned`, `createdAt`, `commentCount`, `reactionUserCount`, `topReactions` and `author`. Pages hold 50 entries and use a 1-based `page`. `closedCount` is sent on the first page only.

## Request

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

## FAQ

### How do I list only pull requests?

Set type=pull_request. Use type=discussion for plain threads, or leave it out for both.

### Why is closedCount null on later pages?

The platform sends the closed count on the first page only. Read it from page 1 and reuse it.

### What does discussionsEnabled=false mean?

The repository has discussions switched off. The list is empty and totalCount is 0.

### How much does a discussion page 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. Each paginated page is a separate billed request.
