{"uid":"cap_QP-J1fP1IeaZrYPW_lflj","slug":"typosquat-package-check-9949a78d","name":"Typosquat Package Check","description":"Check whether an npm or PyPI package name exists and how close it is to popular packages. Flags likely typosquats before an agent installs a dependency.","url":"https://164.160.90.241.sslip.io/api/sec-npm-pypi-typosquat-checker?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Package name"},"ecosystem":{"type":"string","description":"npm | pypi"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5MGgWf2apQZukAcjSBeu-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks whether an npm or PyPI package name exists and detects if it is a likely typosquat of a popular package before installation.","exampleAgentPrompt":"Before I install it, can you check if the npm package 'loadsh' is a typosquat of something popular — I want to make sure it's not a malicious lookalike?","exampleUseCases":[{"title":"Pre-install dependency safety check","prompt":"I'm about to add 'coloers' to my Node project via npm — can you check if that's a typosquat of a popular package before I install it?"},{"title":"Automated CI pipeline package vetting","prompt":"We're building a CI step that validates every new dependency. Check whether the PyPI package 'beautifulsoup5' is a typosquat or a legitimate package distinct from 'beautifulsoup4'."},{"title":"Security audit of suspicious package name","prompt":"A colleague added 'djano' to our Python requirements.txt — can you check if that's a typosquat of 'django' and how risky it looks?"}],"resultDescription":"Returns whether the package name exists in the specified ecosystem (npm or PyPI), a similarity score or distance metric to popular packages, a list of popular packages the name closely resembles, and a flag indicating whether it is a likely typosquat — helping agents decide whether to proceed with installation.","failureModes":["Package name not provided — returns 400 or validation error","Unknown or unsupported ecosystem specified — may default or return error","Package name is valid and genuinely new — low typosquat score but not necessarily safe","Network timeout reaching the upstream package registry","Edge case: package name is an exact match for a popular package but in a different ecosystem"],"whenToPreferThis":"Use this endpoint when an AI agent or developer workflow needs to vet a package name for supply chain safety before installing a dependency from npm or PyPI. It is specifically suited for catching typosquatting attacks — where malicious actors register names that look like popular packages. Prefer this over a generic CVE lookup (which checks known vulnerabilities in existing packages) when the concern is package identity fraud rather than post-install vulnerability.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T00:41:06.785Z","isFirstParty":false,"canonicalSlug":"typosquat-package-check-9949a78d"}