# BRAINIAC BGP Route Change Analyzer

> BRAINIAC BGP Route Change Analyzer is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.04/call, status unknown (last checked 2026-11-12).

Analyzes BGP route changes between before/after snapshots to detect path changes, next-hop shifts, and routing anomalies

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/network-intelligence/bgp-route-change-analyze?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-bgp-route-change-analyzer-e0d2c25d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CbCHR92pByTIlMN8UOgTV

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 brainiac-bgp-route-change-analyzer-e0d2c25d -d '<json body>'
```

Example prompt: I have two BGP RIB snapshots — a before and after — and I want to know which prefixes changed their AS path or next-hop between them. Can you analyze these route records and flag any anomalies?

## When to prefer this

Use this endpoint when you have structured BGP route data (before/after RIB snapshots, route objects with AS paths and next-hops) and need a fast, pay-per-call analysis without setting up an account. Prefer this over manual diffing scripts when you need findings structured with codes and kinds, or when you want a reproducible audit trail of routing changes. This is not suited for real-time streaming BGP analysis or for fetching live BGP data — it only analyzes caller-supplied route records.

## Known failure modes

- Malformed or missing bgpRoutes array returns a validation error
- Exceeding maxItems limits on routes or logs causes rejection
- Timestamps in unrecognized formats may cause parsing errors
- Empty before/after route sets yield no changes detected
- Very large RIB snapshots near the size limit may time out

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

Returns a list of per-prefix route change items showing before/after AS path and next-hop, a list of findings with codes and severity kinds, counts of changed and total routes, analysis status, and metadata flags indicating whether public DNS, TLS inspection, or paid reputation APIs were used (all typically false for caller-supplied data).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "maxLength": 200000
  },
  "asOf": {
   "type": "string",
   "maxLength": 40
  },
  "file": {
   "type": "object",
   "required": [
    "fileBase64"
   ],
   "properties": {
    "role": {
     "type": "string",
     "maxLength": 80
    },
    "filename": {
     "type": "string",
     "maxLength": 180,
     "minLength": 1
    },
    "mediaType": {
     "enum": [
      "text/plain",
      "text/csv",
      "application/json",
      "application/octet-stream"
     ],
     "type": "string"
    },
    "fileBase64": {
     "type": "string",
     "maxLength": 12000000,
     "minLength": 1
    }
   },
   "additionalProperties": false
  },
  "json": {
   "type": "string",
   "maxLength": 200000
  },
  "logs": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "at": {
      "type": "string",
      "maxLength": 40
     },
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "host": {
      "type": "string",
      "maxLength": 253
     },
     "source": {
      "type": "string",
      "maxLength": 200
     },
     "message": {
      "type": "string",
      "maxLength": 4000
     },
     "facility": {
      "type": "string",
      "maxLength": 80
     },
     "severity": {
      "type": "string",
      "maxLength": 40
     },
     "sourceIp": {
      "type": "string",
      "maxLength": 80
     },
     "destinationIp": {
      "type": "string",
      "maxLength": 80
     }
    },
    "additionalProperties": false
   },
   "maxItems": 10000
  },
  "text": {
   "type": "string",
   "maxLength": 200000
  },
  "files": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "fileBase64"
    ],
    "properties": {
     "role": {
      "type": "string",
      "maxLength": 80
     },
     "filename": {
      "type": "string",
      "maxLength": 180,
      "minLength": 1
     },
     "mediaType": {
      "enum": [
       "text/plain",
       "text/csv",
       "application/json",
       "application/octet-stream"
      ],
      "type": "string"
     },
     "fileBase64": {
      "type": "string",
      "maxLength": 12000000,
      "minLength": 1
     }
    },
    "additionalProperties": false
   },
   "maxItems": 20
  },
  "configs": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "key": {
      "type": "string",
      "maxLength"
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "items": [
   {
    "key": "203_0_113_0_24_64500",
    "peer": "64500",
    "prefix": "203.0.113.0/24",
    "source": "Caller-supplied RIB; Caller-supplied RIB",
    "afterId": "B2",
    "changed": true,
    "changes": [
     "as_path",
     "next_hop"
    ],
    "beforeId": "B1",
    "afterAsPath": "64500 64502 64501",
    "afterNextHop": "198.51.100.2",
    "beforeAsPath": "64500 64501",
    "beforeNextHop": "198.51.100.1",
    "privateNetworkScanned": false
   }
  ],
  "status": "analyzed",
  "findings": [
   {
    "code": "bgp_change",
    "kind": "conflict",
    "detail": "BGP route changes: as_path, next_hop.",
    "subject": "B1"
   }
  ],
  "checkedAt": "2026-11-04T21:00:00.000Z",
  "routeCount": 1,
  "limitations": [
   "Network logs, latency/packet-loss samples, DNS answers, BGP routes, certificates, configs, reputation labels, and incidents are copied only from labeled fields supplied by the caller, or from optional key-free public DNS / public TLS port-443 inspection when explicitly requested.",
   "Private, loopback, link-local, and documentation addresses are never contacted. Private networks are not scanned.",
   "No intrusive security testing is performed and no paid reputation API is used.",
   "IP reputation uses only caller-supplied labels/observations. Missing reputation data is not invented.",
   "Infrastructure health reports aggregate only sections for which records were supplied or optionally fetched."
  ],
  "changedCount": 1,
  "apiKeyRequired": false,
  "paidProviderUsed": false,
  "publicDnsQueried": false,
  "publicTlsInspected": false,
  "paidReputationApiUsed": false,
  "privateNetworkScanned": false,
  "intrusiveScanPerformed": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-bgp-route-change-analyzer-e0d2c25d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
