{
"count": 2,
"errors": [],
"results": [
{
"created": "2011-10-26T17:46:21.942Z",
"dependencies": 0,
"deprecated": false,
"description": "React is a JavaScript library for building user interfaces.",
"homepage": "https://react.dev/",
"keywords": [
"react"
],
"lastPublished": "2026-10-14T16:47:15.290Z",
"latestVersion": "19.3.1",
"license": "MIT",
"maintainers": 2,
"monthlyDownloads": 1124330522,
"package": "react",
"repository": "https://github.com/react/react",
"url": "https://www.npmjs.com/package/react",
"versionsCount": 3025,
"weeklyDownloads": 269193595
},
{
"created": "2013-12-07T06:09:46.299Z",
"dependencies": 5,
"deprecated": false,
"description": "The progressive JavaScript framework for building modern web UI.",
"homepage": "https://vuejs.org/",
"keywords": [
"vue"
],
"lastPublished": "2026-11-20T08:21:19.059Z",
"latestVersion": "3.5.46",
"license": "MIT",
"maintainers": 2,
"monthlyDownloads": 111047763,
"package": "vue",
"repository": "https://github.com/vuejs/core",
"url": "https://www.npmjs.com/package/vue",
"versionsCount": 604,
"weeklyDownloads": 26520561
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15686/package+downloads+and+stats+api/42495/npm+package+stats?packages=react,vue,svelte&maxItems=10' --header 'Authorization: Bearer YOUR_API_KEY'
{
"count": 2,
"errors": [],
"results": [
{
"author": null,
"homepage": null,
"lastDay": 48971836,
"lastMonth": 1513353444,
"lastWeek": 337629609,
"latestVersion": "2.34.2",
"license": "Apache-2.0",
"package": "requests",
"released": "2026-05-14T19:25:26.443000Z",
"releasesCount": 163,
"repository": "https://github.com/psf/requests",
"requiresPython": ">=3.10",
"summary": "Python HTTP for Humans.",
"url": "https://pypi.org/project/requests/"
},
{
"author": null,
"homepage": "https://github.com/encode/httpx",
"lastDay": 29133747,
"lastMonth": 833677657,
"lastWeek": 193770959,
"latestVersion": "0.29.0",
"license": "BSD-3-Clause",
"package": "httpx",
"released": "2026-11-26T15:58:35.703131Z",
"releasesCount": 78,
"repository": "https://github.com/encode/httpx",
"requiresPython": ">=3.10",
"summary": "The next generation HTTP client.",
"url": "https://pypi.org/project/httpx/"
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15686/package+downloads+and+stats+api/42496/pypi+package+stats?packages=requests,httpx,scrapy&maxItems=10' --header 'Authorization: Bearer YOUR_API_KEY'
{
"count": 2,
"errors": [],
"results": [
{
"categories": [
"No standard library",
"Encoding"
],
"crate": "serde",
"description": "A generic serialization/deserialization framework",
"downloads": 1791729068,
"latestVersion": "1.0.229",
"license": "MIT OR Apache-2.0",
"recentDownloads": 465148212,
"repository": "https://github.com/serde-rs/serde",
"updatedAt": "2026-07-18T23:05:13.266456Z",
"url": "https://crates.io/crates/serde"
},
{
"categories": [
"Asynchronous",
"Network programming"
],
"crate": "tokio",
"description": "An event-driven, non-blocking I/O platform for writing asynchronous I/O backed applications.",
"downloads": 1251690107,
"latestVersion": "1.54.1",
"license": "MIT",
"recentDownloads": 331722602,
"repository": "https://github.com/tokio-rs/tokio",
"updatedAt": "2026-10-21T21:05:43.950213Z",
"url": "https://crates.io/crates/tokio"
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15686/package+downloads+and+stats+api/42497/rust+crates+stats+crates+io?crates=serde,tokio,reqwest&maxItems=10' --header 'Authorization: Bearer YOUR_API_KEY'
{
"count": 2,
"errors": [],
"results": [
{
"author": "meta-llama",
"downloads": 3855296,
"gated": "manual",
"lastModified": "2024-09-25T17:00:57.000Z",
"library": "transformers",
"license": "llama3.1",
"likes": 9152,
"modelId": "meta-llama/Llama-3.1-8B-Instruct",
"task": "text-generation",
"url": "https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct"
},
{
"author": "meta-llama",
"downloads": 1365927,
"gated": "manual",
"lastModified": "2024-10-24T15:07:51.000Z",
"library": "transformers",
"license": "llama3.2",
"likes": 2042,
"modelId": "meta-llama/Llama-3.2-1B-Instruct",
"task": "text-generation",
"url": "https://huggingface.co/meta-llama/Llama-3.2-1B-Instruct"
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15686/package+downloads+and+stats+api/42498/hugging+face+models+search?search=llama&sort=downloads&maxItems=10' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 软件包下载量和统计数据 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
在一个 API 中提供 npm、PyPI 和 crates.io 软件包的下载量、版本、许可证和链接,以及 Hugging Face 模型搜索
Npm、PyPI 和 crates.io 的响应使用包含 `count`、`errors` 数组和 `results` 数组的 JSON 对象。每条结果都描述一个软件包或 crate;使用 `package` 或 `crate` 来标识它。处理批量请求时,除了 `results` 之外,也要检查 `errors`】【。
Npm 结果包含 `weeklyDownloads` 和 `monthlyDownloads`;PyPI 结果包含 `lastDay`、`lastWeek` 和 `lastMonth`。Crates.io 提供 `downloads` 和 `recentDownloads`。这些字段可用于比较各注册表所报告时间段内的活跃度。
Npm 搜索结果可包含依赖项、维护者、关键词和弃用状态。PyPI 搜索结果可包含 `requiresPython`、作者和摘要。Crates.io 搜索结果可包含分类和描述。这些字段有助于评估软件包元数据和兼容性
在注册表结果中查找 `license`、`repository`、`homepage` 和 `url`。可用字段因软件包和注册表而异,因此某些字段可能为 null 或不存在。`url` 通常链接到软件包的注册表页面,而 `repository` 在提供时会指向其源代码项目。
每个结果可以包含 `modelId`、`author`、`task`、`library`、`license`、`downloads`、`likes`、`gated`、`lastModified` 和 `url`。使用这些字段来识别模型、查看其受欢迎程度和元数据,并打开其 Hugging Face 页面
搜索支持关键词、任务或作者,并可按热门趋势、下载量或点赞数排序。使用这些选项查找适用于特定用途或创作者的模型,或优先查看受欢迎或当前热门的结果。
将可选元数据视为可能为空或不存在,不要假设每个结果都包含所有字段。对于批量注册表响应,请检查 `errors`,并独立处理 `results` 中的有效条目,以免一次查询失败导致无法使用其他结果