---
title: "npm API: Package | Perceptlayer"
description: "Package from npm as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/npm/package
---

[APIs](https://perceptlayer.com/apis) / [npm](https://perceptlayer.com/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.

| 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 shell 

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

[Run this endpoint in the playground](https://perceptlayer.com/apis/npm?try=package#playground) with your own parameters. 1 credit per successful call; failed calls are free.
