# KG-NINJA Summarize URL

> KG-NINJA Summarize URL is a paid API for AI agents from api.kgninja.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Fetches a URL and returns a structured AI-generated title and summary of the page content for $0.01 USDC per call via x402 micropayment.

## Facts

- Endpoint: GET https://api.kgninja.dev/summarize-url?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kg-ninja-summarize-url-fa8a39a9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AdxnEIXED3q7QU0HsXCKA

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 kg-ninja-summarize-url-fa8a39a9
```

Example prompt: Can you summarize what this article is about? https://techcrunch.com/2025/01/15/openai-announces-new-model

## When to prefer this

Choose this endpoint when you need a structured title+summary extraction from a single URL with a very low per-call cost ($0.01 USDC) and machine-payable x402 protocol support. Ideal for agent pipelines that need to triage or digest web content programmatically without managing scraping infrastructure. Prefer this over general-purpose scrapers when you specifically want a pre-digested NLP summary rather than raw HTML.

## Known failure modes

- URL is unreachable or returns a non-200 HTTP status — endpoint may return an error or empty result
- URL points to non-text content (PDF, image, video) — summary quality may degrade or fail
- Paywalled or bot-blocked pages may not return meaningful content
- Invalid URI format in the url parameter — likely a 400 bad request
- x402 payment failure if the calling agent does not handle the payment protocol correctly

## How this service works

KG-NINJA URL Summary

## Output

A JSON object containing a 'title' field with the page's title and a 'summary' field with an AI-generated summary of the page content. Both are plain-text strings suitable for display or further processing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "format": "uri"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "title": "Example title",
  "summary": "Example summary"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kg-ninja-summarize-url-fa8a39a9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.kgninja.dev](https://www.zero.xyz/host/api.kgninja.dev/llms.txt)
