{"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":"7483389a-7e85-4fac-8a2e-df8be02dc614","catalogType":"api","categories":["developer","data"],"dataPlatform":"hugging-face","dataPlatformLogoUrl":"https://api.sh/logos/hugging-face.png","dataPlatformTranslations":{},"dataProduct":"developer-resources","description":"Get Hugging Face Repo Commit History 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, revision, full Git commit hash, first-line commit title, and extended commit message body to audit release branches and tags, and pin reproducible deployment commits.","descriptionTranslations":{"ar":"استرجع سجل الالتزامات العام لأي مستودع نموذج أو مجموعة بيانات أو Space على Hugging Face عبر OpenAny REST لتدقيق التحديثات والتحقق من المراجعات المثبّتة. أرسل معرّف المستودع أو رابط Hub مع نوع المستودع والفرع أو الوسم ورقم الصفحة للحصول على معرّفات الالتزامات والرسائل والتواريخ والمؤلفين بصيغة JSON.","ja":"OpenAny REST で Hugging Face のモデル・データセット・Space リポジトリの公開コミット履歴を取得し、更新監査やリビジョン検証に活用できます。リポジトリ ID または URL、種別、ブランチ・タグ・コミット、ページ番号を指定すると、コミット ID・メッセージ・日時・作成者を返します。","zh":"通过 OpenAny REST 获取任意 Hugging Face 模型、数据集或 Space 仓库的公开提交历史，用于审计权重更新、追踪卡片变更并核验固定版本。传入仓库 owner/name 或 Hub 链接、可选仓库类型、分支/标签/提交修订号和页码，即可返回提交哈希、标题、提交信息、日期与作者。"},"effectContentHtml":"","executionMode":"sync","id":"ef586b99-8770-4d20-9497-b60c9f4a8fcb","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":"Branch, tag or commit (default main).","location":"query","name":"revision","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 commit history API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eHugging Face Repo Commit History API\u003c/h2\u003e\n\u003cp\u003ePass required id (owner/name or huggingface.co URL) with optional type (defaults to model, or inferred from a pasted URL), revision (branch, tag or commit, default main) and page (default 1). Returned items[] expose commit hashes, titles, messages, timestamps, authors and commit URLs.\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), revision (branch, tag or commit; default main), 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 commit history 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 silent weight or tokenizer changes\u003c/strong\u003e: Poll commit history on main to detect new checkpoints, config edits or README updates.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eAudit release branches and tags\u003c/strong\u003e: Pass revision to inspect commits on a specific quantized branch, PR ref or tagged release.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003ePin reproducible deployment commits\u003c/strong\u003e: Capture items[].id hashes to pass into the Repo File Tree API or downstream download workflows.\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\u003erevision\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eResolved branch, tag or commit revision queried\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etotal\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eTotal commits reported for the revision\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].id\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eFull Git commit hash\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].title\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eFirst-line commit title\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].message\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eExtended commit message body\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].date\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eCommit timestamp\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eitems[].authors[].name\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eCommit author username or name\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/commits \\\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/ef586b99-8770-4d20-9497-b60c9f4a8fcb\"\u003ePublished Hugging Face Repo Commit History 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 query commit history for datasets and Spaces, not just models?\u003c/h3\u003e\n\u003cp\u003eYes. Set type to dataset or space, or paste the full huggingface.co/datasets or huggingface.co/spaces URL in id.\u003c/p\u003e\n\u003ch3\u003eWhich branch is queried if I omit revision?\u003c/h3\u003e\n\u003cp\u003erevision defaults to main; you can pass any branch name, tag or commit hash.\u003c/p\u003e\n\u003ch3\u003eHow do I paginate through older commits?\u003c/h3\u003e\n\u003cp\u003ePass page (default 1) and continue with next_page until it returns null.\u003c/p\u003e\n\u003ch3\u003eDoes this endpoint return file diffs or raw file contents?\u003c/h3\u003e\n\u003cp\u003eNo. It returns commit metadata (ID, title, message, date, authors and URL); use the Repo File Tree API to inspect files at a revision.\u003c/p\u003e\n\u003ch3\u003eCan I read commits from private Hugging Face repositories?\u003c/h3\u003e\n\u003cp\u003eNo. Only publicly accessible repositories are supported.\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-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-repository-discussions-and-pull-requests-api\"\u003eHugging Face Repo Discussions \u0026amp; PRs 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-commit-history-api?offering=ef586b99-8770-4d20-9497-b60c9f4a8fcb","providerId":"apish","publicPath":"/v1/agent-apis/apish/huggingface/v1/model/commits","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":26,"credits_used":1,"id":"openai-community/gpt2","items":[{"authors":[{"avatar":"https://cdn-avatars.huggingface.co/v1/production/uploads/5e3aec01f55e2b62848a5217/PMKS0NNB4MJQlTSFzh918.jpeg","name":"lysandre"}],"date":"2024-02-19T10:57:45.000Z","id":"607a30d783dfa663caf39e06633721c8d4cfcd7e","message":"- Adds tokenizer_config.json file (db6d57930088fb63e52c010bd9ac77c955ac55e7)","title":"Adds the tokenizer configuration file (#80)","url":"https://huggingface.co/openai-community/gpt2/commit/607a30d783dfa663caf39e06633721c8d4cfcd7e"},{"authors":[{"avatar":"https://cdn-avatars.huggingface.co/v1/production/uploads/1651743336129-624c60cba8ec93a7ac188b56.png","name":"fxmarty"}],"date":"2023-06-30T02:19:43.000Z","id":"11c5a3d5811f50298f278a704980280950aedb10","message":"- Adding ONNX file of this model (9411f419c589519e1a46c94ac7789ea20fd7c322)","title":"Adding ONNX file of this model (#60)","url":"https://huggingface.co/openai-community/gpt2/commit/11c5a3d5811f50298f278a704980280950aedb10"},"… 24 more"],"next_page":null,"page":1,"revision":"main","total":26,"type":"model"}}],"seoDescription":"Get Hugging Face Repo Commit History data via REST or MCP powered by Apish. Pay per call, no subscription. Get repository identifier and revision in JSON.","updatedAt":"2026-12-03T02:43:37.342Z","usageInstructionsHtml":""}}