x402
npm Package Info (x402)
Fetch npm package metadata: version, dependencies, downloads, repository, license. Includes weekly download count.
get/x402/v2/npm-package-info
Request
- Base URL: https://api.strale.io
- URL: https://api.strale.io/x402/v2/npm-package-info
- Auth: none required
Query parameters
packagestring required
Response
Success
Example response
{
"name": "express",
"author": "TJ Holowaychuk",
"created": "2010-12-29T19:38:25.450Z",
"license": "MIT",
"homepage": "https://expressjs.com/",
"keywords": [
"express",
"framework",
"sinatra",
"web",
"http",
"rest",
"restful",
"router",
"app",
"api"
],
"dist_tags": {
"latest": "5.2.1",
"latest-4": "4.22.1"
},
"repository": "git+https://github.com/expressjs/express.git",
"description": "Fast, unopinionated, minimalist web framework",
"dependencies": [
"qs",
"depd",
"etag",
"once",
"send",
"vary",
"debug",
"fresh",
"cookie",
"router",
"accepts",
"type-is",
"parseurl",
"statuses",
"encodeurl",
"mime-types",
"proxy-addr",
"body-parser",
"escape-html",
"http-errors",
"on-finished",
"content-type",
"finalhandler",
"range-parser",
"serve-static",
"cookie-signature",
"merge-descriptors",
"content-disposition"
],
"last_modified": "2026-04-01T22:24:38.828Z",
"latest_version": "5.2.1",
"total_versions": 287,
"recent_versions": [
{
"version": "4.22.1",
"published": "2025-12-01T20:50:41.122Z"
},
{
"version": "5.2.1",
"published": "2025-12-01T20:49:43.268Z"
},
{
"version": "5.2.0",
"published": "2025-12-01T16:23:57.541Z"
},
{
"version": "4.22.0",
"published": "2025-12-01T16:23:07.582Z"
},
{
"version": "5.1.0",
"published": "2025-03-31T14:01:22.509Z"
}
],
"dev_dependencies": [
"ejs",
"hbs",
"nyc",
"after",
"mocha",
"vhost",
"eslint",
"marked",
"morgan",
"supertest",
"connect-redis",
"cookie-parser",
"cookie-session",
"express-session",
"method-override",
"pbkdf2-password"
],
"weekly_downloads": 95603758
}Changes
No recorded changes to this operation across all 1 revision of this API.