InsightSocial API
npm

npm Package Version API reference

Your first 10 calls are free, no card needed. Pricing and FAQ

Get a free API key
Example request
curl "https://api.insightsocial.app/v1/npm/package/version?name=<name>&version=<version>" \
  -H "x-api-key: $INSIGHTSOCIAL_API_KEY"
GET
/v1/npm/package/version

Get one npm version document, by exact version or dist-tag, with its files, dependencies, scripts and registry metadata.

Beta. The source's own structure under our naming rules (snake_case keys, string ids, ISO times where the source gives a timestamp), not one of the schema-2 entities. Fields may change. See Beta endpoints.

20 credits per call.

x-api-key<token>

Your key from the dashboard. It starts with isk_.

In: header

Query Parameters

name*string

npm package name, e.g. express, lodash.merge, @types/node or --file--1. Names are case-sensitive (Express is a different package) and keep legacy punctuation such as a leading -.

version*string

Exact version or dist-tag, e.g. 5.3.0, 5.0.0-alpha.1, latest or latest-4. Semver ranges (^4, 4.x) are refused.

dry_run?"1"

Set to 1 to get the price of this call without making it: data.dry_run carries credits_min and credits_max. Nothing is charged.

Value in

  • "1"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api.insightsocial.app/v1/npm/package/version?name=string&version=string"
{  "success": true,  "platform": "string",  "endpoint": "string",  "schema_version": "2",  "pagination": {    "next_cursor": "string",    "has_more": true,    "page_size": 0,    "stopped_at": "since"  },  "unavailable": [    "string"  ],  "credits_used": 0,  "credits_remaining": 0,  "request_id": "string",  "cached": true,  "idempotent_replay": true,  "charge_reason": "string",  "free_call": true,  "data": {    "property1": null,    "property2": null  }}