GroundsocialDocs

API · npm

GET /npm/search

Search npm packages, with downloads and scores.

RequestGET /v1/npm/search
Operation idnpm.search.all
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

Search npm packages, with downloads and scores.

Query parameters

NameTypeRequiredDescription
qstringyesSearch terms. Example: react state.
pageintegernoPage number, 1 to 100. Defaults to 1.
limitintegernoPackages per page, 1 to 100. Defaults to 20.
sincestringnoOnly rows published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. Example: 2026-01-01.
untilstringnoOnly rows published on or before this date: YYYY-MM-DD (that whole UTC day) or an ISO 8601 timestamp. Example: 2026-12-31.

Responses

StatusMeaningSchema
200Matching packages with the total.NpmSearch
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404The package or version does not exist.Error
429Too many requests. Wait for Retry-After seconds.Error
503npm is temporarily unavailable. Retryable; nothing was charged.Error

NpmSearch fields

FieldTypeDescription
objectsNpmSearchObject[]
totalinteger
timestring
pageinteger
limitinteger

Errors use one shape everywhere; see Errors for every code and what to do.