# x402 URL Extractor – /scan GitHub Repo Security Scanner

> x402 URL Extractor – /scan GitHub Repo Security Scanner is a paid API for AI agents from x402-url-extractor-production.up.railway.app, paid per call via x402, $0.2/call, status unknown (last checked 2026-10-02).

Scans a public GitHub repository for malware, exfiltration patterns, and obfuscation, returning a risk summary and findings list.

## Facts

- Endpoint: GET https://x402-url-extractor-production.up.railway.app/scan?utm_source=zero.xyz
- Price: $0.2/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-url-extractor-scan-github-repo-security-scanner-86682035
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iMuOcuyiBYXP3H9l2FswU

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 x402-url-extractor-scan-github-repo-security-scanner-86682035
```

Example prompt: Can you scan the GitHub repo lodash/lodash for malware, exfiltration patterns, or obfuscated code and tell me if it's safe to use as a dependency?

## When to prefer this

Use this endpoint when you need to quickly assess whether a public GitHub repository contains malicious code, obfuscation, or data exfiltration patterns before adding it as a dependency or running its code. It is purpose-built for supply chain security checks on GitHub repos and returns a structured risk verdict, making it preferable over general-purpose code readers when the goal is security validation.

## Known failure modes

- Missing or invalid 'repo' query parameter returns an error
- Private repositories cannot be accessed and will fail
- Malformed repo identifier (not owner/name format) causes a parsing error
- Payment not included or insufficient USDC causes 402 Payment Required
- Very large repositories may time out or return partial results

## How this service works

Pay USDC (Base mainnet, x402) per call: /enrich $0.05, /extract $0.05, /read $0.05, /scan $0.20, /schemaforge $0.25. payTo 0x8904dF3DE6DFEe6a7C8cc38619d2f17806213Cee

## Output

Returns a JSON object with: ok (boolean), repo identifier, risk label (e.g. 'clean'), a plain-English summary, an array of specific findings (empty if clean), and the number of files scanned.

## 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": [
      "repo"
     ],
     "properties": {
      "repo": {
       "type": "string",
       "description": "Public GitHub repo: owner/name or https://github.com/owner/name"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "repo",
      "risk"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "repo": {
       "type": "string"
      },
      "risk": {
       "enum": [
        "clean",
        "suspicious",
        "dangerous"
       ],
       "type": "string"
      },
      "summary": {
       "type": "string"
      },
      "findings": {
       "type": "array"
      },
      "filesScanned": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "repo": "owner/name",
  "risk": "clean",
  "summary": "No known malware/exfil/obfuscation patterns found.",
  "findings": [],
  "filesScanned": 12
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-url-extractor-scan-github-repo-security-scanner-86682035/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-url-extractor-production.up.railway.app](https://www.zero.xyz/host/x402-url-extractor-production.up.railway.app/llms.txt)
