{"uid":"cap_pLmM4ytCX8WvGEbP3zrT1","slug":"one-engine-url-host-extractor-8436c410","name":"ONE Engine URL Host Extractor","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v1/url/host?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string"}}},"responseSchema":{"type":"json","example":{"host":"example.com:8443","hostname":"example.com"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0009","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.0009/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0009","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0009","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3p0Q0qUsWRqO0Vp8f28pj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0009","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts the host and hostname components from a given HTTP/HTTPS URL string","exampleAgentPrompt":"Can you extract the host and hostname from this URL: https://example.com:8443/some/path?query=1 — I need them separated out as structured fields.","exampleUseCases":[{"title":"Normalize URLs in a web scraping pipeline","prompt":"I have a bunch of URLs like https://api.myservice.com:9000/v2/data and I need to extract just the host (with port) and the plain hostname from each one — can you parse this one for me: https://api.myservice.com:9000/v2/data?"},{"title":"Validate origin of incoming webhook","prompt":"I've got an incoming webhook from https://hooks.partner.io:443/callback/xyz — can you extract the hostname so I can check it against my allowlist?"},{"title":"Group requests by domain in agent logs","prompt":"For this log entry URL https://cdn.example.net:8080/assets/img.png, pull out the host and hostname so I can group it with other requests from the same origin."}],"resultDescription":"Returns a JSON object containing two fields: 'host' (hostname plus port if non-standard, e.g. 'example.com:8443') and 'hostname' (bare domain without port, e.g. 'example.com').","failureModes":["Missing or malformed URL input returns an error","Non-HTTP/HTTPS schemes (e.g. ftp://, file://) may not be supported","Empty string input likely returns a parsing error","Network or worker-side failures may return a 5xx response","Payment failure via x402 will block the call before execution"],"whenToPreferThis":"Choose this endpoint when you need a cheap, fast, agent-friendly way to decompose a URL into its host and hostname components without running a full URL parser locally. It is especially useful in autonomous agent pipelines where you want to offload parsing to a pay-per-call microservice on Base via x402, keeping agent code simple and stateless.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:05.999Z","isFirstParty":false,"canonicalSlug":"one-engine-url-host-extractor-8436c410"}