Reef AI: ask for any data. Try it
npm API

npm package metadata, dependencies, download counts and search, as JSON

endpoints
7
credits per call
1–2

The npm API returns npm registry data for any Node.js package as JSON: the package's latest version, description, license, homepage, repository, keywords, maintainers, dependencies, dist-tags and version count; the version list; one version's metadata; the dependencies, dev, peer and optional dependencies of any version; download counts for the last day, week, month or year; keyword search; and the maintainers.

/npm/v1

  • POST/npm/v1/package1 credit
  • POST/npm/v1/versions1 credit
  • POST/npm/v1/version1 credit
  • POST/npm/v1/dependencies1 credit
  • POST/npm/v1/downloads1 credit
  • POST/npm/v1/search2 credits
  • POST/npm/v1/maintainer1 credit
7 active endpoints, on 1 and 2 credit tiers.Every parameter ↓OpenAPI 3.0 spec ↗

1 credit per call≈ $1/1,000 calls1,000 free credits, no card

Get a free API key
Try it live

Run the call yourself, on the real endpoint

Change a parameter and press Try it. The response on the right is what your code will receive.

npm API

4 of 7 endpoints, ready to run

View docs ↗

One npm package: latest version, dist-tags, license, maintainers, repository

1 credit1 required · 0 optional
POST/npm/v1/package
idle
// Press "Try it" and this pane shows exactly what the
// live site returned this second — including an empty
// result, if that is the truth. No key, no account.

Try every endpoint in the playground

Endpoints

What npm endpoints does ReefAPI ship?

7 live read endpoints. Read-only data API: no writes, no account actions, no dashboard access on the target site.

  • package

    1 cr

    full package metadata (latest version normalized).

    required
    name
    optional
    —
  • versions

    1 cr

    paginated version list for a package.

    required
    name
    optional
    page, page_size
  • version

    1 cr

    single version metadata.

    required
    name, version
    optional
    —
  • dependencies

    1 cr

    runtime + dev dependencies for a version (latest if omitted).

    required
    name
    optional
    version
  • downloads

    1 cr

    download statistics (npm.

    required
    name
    optional
    period
  • search

    2 cr

    search packages (npm.

    required
    query
    optional
    page, page_size, from
  • maintainer

    1 cr

    maintainer/author records for a package.

    required
    name
    optional
    —

Every parameter, every allowed value →

Missing a npm endpoint, or need a source we don't have yet?Contact us real people · same-day reply.
How it works

How the npm API works

npm is a normal ReefAPI surface — the same four rules that hold for every other engine on the key.

Authenticate01
x-api-key header

No OAuth app, no request signing, no per-site account. One key covers all 746 engines.

Call02
POST /npm/v1/…

Every route is a POST with a JSON body. Parameters are validated against the published schema before anything is charged.

Pay03
1 or 2 credits per call

Credits, not seats. Failed and blocked calls are never charged, and nothing is cached: every call reads the source live.

Read04
{ ok, data, meta, error }

One envelope everywhere. meta carries latency_ms, record_count and the endpoint that answered.

Recipe

Is this npm package maintained, popular and safe to depend on?

Find candidates by keyword, then read each package's latest version, maintainers, license and download count.

01search
POST/npm/v1/search
{"query": "http client"}

On 2026-11-21: 20 of 806,006 matches in 0.8 s, each with version, description, license, keywords, maintainers, last publish date, repository link, npm's score and monthly downloads (axios 634,289,242).

02package
POST/npm/v1/package
{"name": "react"}

react 19.3.1, MIT, 2 maintainers, 7 dist-tags (latest, next, canary, experimental, beta, rc, backport), 3,017 published versions, in 1.7 s.

03downloads
POST/npm/v1/downloads
{"name": "react", "period": "last-month"}

1,107,613,321 downloads from 2026-10-22 to 2026-11-20, with the exact window, in 0.6 s. Old calls to POST /packages/v1/... with registry npm keep working unchanged.

For each candidate package: its latest version, license, who can publish it and how many times it was downloaded in a stated window.

request
curl -X POST https://api.reefapi.com/npm/v1/package \
  -H "x-api-key: $REEF_KEY" \
  -H "content-type: application/json" \
  -d '{"name":"react"}'
response envelope
{
  "ok": true,
  "data": { … },
  "meta": {
    "api": "npm",
    "endpoint": "package",
    "mode": "live",
    "latency_ms": …,
    "record_count": …
  },
  "error": null
}
Fields

What an npm field actually contains

Fields that read differently from how they look. Each row was measured on the live npm registry on 2026-11-21.

FieldWhat it holds
version (package)The version the latest dist-tag points to, i.e. what npm install gives: react 19.3.1.
dist_tagsEvery release channel the package publishes: react had 7 (latest, next, canary, experimental, beta, rc, backport). canary and experimental builds dated 2026-11-19 were newer than latest.
version_countHow many versions were ever published: 3,017 for react. versions pages through them.
dependencies, dev_dependenciesThe ranges the author declared, as written ("^6.14.0"), not a resolved install. react declares none, so both are {}.
maintainersThe npm users allowed to publish, with e-mail (react: fb, react-bot). In search results each maintainer has username and e-mail, plus the publisher of the latest version.
downloads, start, endnpm's download count for the period you asked for, with the exact first and last day: 1,107,613,321 for react, 2026-10-22 to 2026-11-20.
search: downloadsMonthly downloads of each result (axios 634,289,242).
search: score, search_scorenpm's own ranking: score.final plus popularity, quality and maintenance. A relevance figure for this query, not a quality grade.
search: total, next_fromHow many packages matched (806,006 for "http client") and the offset of the next page; page_size up to 250.
timeThe release-date map. Empty ({}) for react on 2026-11-21: release dates are not part of the package answer.

Everything is returned as the npm registry publishes it; nothing is resolved, rewritten or ranked by us.

Coverage

npm coverage, measured

Every number below comes from live npm registry calls on 2026-11-21.

Package

react: version 19.3.1, license MIT, homepage react.dev, repository github.com/react/react, maintainers fb and react-bot with e-mail, dependencies none, 7 dist-tags, 3,017 versions; 1.7 s.

Downloads

react last month: 1,107,613,321 (2026-10-22 to 2026-11-20), 0.6 s. period last-day, last-week, last-month or last-year; any other value is refused.

Search

"http client": 806,006 matches, 20 per page (up to 250), next page by from; axios, ky, needle, gaxios among the first 20. Each result carries monthly downloads, npm's popularity, quality and maintenance scores and the publisher. A name nobody uses ("writecream") returned 0 results in 0.3 s.

Dist-tags

latest is the version npm install gives; on react, canary 19.3.0-canary-e04279e7-20261119 and experimental builds dated 2026-11-19 were newer than latest.

Limits

Dependencies are the ranges the author declared (^1.2.0), not a resolved tree. The package's release-date map (time) came back empty for react, so release dates are not part of package. Download counts are npm's own, per package, not per version.

Use cases

What people build with npm

The jobs this data is most often used for.

01

Check that every npm dependency of a project has a known license and an active maintainer list.

02

Rank npm packages for a task by monthly downloads, from one keyword search.

03

Track a library's download count per week or month for adoption reports.

04

Alert when a package's latest version or its maintainers change.

7

endpoints

1/2

credits per call

Pricing

What npm data costs

The cheapest call here is 1 credit, so $15/mo (Pro) buys 10,000 of them — $1.50 per 1,000 credits. Credits roll over and never expire, and failed or blocked calls are not charged.

$0.67–$1.50 / 1,000 credits
Full pricing →
  • 1,000 free credits on signup, no card
  • One key, all 746 APIs, one credit pool
  • Failed and blocked calls are never charged
  • Credits roll over and never expire
no credit card1,000 free credits · instant API key · pay by card or crypto
Quickstart

Call it in two lines

Sign up, get 1,000 credits and one key that works on every engine. Then this is the whole protocol.

curl
curl -X POST https://api.reefapi.com/npm/v1/package \
  -H "x-api-key: $REEF_KEY" \
  -H "content-type: application/json" \
  -d '{"name":"react"}'
python
import os
import requests

REEF_KEY = os.environ["REEF_KEY"]

r = requests.post(
    "https://api.reefapi.com/npm/v1/package",
    headers={"x-api-key": REEF_KEY},
    json={
        "name": "react"
    },
    timeout=90,
)
print(r.json()["data"])
FAQ

Have a question? We got answers.

The questions people actually ask before wiring up npm.

Is there an npm API?▾

Yes. The npm API on ReefAPI returns npm registry data as JSON: package metadata, versions, one version's metadata, dependencies, download counts, search and maintainers. The npm registry needs no account or token for this data; you call it with your ReefAPI key.

How do I get an npm package's download count?▾

Call downloads with the package name and period last-day, last-week, last-month or last-year. On 2026-11-21 react had 1,107,613,321 downloads in the last month (2026-10-22 to 2026-11-20); the answer came in 0.6 seconds and states the exact window.

Can I search npm by keyword?▾

Yes. search takes keywords and returns up to 250 packages per page with name, version, description, license, keywords, maintainers, last publish date, repository and bug links, npm's scores and monthly downloads. "http client" matched 806,006 packages on 2026-11-21; the first 20 included axios, ky, needle and gaxios.

Does it return the dependencies of a package?▾

Yes. package returns the latest version's dependencies; dependencies returns dependencies, dev dependencies, peer dependencies and optional dependencies for any version you name. Values are the declared ranges ("^6.14.0"), not a resolved tree. react declares no dependencies, so its maps are empty.

Is latest the newest version?▾

Not always. latest is the version npm install gives. On react, the canary and experimental channels carried builds dated 2026-11-19 that were newer than latest 19.3.1. dist_tags lists every channel.

Do scoped packages work?▾

Yes. Names like @actions/http-client or @hapi/wreck work in every action; both came back in a search on 2026-11-21.

Does it return release dates?▾

Not reliably. react's release-date map (time) came back empty on 2026-11-21. Version strings, the version count and dist-tags are complete; search results carry the date of each package's latest publish.

Do old packages calls still work?▾

Yes. POST /packages/v1/<action> with registry npm keeps working unchanged. The call for npm alone is POST /npm/v1/<action>, with the same parameters minus registry. Python packages are on the pypi API.

What is the npm API?▾

npm API is a ReefAPI endpoint group for npm registry data for any node.js package: metadata, dist-tags, versions, dependencies, download counts, search and maintainers. It returns live JSON through POST requests under /npm/v1.

Is the npm API free to try?▾

Yes. ReefAPI starts with 1,000 free credits, no card required. npm calls use the same shared credit balance as every other ReefAPI engine.

Do I need a npm login or account?▾

No login to npm is needed for the API response. You call ReefAPI with your x-api-key header, and the playground can run live examples before you create a production key.

How fresh is the npm data?▾

The page example is captured from a live package call, and production requests fetch live data through ReefAPI rather than a static sample.

How many credits does the npm API use?▾

npm actions currently cost 1-2 credits per successful call. Failed or blocked calls are free. All APIs draw from one credit pool.

Can I call npm from an AI assistant or MCP client?▾

Yes. Connect ReefAPI once through MCP and your assistant can call npm actions with the same key, credit pool and JSON envelope used by normal REST requests.

Same key

15 Developer Tools APIs on the same key

One key, one credit pool, one response envelope. If you are pulling npm, you are one call away from the rest of the category — no second contract, no second integration.

Already paying for something else?npm vs Zytenpm vs Octoparsenpm vs ParseHub
Contact

Need something this API does not do?

Name the endpoint, the field, or a source we do not carry yet. We ship new APIs every week and you would be first to get the key. Real people read every message and reply the same day.

0/4000

No account needed · we reply from [email protected]

Try it on your own data before you pay anything

The call above is the real endpoint, not a recording. A free key gives you 1,000 credits, the other 745 APIs, and the same envelope everywhere.

Endpoints, parameters and credit costs on this page are read from the live catalog and cannot drift from what the API accepts. Field notes were captured on 2026-11-21.