# PennyRail URL Extractor

> PennyRail URL Extractor is a paid API for AI agents from pennyrail.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Extracts all URLs and hyperlinks from a given text string, returning them as a structured list

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/nano/text.extract-urls--extract-links
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pennyrail-url-extractor-0c2b5b36
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I3Yr9zMqPBH2v8BPLoxoD

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 pennyrail-url-extractor-0c2b5b36 -d '<json body>'
```

Example prompt: Pull out all the URLs from this text for me: 'Check out our site at https://example.com and follow us on https://twitter.com/example for updates, or read the docs at https://docs.example.com/guide.'

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call service to extract URLs from arbitrary text strings without setting up a full HTML parser or NLP pipeline. It is ideal for quick ad-hoc link extraction in agent workflows where the input is a raw text blob rather than a fully rendered web page.

## Known failure modes

- Empty or whitespace-only input string returns an empty result or error
- Input that contains no URLs returns an empty links array
- Malformed or non-string input may return a 400 or schema validation error
- Extremely long input strings may hit payload size limits
- Payment authorization failure returns 402 if USDC balance is insufficient

## How this service works

Machine-readable settlement service

## Output

A structured object containing all URLs and hyperlinks found within the input text, typically as an array of extracted link strings parsed from the provided content

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pennyrail-url-extractor-0c2b5b36/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennyrail.vercel.app](https://www.zero.xyz/host/pennyrail.vercel.app/llms.txt)
