APIs / npm / Package

npm: Package

Package from npm as JSON. 1 credit per successful call.

GET /v1/npm/package

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
packagestringRequiredUp to 214 characters
versionstringOptionalUp to 64 characters
include_versionsbooleanOptionalAny
include_readmebooleanOptionalAny

Example request

cURLshell
curl "https://api.perceptlayer.com/v1/npm/package?package=lodash" \
  -H "X-API-Key: $API_KEY"

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.