{"uid":"cap_-yxMsZAF29f5uuKWlxJ6s","slug":"delx-commerce-host-port-split-b0e5b1ca","name":"Delx Commerce Host-Port Split","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/host-port-split?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"host":{"type":"string","description":"Input field: host."}}},"responseSchema":{"type":"json","example":{"ok":true,"host":"api.delx.ai","port":443,"schema":"delx/util-host-port-split/v1","has_port":true}},"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__KqXOkeOc9EZ0AUvuDuka","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":"Parses a host string into its constituent hostname and port components, returning the split result with schema metadata.","exampleAgentPrompt":"Can you split the host string 'api.delx.ai:443' into just the hostname and port number for me?","exampleUseCases":[{"title":"Parse connection string for API client","prompt":"I have the host string 'backend.myservice.com:8080' — can you break it apart into just the hostname and the port number so I can configure my HTTP client?"},{"title":"Check if host includes explicit port","prompt":"Does the string 'payments.example.com:3000' have an explicit port in it, and if so, what is it?"},{"title":"Normalize server address before logging","prompt":"I need to store the host 'db.prod.internal:5432' split into its hostname and port separately — can you parse that for me?"}],"resultDescription":"Returns a JSON object with ok (boolean success flag), host (the extracted hostname without port), port (integer port number), schema identifier string, and has_port (boolean indicating whether an explicit port was present in the input).","failureModes":["Malformed or empty host string may return ok: false or unexpected parsed values","If no port is present, port may default to a standard value and has_port will be false","Network or payment failure could result in a 402 payment required error if USDC payment is not properly attached"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call utility to reliably split host strings that may or may not include port numbers, especially in agent workflows where no signup or API key management is desired and micro-payments via x402/USDC are acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T03:45:30.310Z","isFirstParty":false,"canonicalSlug":"delx-commerce-host-port-split-b0e5b1ca"}