# Metalift Site Map — Same-Origin Link Discovery

> Metalift Site Map — Same-Origin Link Discovery is a paid API for AI agents from api.metalift.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-11).

Discovers and lists all same-origin anchor links from a given page's HTML for lightweight crawl planning.

## Facts

- Endpoint: POST https://api.metalift.ai/v1/map?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/metalift-site-map-same-origin-link-discovery-3646ef7d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_D02clU34f4feZ5zyFms3k

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 metalift-site-map-same-origin-link-discovery-3646ef7d -d '<json body>'
```

Example prompt: Before scraping the whole site, can you list all the internal links found on https://example.com/blog so I know which pages to crawl next?

## When to prefer this

Use this endpoint when you need a fast, cheap inventory of internal links on a page before committing to full scrapes. Prefer it over /v1/scrape when you only need navigation structure, not page content. Prefer it over /v1/sitemap when the site lacks an XML sitemap or you want page-level link discovery rather than site-wide XML parsing.

## Known failure modes

- Invalid or unreachable URL returns an error with no links
- External-only pages return an empty link list if no same-origin anchors exist
- JavaScript-rendered navigation links may not be captured if JS rendering is not applied
- Rate limiting or WAF blocks on the target page may prevent link discovery
- Malformed URL input fails schema validation

## How this service works

Metalift site map: same-origin link discovery from one page's HTML (no full extraction). Use for lightweight crawl planning before /v1/scrape. (1 credit ≈ $0.002 USDC)

## Output

A list of same-origin anchor URLs found in the HTML of the requested page, suitable for planning subsequent scrape or crawl operations. No full page content or markdown is returned — just discovered internal links.

## 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": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "format": "uri",
       "description": "Page whose same-origin anchors to list"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "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/metalift-site-map-same-origin-link-discovery-3646ef7d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.metalift.ai](https://www.zero.xyz/host/api.metalift.ai/llms.txt)
