# CoCo Link Preview Tool

> CoCo Link Preview Tool is a paid API for AI agents from cocoeatsai.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Fetches a URL and returns a link preview with the page title and metadata for a given web address

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/tools/link-preview?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coco-link-preview-tool-fa2b47ae
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fk763G7YU7nZfNAqDZuNE

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 coco-link-preview-tool-fa2b47ae
```

Example prompt: Can you grab a link preview for https://example.com/article — I want to know the page title and whether it's accessible?

## When to prefer this

Choose this endpoint when you need a quick, cheap ($0.001 USDC) single-URL link preview — specifically to extract the page title and confirm HTTP reachability — as part of a personal lab or AI experiment workflow on CoCo. Best for lightweight link validation and metadata extraction rather than deep content scraping or structured data extraction.

## Known failure modes

- Page not found — 404 status if the URL does not exist
- Timeout — slow or unresponsive target servers may cause delays or failures
- Blocked by target — some sites block headless/bot requests and may return 403
- Invalid URL — if the query parameter is malformed or missing, the request may fail
- Paywalled or JavaScript-rendered pages may return incomplete or empty titles

## How this service works

Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.

## Output

Returns a JSON object containing the page title (string) and HTTP status code (integer), e.g. {"title": "Example page", "status": 200}, indicating whether the page loaded successfully and what its title is.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "title"
     ],
     "properties": {
      "title": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "title": "Example page",
  "status": 200
 },
 "exampleNote": "Illustrative response subset; not a live observation."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coco-link-preview-tool-fa2b47ae/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cocoeatsai.com](https://www.zero.xyz/host/cocoeatsai.com/llms.txt)
