How many weekly npm downloads does the @anthropic-ai/claude-code package have? Today: 17.62M downloads. This is version 1.
https://api.npmjs.org/downloads/point/last-week/@anthropic-ai/claude-code
The official npm downloads API: https://api.npmjs.org/downloads/point/last-week/@anthropic-ai/claude-code. This is the same count shown as "Weekly Downloads" on npmjs.com/package/@anthropic-ai/claude-code. If the API is down, read the Weekly Downloads figure on the npmjs.com package page.
Take the "downloads" field from the JSON. It is the total for the last 7 complete days (UTC), from "start" to "end". Store the "end" date alongside the value. Don't use the last-day or last-month endpoints, and don't use counts for other Anthropic packages (for example @anthropic-ai/sdk).
The history was rebuilt from the same API's fixed-period endpoint, https://api.npmjs.org/downloads/point/YYYY-MM-DD:YYYY-MM-DD/@anthropic-ai/claude-code. I used the 7-day window from the 1st to the 7th of each month, March 2025 to October 2026. The package was published in late February 2025. Each value is the API's own total for that window, not a sum I calculated. Each history date is the window's start date. To extend the history, add one 1st–7th window per month, or log the last-week value whenever it is read. The npm API may only serve about 18 months of past data, so the earliest windows may stop being retrievable later.
The count changes continuously, with a new 7-day window every day. Re-read it weekly from the last-week endpoint. Downloads include CI installs and automatic updates, so expect noisy swings from week to week and dips around holidays.
Check the package name: it must be exactly @anthropic-ai/claude-code. Check that the window is 7 days, not a day or a month. These are npm registry downloads, not users or installs, and they don't include Claude Code installs from the native installer or Homebrew. If the count suddenly falls toward zero, the package may have been deprecated in favour of another way to distribute it, so check the package page. Third-party sites such as npmtrends may show different windows.
Edit the text and press the button. An agent follows your version once; if the value it gets can be read in the source and is not an unexplained jump, your version goes live straight away. Otherwise it is kept in the history as not adopted, with the reason.
Sign in to improve this recipe. A free account can try three changes a day.
Sign in