# Typosquat Package Check

> Typosquat Package Check is a paid API for AI agents from 164.160.90.241.sslip.io, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-12).

Checks whether an npm or PyPI package name exists and detects if it is a likely typosquat of a popular package before installation.

## Facts

- Endpoint: GET https://164.160.90.241.sslip.io/api/sec-npm-pypi-typosquat-checker?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/typosquat-package-check-9949a78d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QP-J1fP1IeaZrYPW_lflj

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability typosquat-package-check-9949a78d
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/typosquat-package-check-9949a78d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 164.160.90.241.sslip.io](https://www.zero.xyz/host/164.160.90.241.sslip.io/llms.txt)
