# Nightshift Labs Link Check API

> Nightshift Labs Link Check API is a paid API for AI agents from nightshift-x402.nightshift-labs.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-18).

Analyzes a URL for phishing, homoglyph attacks, brand lookalikes, and other risk signals, returning a risk score and verdict

## Facts

- Endpoint: GET https://nightshift-x402.nightshift-labs.workers.dev/v1/web/link-check?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nightshift-labs-link-check-api-260e6d4d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ccCAIKDN5HoLIeI735E5U

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 nightshift-labs-link-check-api-260e6d4d
```

Example prompt: Can you check whether https://xn--pypal-4ve.com/ is safe or if it's trying to impersonate a real brand — I want to know the risk score and any phishing flags before I open it.

## When to prefer this

Use this endpoint when an AI agent needs to programmatically assess the safety of a URL before visiting, sharing, or acting on it — especially to detect homoglyph/punycode spoofing, brand impersonation, and newly registered phishing domains. It is well-suited for agentic workflows that browse the web or process user-submitted links and need a lightweight, pay-per-call safety gate without committing to a subscription-based threat intelligence service.

## Known failure modes

- Missing or invalid 'url' query parameter returns an error
- Non-HTTP/HTTPS URLs may be rejected
- Payment failure (insufficient USDC balance) causes 402 response
- Unresolvable or malformed domains may return incomplete domain age data
- Very new domains with no WHOIS data may have null domain age

## How this service works

Link / URL phishing pre-check before an agent opens, clicks or forwards a link: brand look-alikes (typosquats, homoglyphs, brand in subdomain), punycode and mixed-script hosts, credentials-in-URL tricks, high-abuse TLDs, domain age via RDAP (new domains flagged), DNS resolution and the full redirect chain. Returns a verdict, a 0-100 risk score and the flags.

## Output

A JSON object containing the original URL, the unicode hostname, a list of risk flags (e.g. PUNYCODE_IDN, MIXED_SCRIPT_HOMOGLYPHS, BRAND_LOOKALIKE), a verdict string (e.g. 'high_risk', 'low_risk'), a numeric risk score from 0–100, the domain age in days, and an array of brand lookalike matches with the matched brand and method of deception.

## 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": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "the URL to check (http/https)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://xn--pypal-4ve.com/",
  "flags": [
   "PUNYCODE_IDN",
   "MIXED_SCRIPT_HOMOGLYPHS",
   "BRAND_LOOKALIKE"
  ],
  "verdict": "high_risk",
  "riskScore": 80,
  "hostUnicode": "pаypal.com",
  "domainAgeDays": 7959,
  "brandLookalikes": [
   {
    "how": "homoglyph/look-alike characters",
    "brand": "paypal"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nightshift-labs-link-check-api-260e6d4d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nightshift-x402.nightshift-labs.workers.dev](https://www.zero.xyz/host/nightshift-x402.nightshift-labs.workers.dev/llms.txt)
