{"uid":"cap_ByNNQSlLOBM8zIATkH2p2","slug":"pennyrail-url-domain-extractor-84f9d049","name":"PennyRail URL Domain Extractor","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/url.domain--domain-from-url?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"string"}}},"responseSchema":{"type":"object","additionalProperties":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_t64w_j3pMTGW12IVN8zNF","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 domain from a given URL via a machine-readable, pay-per-call settlement endpoint","exampleAgentPrompt":"Can you extract just the domain name from this URL: https://www.example.com/some/path?query=123","exampleUseCases":[{"title":"Normalize URLs for deduplication","prompt":"I have a list of URLs from our crawl logs and I need to group them by domain — can you pull the domain out of this URL: https://shop.acme.co/products/widget-blue?ref=email"},{"title":"Identify referral traffic sources","prompt":"We're analyzing referral links and need the domain for each one — extract the domain from https://blog.techcrunch.com/2024/05/01/ai-startup-funding so I can tally sources"},{"title":"Sanitize user-submitted links","prompt":"A user just submitted this link in our form: https://www.malicious-site.net/phishing/page — can you extract the domain so I can check it against our blocklist"}],"resultDescription":"Returns a JSON object containing the extracted domain from the provided URL string, representing just the hostname or root domain portion of the input URL.","failureModes":["Malformed or non-URL input string may return an error or empty result","Missing required 'input' field causes a 400-level validation error","Ambiguous inputs (e.g. bare domain without scheme) may produce unexpected output","Service unavailability on Vercel hosting could cause 5xx errors","Payment failure or insufficient USDC balance blocks the call"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call domain extraction with no API key setup, particularly in agentic or automated pipelines using x402 micropayment rails. Prefer it when integrating with Coinbase-compatible payment flows or when you want a simple, stateless URL-to-domain transformation without standing up your own parsing logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T06:46:12.465Z","isFirstParty":false,"canonicalSlug":"pennyrail-url-domain-extractor-2f1160f1"}