Skip to content
PluginStats

zpi-sdk weekly downloads statistics

By zeative · npm · MCP servers

The TypeScript SDK for Zapi: call any scraper, stream, run bulk jobs, verify webhooks. Zero dependencies; Node, Bun, Deno, browsers and edge.

View on npm Fresh · Dec 6, 2026

zpi-sdk has 10,289 recorded weekly downloads on npm, a decrease of 54.5% over the past 30 days, ranking #1246 of 3,247 tracked listings.

Weekly downloads
10,289
Official API · Dec 5, 2026
7-day growth
-32.3%
-4.9K weekly downloads
30-day growth
-54.5%
-12.3K weekly downloads
90-day growth
-27.5%
-3.9K weekly downloads
Rank
#1246
Among tracked npm listings

About zpi-sdk

<div align="center"> <img alt="zpi-sdk" src="https://zapi.ink/favicon/web-app-manifest-192x192.png" width="80"> <h1>zpi-sdk</h1> <p>The TypeScript SDK for <a href="https://zapi.ink">Zapi</a>: call any scraper with one line.<br>Zero dependencies. Node, Bun, Deno, browsers and edge.</p>

<a href="https://www.npmjs.com/package/zpi-sdk"><img src="https://img.shields.io/npm/v/zpi-sdk.svg" alt="npm"></a> <a href="https://github.com/zeative/zpi-sdk/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="MIT"></a> <img src="https://img.shields.io/badge/dependencies-0-brightgreen" alt="zero dependencies">

Docs · Catalog · Get an API key · Migrating from 0.x

</div>

Quick start

npm i zpi-sdk
export ZPI_API_KEY=zpi_...
import { Zpi } from "zpi-sdk";

const zpi = new Zpi();

const profile = await zpi.run("social-media:instagram-scraper/profile", { username: "instagram" });

That is the whole API for most apps. Every endpoint has an id, "category:scraper/endpoint", the same string as its URL (/v1/social-media:instagram-scraper/profile). Find ids in the catalog or from the terminal:

npx zpi search instagram
npx zpi schema social-media:instagram-scraper/profile
npx zpi run social-media:instagram-scraper/profile username=instagram

Recipes

Know what a call cost
const { data, meta } = await zpi.run("finance:goldprice/spot", { currency: "IDR" }).withMeta();

meta.cache;          // "HIT" | "MISS" | …
meta.zap;            // { cost: 2, remaining: 178 }
meta.rateLimit;      // { minute: { limit, remaining }, month: { limit, remaining } }
meta.requestId;      // matches the entry in your dashboard logs

const { quota } = await zpi.usage();   // free, works even when the quota is spent
console.log(`${quota.remaining} ${quota.unit} left until ${quota.resetAt}`);
Stream
const messages = [{ role: "user", content: "Why is the sky blue?" }];

for await (const chunk of zpi.stream("ai:copilot/chat", { messages })) {
  console.log(chunk.event, chunk.data);   // SSE events, NDJSON lines or text, one shape
}

const all = await zpi.stream("ai:copilot/chat", { messages }).text();

stream() sends stream: true for you on endpoints that support it.

Run many inputs at once (bulk)
const job = await zpi.bulk.run(
  "social-media:instagram-scraper/profile",
  [{ username: "instagram" }, { username: "zapi" }],
  { onProgress: (j) => console.log(`${j.succeeded + j.failed}/${j.total}`) },
);

for (const item of job.items) console.log(item.status, item.data ?? item.error);
Upload a file

Pass a File or Blob as a param and the request goes out as multipart:

const image = new File([await readFile("photo.jpg")], "photo.jpg", { type: "image/jpeg" });
const result = await zpi.run("ai:nsfw-checker/check", { image });
Verify webhooks
import { verifyWebhook } from "zpi-sdk/webhooks";

// Next.js route handler, Hono, Bun, Deno, Workers
export async function POST(request: Request) {
  const event = await verifyWebhook(request, { secret: process.env.ZPI_WEBHOOK_SECRET! });
  if (event.event === "bulk.completed") console.log(event.data.jobId, event.data.succeeded);
  return new Response("ok");
}

On Express, read the body raw (express.raw({ type: "application/json" })) and pass { body: req.body, signature: req.headers["x-zpi-signature"] }.

Typed params
npx zpi types    # scans your code for zpi.run("…") calls and writes zpi.d.ts

After that, ids autocomplete in your editor and params are checked:

await zpi.run("social-media:instagram-scraper/profile", {});
//                                                       ~~ Property 'username' is missing

Results stay any (a scraper's response is the upstream site's shape and can change). Annotate the variable, or add result: YourType to the entry in zpi.d.ts.

Browse the catalog
const { items } = await zpi.catalog.list({ q: "instagram" });
const { endpoints } = await zpi.catalog.get("social-media:instagram-scraper");
const { fields } = await zpi.catalog.schema("social-media:instagram-scraper/profile");
for await (const scraper of zpi.catalog.all({ category: "social-media" })) console.log(scraper.slug);
MCP
import { createMcpClient } from "zpi-sdk/mcp";

const mcp = createMcpClient();
const tools = await mcp.listTools();
const out = await mcp.callTool("search_scrapers", { query: "instagram" });

Errors

Every failure is a ZpiError with a stable code, status, retryable, and the server's own message. Subclasses tell you what to do:

import { ZpiError, ZpiPlanError, ZpiRateLimitError } from "zpi-sdk";

try {
  await zpi.run("social-media:instagram-scraper/profile", { username: "instagram" });
} catch (e) {
  if (e instanceof ZpiRateLimitError && e.code === "rate_limited") await sleep(e.retryAfter! * 1000);
  else if (e instanceof ZpiPlanError) console.log(`Needs ${e.requiredPlan}: ${e.upgradeUrl}`);
  else if (e instanceof ZpiError) console.log(e.code, e.message, e.requestId);
  else throw e;
}
```…

Description from the npm listing.

  • zapi
  • zpi
  • scraper
  • scraping
  • api
  • sdk
  • typescript
  • mcp
  • webhooks

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

zpi-sdk weekly downloads on npm, last 90 days: 10,289 weekly downloads as of Dec 5, 2026, -27.5% over 90 days.zpi-sdkWeekly downloads on npm · Last 90 days10,289downloads / week-27.5% over 90 days05K10K15K20K25K30K35K40KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
zpi-sdk weekly downloads on npm, last 90 days: 10,289 weekly downloads as of Dec 5, 2026, -27.5% over 90 days.

7/30/90-day growth

zpi-sdk weekly downloads growth on npm: -32.3% over 7 days, -54.5% over 30 days, -27.5% over 90 days.zpi-sdkWeekly downloads growth on npm10,289downloads / week now7-day growth-4,903 weekly downloads-32.3%30-day growth-12,330 weekly downloads-54.5%90-day growth-3,894 weekly downloads-27.5%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
zpi-sdk weekly downloads growth on npm: -32.3% over 7 days, -54.5% over 30 days, -27.5% over 90 days.

Ranking history

zpi-sdk npm ranking history: currently #1246 (by weekly downloads).zpi-sdknpm ranking · by weekly downloads · Last 90 days#1246current rank#1050#1100#1150#1200#1250Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankDec 2, 2026 – Dec 6, 2026 · 5 observations · Updated Dec 5, 2026pluginstats.com
zpi-sdk npm ranking history: currently #1246 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 63, #6 (overall #1,246)
All npm: every listing in weekly downloads order

Listing placement

MCP servers468 listings · 24 pages · page 14, #18 (overall #278)
MCP servers: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (121)
Recent weekly downloads observations for zpi-sdk
Date (UTC)Weekly downloadsChange vs. previous
10,289-2.7K
12,946-1.9K
14,853-1.6K
16,460+1.5K
14,947-281
15,228-1.8K
17,046+1.9K
15,192+533
14,659+2K
12,704+1.3K
11,397-1.2K
12,581-2
12,583-10
12,593—

Similar npm MCP servers plugins

All 20 zpi-sdk alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/zpi-sdk. First seen Dec 2, 2026; last successful collection Dec 6, 2026. See the methodology.