npm API
npmjs.com
npm — search JavaScript packages, get package details, check download statistics.
- Actions
- 3
- Category
- Developer Tools
- Login
- Not required
- Output
- JSON
Call the npm API
Submit a task, then poll the job until it settles. This example runs np_search.
curl -X POST https://api.anakin.io/v1/wire/task \
-H "X-API-Key: $ANAKIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action_id": "np_search",
"params": {
"query": "<query>"
}
}'3 actions on npmjs.com
Read
Search npm Packages
np_searchread1 credit / callSearch npm packages by keywords. Returns name, description, version, and author.
- query
- string · required
Npm Download Stats
np_download_statsread1 credit / callWeekly download count for an npm package.
- package
- string · required
Npm Package Details
np_package_detailsread1 credit / callFull npm package metadata — version, description, dependencies, maintainers, repository.
- package_name
- string · required
npm API questions
- Is there an API for npm?
- npm does not offer a public data API for this, but Anakin Wire provides 3 maintained endpoints for npmjs.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
- How do I scrape npm data?
- POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when npmjs.com changes its markup, Anakin updates the action.
- Do I need a npm account?
- No. Every npm action listed here runs anonymously — no account and no credentials required.
- What does the npm API cost?
- Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.
More Developer Tools APIs
AlternativeTo
AlternativeTo — search software, get full details, and find crowd-ranked alternatives filtered by platform and license.
DEV Community
DEV Community — browse articles by tag, get full article content, explore popular tags, view user profiles.
GitHub
GitHub — search repos and users, get repo details and releases, browse trending repos and developers, view user profiles and repositories.
Product Hunt
Product Hunt — discover trending products, view launch details, and look up maker profiles.
PyPI
PyPI — get Python package details, browse new releases, check download statistics.
StackOverflow
StackOverflow — search questions, get full Q&A with answers, browse hot questions, explore related questions, tag FAQs, top users, and popular tags.