# PennyRail URL Domain Extractor

> PennyRail URL Domain 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 the domain portion from a given URL string

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/nano/url.domain--extract-url-domain
- 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-domain-extractor-2f1160f1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_t7zbkxNZ9Mx1qhLv9XuXG

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-domain-extractor-2f1160f1 -d '<json body>'
```

Example prompt: Can you extract just the domain name from this URL: 'https://www.example.com/some/path?query=1'?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call microservice to extract the domain from a URL without running your own parsing infrastructure. Ideal for agent workflows that occasionally need URL decomposition without bundling a full URL-parsing library. At $0.001 USDC per call it is cost-effective for low-to-moderate volume spot extractions.

## Known failure modes

- Invalid or malformed URL input returns an error or empty domain
- Missing required 'input' field returns a validation error
- Non-URL string input may produce unexpected or empty results
- Network timeout or service unavailability returns a 5xx error
- Payment failure (x402) prevents request from being processed

## How this service works

Machine-readable settlement service

## Output

Returns a JSON object containing the extracted domain (hostname) parsed from the provided URL string input.

## 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-domain-extractor-2f1160f1/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)
