Developer
npm download trends API
Weekly/monthly download counts and month-over-month momentum for an npm package (npm registry download API). Pairs with dev/npm-package + dev/dep-tree. Answers 'is this package growing or dying', 'how popular is X', 'download trend for Y', 'npm downloads for Z'.
Price$0.01per request
MethodPOST
Route/v1/dev/npm-trends
StatusLive
MIME typeapplication/json
Rate limit60/minute
Cache3600s public
devnpmdownloadstrendspopularitypackagemomentumregistry
API URL
Integration docshttps://x402.hexl.dev/v1/dev/npm-trendsExample request
{
"package": "express"
}Example response
{
"package": "express",
"lastWeek": 98000000,
"lastMonth": 425540092,
"last30Days": 425000000,
"prev30Days": 410000000,
"momentumPct": 3.7,
"trend": "stable"
}Input schema
{
"type": "object",
"required": [
"package"
],
"properties": {
"package": {
"type": "string",
"examples": [
"express"
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}