# npm

7 endpoints on npm. Every one returns the same response shape and has a flat, published price in credits.

Category: [Developer platforms](https://onekey.dev/docs/categories/developer.md) · [Overview page](https://onekey.dev/platforms/npm)

## Endpoints

| Endpoint | What it does | Cost | Status |
| --- | --- | --- | --- |
| [`dist_tags`](https://onekey.dev/docs/api/npm/dist_tags.md) | Dist-tags (latest, next, beta...) of an npm package. | 1 credit | stable |
| [`downloads`](https://onekey.dev/docs/api/npm/downloads.md) | Download count of an npm package over a period. | 1 credit | stable |
| [`downloads_range`](https://onekey.dev/docs/api/npm/downloads_range.md) | Daily download counts of an npm package for a period. | 5 credits | stable |
| [`package`](https://onekey.dev/docs/api/npm/package.md) | Latest published metadata of an npm package. | 1 credit | stable |
| [`search`](https://onekey.dev/docs/api/npm/search.md) | Search the npm registry (with popularity and quality scores). | 5 credits | stable |
| [`user_packages`](https://onekey.dev/docs/api/npm/user_packages.md) | Packages maintained by an npm user. | 5 credits | stable |
| [`version`](https://onekey.dev/docs/api/npm/version.md) | Metadata of one specific published npm version. | 1 credit | stable |

Every endpoint page has a **Field mapping** section showing which source field becomes which [unified field](https://onekey.dev/docs/schema.md) (fixed schema) or platform-specific `ext.` field.
