# PennyRail Text URL Extractor

> PennyRail Text 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 found within a given text string and returns them as a structured list

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/f/text.extract-urls
- 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-text-url-extractor-795653d5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Dq2MqbrKzKNqbaPIqAB5x

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-text-url-extractor-795653d5 -d '<json body>'
```

Example prompt: Pull out every URL from this block of text for me: 'Check out our blog at https://example.com/blog and our docs at https://docs.example.com, also referenced in the footnote at http://reference.org/article/42.'

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call URL extraction step within an automated pipeline — particularly when you are already working with the x402 micropayment protocol and need deterministic URL parsing from raw text at $0.001 per call. Prefer it over regex-based in-agent approaches when you want a reliable, hosted extraction primitive without maintaining your own parser.

## Known failure modes

- Empty or missing 'input' field returns a validation error
- Input text containing no URLs may return an empty result array
- Malformed JSON request body causes a 400-level error
- Very large input strings may time out or be rejected
- Non-string input types for the 'input' field may cause schema validation failure

## How this service works

Machine-readable settlement service

## Output

Returns a JSON object containing an 'operation' field (the name of the performed operation) and a 'result' field containing the extracted URLs found within the input text, likely as an array of URL strings.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "operation",
  "result"
 ],
 "properties": {
  "result": {},
  "operation": {
   "type": "string"
  }
 },
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pennyrail-text-url-extractor-795653d5/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)
