npm: Search
Search from npm as JSON. 1 credit per successful call.
GET /v1/npm/search
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
q | string | Required | Up to 200 characters |
size | integer | Optional | Any |
page | integer | Optional | Any |
Example request
npm
GET/v1/npm/search?q=express&size=20
{
"success": true,
"data": {
"search_parameters": {
"q": "express"
},
"total": 78094,
"page": 1,
"size": 20,
"has_more": true,
"results": [
{
"name": "express",
"version": "5.3.0",
"description": "Fast, unopinionated, minimalist web framework",
"keywords": [
"express",
"framework",
"sinatra"
],
"published_at": "2026-10-09T12:56:54.505Z",
"links": {
"homepage": "https://expressjs.com/",
"repository": "git+https://github.com/expressjs/express.git",
"bugs": "https://github.com/expressjs/express/issues",
"npm": "https://www.npmjs.com/package/express"
},
"publisher": {
"email": "npm-oidc-no-reply@github.com",
"approver": {
"name": "ulisesgascon",
"email": "ulisesgascondev@gmail.com"
},
"trustedPublisher": {
"oidcConfigId": "99dba195-afaa-4d25-9fac-f714da8caf90",
"id": "github"
},
"username": "GitHub Actions"
},
"maintainers": [
{
"email": "wes@wesleytodd.com",
"username": "wesleytodd"
},
{
"email": "npm@jonchurch.com",
"username": "jonchurch"
},
{
"email": "c@labsector.com",
"username": "ctcpip"
}
],
"score": {
"final": 2305.926,
"quality": 1,
"popularity": 1,
"maintenance": 1
},
"search_score": 2305.926,
"flags": {
"insecure": 0
},
"downloads": {
"weekly": 194290467,
"monthly": 714632838
},
"dependents": 108917,
"updated_at": "2026-11-13T10:34:35.515Z"
},
{
"name": "@types/express",
"version": "5.0.6",
"description": "TypeScript definitions for express",
"published_at": "2025-12-01T20:35:51.488Z",
"links": {
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express",
"repository": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"npm": "https://www.npmjs.com/package/@types/express"
},
"publisher": {
"email": "ts-npm-types@microsoft.com",
"username": "types"
},
"maintainers": [
{
"email": "ts-npm-types@microsoft.com",
"username": "types"
}
],
"score": {
"final": 459.64337,
"quality": 1,
"popularity": 1,
"maintenance": 1
},
"search_score": 459.64337,
"flags": {
"insecure": 0
},
"downloads": {
"weekly": 85304054,
"monthly": 318990337
},
"dependents": 16550,
"updated_at": "2026-11-13T10:41:51.949Z"
},
{
"name": "swagger-ui-express",
"version": "5.0.1",
"description": "Swagger UI Express",
"keywords": [
"swagger",
"express",
"ui"
],
"published_at": "2024-05-31T21:16:32.005Z",
"links": {
"homepage": "https://github.com/scottie1984/swagger-ui-express",
"repository": "git+ssh://git@github.com/scottie1984/swagger-ui-express.git",
"bugs": "https://github.com/scottie1984/swagger-ui-express/issues",
"npm": "https://www.npmjs.com/package/swagger-ui-express"
},
"publisher": {
"email": "scottie1984@gmail.com",
"username": "scottie1984"
},
"maintainers": [
{
"email": "scottie1984@gmail.com",
"username": "scottie1984"
}
],
"score": {
"final": 408.44086,
"quality": 1,
"popularity": 1,
"maintenance": 1
},
"search_score": 408.44086,
"flags": {
"insecure": 0
},
"downloads": {
"weekly": 5621701,
"monthly": 21159935
},
"dependents": 3459,
"updated_at": "2026-11-13T10:35:14.342Z"
}
]
},
"meta": {
"endpoint_family": "search",
"request_id": "req_bb0c9a9e0aad4fb88cfabbd228f12f26",
"credits_charged": 1,
"credits_remaining": 1777
}
}200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
data has these 3 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
search_parameters | object |
size | integer |
results | object[] |