# Delx URL to Host/Domain Extractor

> Delx URL to Host/Domain Extractor is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-16).

Extracts the host/domain component from a given URL without fetching the destination, useful for allowlists, branding, and outbound policy checks.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/domain-from-url
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-url-to-host-domain-extractor-1fd825ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__xVox3isfwKYeDuCUPvdV

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 delx-url-to-host-domain-extractor-1fd825ab -d '<json body>'
```

Example prompt: Can you pull just the host/domain out of this URL for me — https://shop.example.com/products/123?ref=newsletter — I need it for my allowlist without fetching anything.

## When to prefer this

Choose this endpoint when you need a lightweight, deterministic, no-fetch host extraction from a URL — particularly in security-sensitive pipelines where you cannot allow the URL to be fetched. Ideal for allowlist checks, branding display, outbound policy enforcement, or any workflow where you only need the host and want a guaranteed non-side-effecting parse. No API key or subscription required; pay per call at $0.001 USDC via x402 on Base.

## Known failure modes

- Malformed or non-URI input returns a structured validation error (not billed)
- Missing required 'url' field returns a validation error
- Relative URLs without a host component may fail to parse
- Payment failure or insufficient USDC balance on Base prevents the call from completing

## How this service works

Host from a URL. Use to extract the host for allowlists, branding, or outbound policy checks. Returns the host/domain component; the URL is never fetched. $0.001 USDC per successful call via x402 on Base—deterministic first-party JSON, no API key, no subscription, and nothing is billed on structured validation errors.

## Output

Returns a JSON object containing the extracted host/domain component of the provided URL. The destination URL is never fetched or validated — parsing is done locally and deterministically. Structured validation errors are not billed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "format": "uri",
   "description": "URL to parse locally. Delx never fetches or validates the destination."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "host": "example.com",
  "schema": "delx/domain-from-url/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-url-to-host-domain-extractor-1fd825ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
