# npm Registry Package API (https://www.socialcrawl.dev/platforms/npm/package) > Returns one published version of an npm package, the latest by default: the package name (`post.id` and `post.ext.title`), its npm page and description (`post.content.text`). `post.ext.npm` adds the version, licence, homepage, repository, keywords, maintainers by username, its dependencies, peer dependencies and supported engines, and the tarball link with its integrity hash, unpacked size and file count. A package or version npm does not have answers 404 and is not charged. TL;DR: `GET /v1/npm/package` costs 1 credit per call and returns SocialCrawl's unified JSON schema. Single x-api-key auth, 100 free credits on signup. ## Parameters | Parameter | Required | Description | | --- | --- | --- | | `package` | no | The package name, with its scope when it has one, for example zod or @vue/server-renderer. Send package or url. | | `url` | no | The package's npm page, for example https://www.npmjs.com/package/zod (a /v/ link picks that version). Send package or url. | | `version` | no | A published version such as 3.22.4, or a tag such as latest (default) or next. | ## Code example ```bash curl -G "https://www.socialcrawl.dev/v1/npm/package" \ --data-urlencode "package=zod" \ -H "x-api-key: sc_YOUR_API_KEY" ``` ## FAQ ### How do I get an npm package version with an API? Send GET /v1/npm/package with the name as package and, optionally, a version or a tag. The latest version is the default. ### What does it return? The description, licence, homepage, repository, maintainers by username, dependencies, peer dependencies, engines, and the tarball link with its integrity hash. ### How do I verify a download? Compare the tarball's hash with post.ext.npm.integrity, the sha512 value npm publishes. ### Can I pass an npm page instead of a name? Yes. Pass the package's npm page as url; a /v/version link picks that version. ### What does a package that does not exist return? A 404, which is not charged. See the full npm Registry API: https://www.socialcrawl.dev/platforms/npm ## Pricing - Standard endpoints: 1 credit per call - Advanced endpoints: 5 credits per call - Premium endpoints: 10 credits per call - 100 free credits on signup, no credit card required. Cached responses cost 0 credits. Credit packs never expire. - Full pricing: https://www.socialcrawl.dev/pricing ## Explore with AI Questions this API answers, phrased for an AI assistant: - How do I get the dependencies of an npm package version with an API? - Which API returns an npm tarball integrity hash?