{"data":{"billing":{"currency":"USD","mode":"rules","parameters":[],"policy_version":2,"sale":{"addons":[],"base_price_micro_usd":"0","max_cost_micro_usd":"2000","quantities":[{"id":"upstream_credits","label":"Actual API.SH credits consumed","max_quantity":"1","measure":"value","pointer":"/credits_used","price_micro_usd":"2000","quantity_scale":0,"source":"response","unit":"credit","unit_quantity":"1"}],"rounding":"ceil","variants":[]}},"capabilityId":"1ff6a971-0566-4365-9038-064cc6f7181e","catalogType":"api","categories":["developer","community","data"],"dataPlatform":"hugging-face","dataPlatformLogoUrl":"https://api.sh/logos/hugging-face.png","dataPlatformTranslations":{},"dataProduct":"developer-resources","description":"Get Hugging Face Repo Discussions \u0026 PRs data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as id, output, and retrieve structured data including repository identifier, total matching threads reported, status, and is pull request to track community pull requests, and search community threads by keyword.","descriptionTranslations":{"ar":"استعرض النقاشات وطلبات الدمج العامة في تبويب المجتمع لمستودع نموذج أو بيانات أو Space على Hugging Face عبر OpenAny REST لمتابعة البلاغات وطلبات التحويل وإعلانات المشرفين. صفِّ حسب نوع المستودع ونوع الموضوع والحالة والمؤلف والبحث في العنوان والفرز مع التصفح بالصفحات بصيغة JSON.","ja":"OpenAny REST で Hugging Face リポジトリの公開ディスカッションとプルリクエストを取得し、不具合報告や量子化 PR、公式アナウンスを追跡できます。リポジトリ種別、種別、ステータス、作成者、タイトル検索、並び順とページングでスレッド情報を返します。","zh":"通过 OpenAny REST 获取 Hugging Face 模型、数据集或 Space 仓库社区页中的公开讨论与 Pull Request，用于追踪问题反馈、量化 PR 和维护者公告。可按仓库类型、帖子类别、状态、作者、标题关键词和排序筛选并分页，返回编号、标题、作者、评论数和互动统计。"},"effectContentHtml":"","executionMode":"sync","id":"25d4098d-1aef-4325-82b5-04f3ea5ac8dd","includedContentHtml":"","inputs":[{"description":"Repo id (owner/name) or huggingface.co link.","location":"query","name":"id","nullable":false,"required":true,"type":"string"},{"description":"Repo type (default model; taken from a pasted link).","enum_values":["model","dataset","space"],"location":"query","name":"type","nullable":false,"required":false,"type":"string"},{"description":"Discussions, pull requests or both (default all).","enum_values":["all","discussion","pull_request"],"location":"query","name":"kind","nullable":false,"required":false,"type":"string"},{"description":"Status filter (default all).","enum_values":["all","open","closed"],"location":"query","name":"status","nullable":false,"required":false,"type":"string"},{"description":"Sort order (default recently-created).","enum_values":["recently-created","trending","reactions"],"location":"query","name":"sort","nullable":false,"required":false,"type":"string"},{"description":"Only threads opened by this user.","location":"query","name":"author","nullable":false,"required":false,"type":"string"},{"description":"Only threads whose title matches this text.","location":"query","name":"q","nullable":false,"required":false,"type":"string"},{"description":"Page number (default 1).","location":"query","name":"page","nullable":false,"required":false,"type":"integer"},{"description":"0 leaves out the bulky `raw` source blocks (often 10-30x smaller).","enum_values":["0","1"],"location":"query","name":"raw","nullable":false,"required":false,"type":"string"},{"description":"Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.","location":"query","name":"fields","nullable":false,"required":false,"type":"string"},{"description":"1 skips the 24-hour cache and fetches live.","enum_values":["1"],"location":"query","name":"fresh","nullable":false,"required":false,"type":"string"},{"description":"JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.","enum_values":["json"],"location":"query","name":"output","nullable":false,"required":false,"type":"string"},{"description":"Native CSV/NDJSON record selector; it has no effect on this JSON-only product.","location":"query","name":"records","nullable":false,"required":false,"type":"string"}],"logoUrl":"https://api.sh/logos/hugging-face.png","method":"GET","name":"Hugging Face repository discussions and pull requests API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eHugging Face Repo Discussions \u0026amp; PRs API\u003c/h2\u003e\n\u003cp\u003ePass required id (owner/name or huggingface.co link) with optional type (default model), kind (discussions, pull requests or all), status (default all), sort (default recently-created), author, q (title match) and page (default 1). Returned items[] include thread number, title, status, is_pull_request flag, author metadata and comment counts.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eRequired query: id (owner/name or Hub link). Optional type (default model), kind (default all), status (default all), sort (default recently-created), author, q, page (default 1), raw=0, fields and fresh=1.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003eapish · Hugging Face repository discussions and pull requests API\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eMonitor open issues and bug reports\u003c/strong\u003e: Filter discussions by status and sort order to spot licensing questions, broken weights or tokenizer bugs.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eTrack community pull requests\u003c/strong\u003e: Use kind and is_pull_request to surface safetensors conversions, ONNX exports or card fixes.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eSearch Community threads by keyword\u003c/strong\u003e: Pass q or author to locate specific maintainer announcements or user reports without scraping HTML.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eReturned Data\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eid\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eRepository identifier (owner/name)\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etype\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eRepository type: model, dataset or space\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etotal\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eTotal matching threads reported\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].num\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eCommunity thread or pull request number\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].title\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eThread or pull request title\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].status\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eThread status such as open, closed or merged\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].is_pull_request\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eBoolean flag distinguishing pull requests from discussions\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].comments\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eNumber of comments posted on the thread\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].author.name\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eUsername of the thread opener\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003enext_page\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eNext page number, or null on the last page\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request GET --get \\\n  https://api.openany.si/v1/agent-apis/apish/huggingface/v1/model/discussions \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode id=openai-community/gpt2 \\\n  --data-urlencode output=json\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/25d4098d-1aef-4325-82b5-04f3ea5ac8dd\"\u003ePublished Hugging Face Repo Discussions \u0026amp; PRs API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eCan I list discussions for datasets and Spaces as well as models?\u003c/h3\u003e\n\u003cp\u003eYes. Pass type=dataset or type=space, or supply the full huggingface.co URL in id so the type is inferred automatically.\u003c/p\u003e\n\u003ch3\u003eHow do I separate pull requests from regular discussions?\u003c/h3\u003e\n\u003cp\u003eFilter with the kind parameter, and check items[].is_pull_request on each returned thread.\u003c/p\u003e\n\u003ch3\u003eCan I filter by thread status, author or title keywords?\u003c/h3\u003e\n\u003cp\u003eYes. Use status, author and q (title text match) individually or together.\u003c/p\u003e\n\u003ch3\u003eHow are threads sorted and paginated?\u003c/h3\u003e\n\u003cp\u003esort defaults to recently-created and pagination uses page (default 1) with next_page until null.\u003c/p\u003e\n\u003ch3\u003eDoes this endpoint return the full body of every comment in a thread?\u003c/h3\u003e\n\u003cp\u003eNo. It returns thread-level summaries including title, status, author, comment count, reactions and URL.\u003c/p\u003e\n\u003ch3\u003eHow do caching and field selection work?\u003c/h3\u003e\n\u003cp\u003eOutput is JSON only. Pass fresh=1 to skip the 24-hour cache, raw=0 to omit raw blocks, or fields to select specific keys.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/hugging-face/hugging-face-repository-commit-history-api\"\u003eHugging Face Repo Commit History API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/hugging-face/hugging-face-repository-file-tree-api\"\u003eHugging Face Repo File Tree API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/hugging-face/hugging-face-model-details-api\"\u003eHugging Face Model Details API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/hugging-face/hugging-face-repository-discussions-and-pull-requests-api?offering=25d4098d-1aef-4325-82b5-04f3ea5ac8dd","providerId":"apish","publicPath":"/v1/agent-apis/apish/huggingface/v1/model/discussions","requestContentType":"none","revision":3,"samples":[{"http_status":200,"name":"Official example · Official documentation response · Supplier-tr","request":{"body":null,"headers":{},"path":{},"query":{"id":"openai-community/gpt2","output":"json"}},"response_body":{"cached":false,"count":50,"credits_used":1,"id":"openai-community/gpt2","items":[{"author":{"avatar":"https://huggingface.co/avatars/2c5da123c7caa132e6e2a298ae18a671.svg","fullname":"attacker34234","name":"victim3432","pro":false,"type":"user","url":"https://huggingface.co/victim3432"},"comments":1,"created_at":"2026-11-04T00:58:59.000Z","is_pull_request":true,"num":202,"pinned":false,"reactions":0,"status":"closed","title":"pr7448","top_reactions":[],"url":"https://huggingface.co/openai-community/gpt2/discussions/202"},{"author":{"avatar":"https://huggingface.co/avatars/d47558c152546cbbcdef1db0447ab7f0.svg","fullname":"negm","name":"Yousef9828","pro":false,"type":"user","url":"https://huggingface.co/Yousef9828"},"comments":1,"created_at":"2026-10-19T12:48:35.000Z","is_pull_request":false,"num":201,"pinned":false,"reactions":0,"status":"closed","title":"Test discussion","top_reactions":[],"url":"https://huggingface.co/openai-community/gpt2/discussions/201"},"… 48 more"],"kind":"all","next_page":2,"page":1,"sort":"recently-created","status":"all","total":186,"type":"model","url":"https://huggingface.co/openai-community/gpt2/discussions"}}],"seoDescription":"Get Hugging Face Repo Discussions \u0026 PRs data via REST or MCP powered by Apish. Pay per call, no subscription. Built to monitor open issues and bug reports.","updatedAt":"2026-12-03T02:43:37.413Z","usageInstructionsHtml":""}}