Search packages
Searches public npm packages with pagination and relevance weights.
GET
/npmjs/-/v1/searchNo authentication requiredQuery parameters6
| Name | Type | Description |
|---|---|---|
text* | string | Search terms and qualifiers such as scope:nuxt, author:name, or keywords:vue. |
size | integer | The number of results to return, up to 250. Default: Minimum: 0Maximum: 250 |
from | integer | The zero-based result offset. Default: Minimum: 0 |
quality | number | The influence of package quality on result ranking. Minimum: 0Maximum: 1 |
popularity | number | The influence of package popularity on result ranking. Minimum: 0Maximum: 1 |
maintenance | number | The influence of package maintenance on result ranking. Minimum: 0Maximum: 1 |
Headers2
| Name | Type | Description |
|---|---|---|
If-None-Match | string | An ETag for conditional requests. |
If-Modified-Since | string | An HTTP date for conditional requests. |
Responses
application/jsonSchemaobject
Additional properties are allowed
totalintegerRequired
Minimum: 0
timestringRequired
objectsobject[]Required
The original package search results.