npm: Package
Package from npm as JSON. 1 credit per successful call.
GET /v1/npm/package
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
package | string | Required | Up to 214 characters |
version | string | Optional | Up to 64 characters |
include_versions | boolean | Optional | Any |
include_readme | boolean | Optional | Any |
Example request
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.