The playground
Try any of 1042 endpoints — live.
Pick an endpoint, load a working example, tweak the params, and send — no signup to try. Results render the way the data deserves; raw JSON, headers & code are one tab away.
Playground demo key · api.reefapi.com
post/packages/v1/downloads1 credit
download statistics (npm: period=last-day|week|month|year; pypi: recent day/week/month)
Working example
Parameters
Which package registry to query. npm = Node.js packages; pypi = Python packages. (Synonyms node/nodejs -> npm, python/pip -> pypi.)
Exact package name (e.g. npm 'react', PyPI 'requests'). Scoped npm names like '@scope/pkg' are supported.
npm download window (rejects unknown values). Ignored for PyPI, which always returns recent last-day/last-week/last-month totals.
request preview
curl -X POST https://api.reefapi.com/packages/v1/downloads \
-H "x-api-key: $REEF_KEY" \
-H "content-type: application/json" \
-d '{"registry":"npm","name":"react","period":"last-month"}'Hit Send to run this endpoint live.