{"uid":"cap__xVox3isfwKYeDuCUPvdV","slug":"delx-url-to-host-domain-extractor-1fd825ab","name":"Delx URL to Host/Domain Extractor","description":"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.","url":"https://api.delx.ai/api/v1/x402/domain-from-url","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"URL to parse locally. Delx never fetches or validates the destination."}}},"responseSchema":{"type":"json","example":{"host":"example.com","schema":"delx/domain-from-url/v1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_oR3KEMeCA-kSCzx4w-d8W","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts the host/domain component from a given URL without fetching the destination, useful for allowlists, branding, and outbound policy checks.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Outbound policy allowlist enforcement","prompt":"I have this URL coming in from a webhook — https://payments.thirdparty.io/callback?token=abc123 — can you extract just the hostname so I can check it against our outbound allowlist before we proceed?"},{"title":"Branding domain extraction from user links","prompt":"Users are submitting URLs like https://blog.acmecorp.com/post/42 and I need to display just the brand domain on their profile — can you pull the host component from that URL without actually visiting it?"},{"title":"Security audit of embedded URLs","prompt":"I've got a list of URLs from user-submitted content and I need to extract just the domain from each one for a security review — start with https://cdn.suspicious-site.net/malware.js — what's the host?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T06:54:38.645Z","isFirstParty":false}