Home › Websites, SEO and tech › npm Package Download Trends and New Versions API
Get npm package download trends and new versions: weekly and 30-day downloads, trend percent, latest version, publish date, deprecation, maintainers and a momentum score for every package you list. Uses the public npm registry and download APIs. No login, no proxy.
| Field | Name | Required | What it does |
|---|---|---|---|
packages | Package names | no | npm package names to read, one per line, for example "react" or "@angular/core". An npmjs.com/package/<name> link also works. Leave empty to use the 35 prefilled popular packages. |
mode | Output mode | no | packages = one summary row per package. versions = one row per version published within the number of days below, newest first. |
versionsWithinDays | New versions window (days) | no | Only used in versions mode. Keep versions published in the last N days. |
includePrereleases | Include pre-releases | no | Keep versions with a pre-release tag such as -beta.1 or -rc.2 (versions mode). Turn off to see stable versions only. |
includeDownloads | Include download counts | no | Add day, week and 30-day download counts and the trend from api.npmjs.org. Turn off for a faster run. |
maxItems | Max rows | no | Stop after this many rows. You pay only for rows delivered. |
One row per result. These are the 26 fields declared in the actor's dataset schema (field list from the schema, not a sample run).
| Field | Type | Meaning |
|---|---|---|
package | string | |
npmUrl | string | |
latestVersion | string | |
latestPublishedAt | string | |
daysSinceLatestPublish | integer | |
downloadsLastDay | integer | |
downloadsLastWeek | integer | |
downloadsLast30Days | integer | |
downloadsPrior30Days | integer | |
trendPct30d | number | |
trendPct7d | number | |
dataThrough | string | |
momentumScore | integer | |
releasesLast30Days | integer | |
releasesLast365Days | integer | |
totalVersions | integer | |
firstPublishedAt | string | |
deprecated | boolean | |
deprecationMessage | string | |
maintainersCount | integer | |
license | string | |
description | string | |
repositoryUrl | string | |
dependenciesCount | integer | |
hasTypes | boolean | |
scrapedAt | string |
Public data only, no login. Fields a source does not publish come back empty rather than guessed. Coverage and freshness follow the underlying public source.
Pay on Apify, no subscription: $0.00093 per package or version row (pay per event). The live price is on the actor page.
Disclosure: we build and maintain this actor.