# Web Navigation Structure Extractor

> Web Navigation Structure Extractor is a paid API for AI agents from api.x-402.online, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-12).

Extracts the navigation structure of a webpage, returning header, footer, and nav zones with their links and labels.

## Facts

- Endpoint: GET https://api.x-402.online/v1/web/navigation?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/web-navigation-structure-extractor-d4d9dcce
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Sg6MWV1SwIsmVHpFWgV-r

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 web-navigation-structure-extractor-d4d9dcce
```

Example prompt: Can you extract the full navigation structure of https://www.example.com — I need all the header, footer, and nav zone links with their labels?

## When to prefer this

Choose this endpoint when you need to programmatically understand the navigational skeleton of a webpage — specifically the header, footer, and nav zones — without parsing raw HTML yourself. It is ideal for site auditing, competitive analysis, automated sitemap generation, or feeding navigation context to an AI agent that needs to understand a site's structure. Prefer it over a full-page scraper when you only need navigation links and labels, not body content.

## Known failure modes

- URL is unreachable or returns a non-200 status — navigation data cannot be extracted
- Page uses JavaScript-rendered navigation that is not present in static HTML — zones may be empty or incomplete
- Page has no identifiable header, footer, or nav HTML elements — returns empty zones
- Malformed or missing URL input — request fails with validation error
- Page blocks scraping via bot detection or CAPTCHA — extraction fails

## How this service works

The navigation structure of a site as seen on a page: header, footer and nav zones with their links and labels. Body: {url}.

## Output

Returns a structured breakdown of the webpage's navigation zones (header, footer, nav bars) including all links found within each zone along with their display labels and href URLs.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "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/web-navigation-structure-extractor-d4d9dcce/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x-402.online](https://www.zero.xyz/host/api.x-402.online/llms.txt)
