# Strale Link Extractor

> Strale Link Extractor is a paid API for AI agents from api.strale.io, paid per call via x402, $0.0324/call, status unknown (last checked 2026-09-15).

Extracts all hyperlinks from a webpage with anchor text, rel attributes, and optional filtering by internal or external links

## Facts

- Endpoint: GET https://api.strale.io/x402/link-extract
- Price: $0.0324/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-8a121e86
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5y8QfpsVo8kRi8K4JEzLG

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 api-strale-io-8a121e86
```

Example prompt: Can you pull all the external links from https://example.com/blog and include the anchor text and rel attributes for each one?

## When to prefer this

Use this endpoint when you need a structured, parsed list of all hyperlinks from a specific webpage including their anchor text and rel metadata. Ideal for SEO audits, link analysis, content crawling pipelines, or verifying outbound link profiles. Prefer this over general-purpose scrapers when you specifically need link data with context rather than full page content.

## Known failure modes

- URL is unreachable or returns non-200 status — endpoint may return an error or empty results
- Page uses JavaScript-rendered links that are not present in raw HTML — dynamically loaded links may be missed
- Invalid or malformed URL input — returns validation error
- filter parameter value not in allowed set (internal/external/both) — may return error or default behavior
- Page blocks scraping via robots.txt or rate limiting — may return empty or error response

## How this service works

Extract all links from a page with context. Filter by internal/external. Returns URL, anchor text, rel attributes.

## Output

Returns a structured list of all hyperlinks found on the page, each with its URL, anchor text, rel attribute values, and whether it is internal or external to the source domain. Supports filtering to return only internal or only external links.

## Example request

```json
{
 "url": "https://example.com",
 "filter": "both"
}
```

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "URL to extract links from"
      },
      "filter": {
       "type": "string",
       "description": "internal, external, or both (default)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-8a121e86/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
