{"uid":"cap__HjCMfx5PzfGPRB5YqzO1","slug":"pennyrail-url-resolver-absolute-url-from-relative-259c2bc6","name":"PennyRail URL Resolver – Absolute URL from Relative","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/url.resolve--absolute-url-from-relative","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"object"}}},"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_lpjRjqMWF-FTljEpnj2B2","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":"Resolves a relative URL into an absolute URL given a base context, returning the fully-qualified absolute URL string","exampleAgentPrompt":"I have a relative URL like '../images/logo.png' and the base URL 'https://example.com/products/page.html' — can you resolve that into the full absolute URL?","exampleUseCases":[{"title":"Resolving scraped hrefs to full links","prompt":"I scraped a page at 'https://news.ycombinator.com/news' and found a relative link '/item?id=12345' — can you give me the full absolute URL for that link?"},{"title":"Normalizing relative redirects in HTTP responses","prompt":"I got a redirect Location header with the value '../auth/callback' from a server at 'https://api.myapp.com/v2/login' — what's the absolute URL I should redirect the user to?"},{"title":"Building absolute asset URLs for email templates","prompt":"My email template references a relative image path like 'assets/header.png' and my site base is 'https://marketing.mycompany.com/' — resolve that into the full URL I can embed in the email."}],"resultDescription":"Returns an object containing the resolved absolute URL derived from the provided relative URL and base context, suitable for direct use in HTTP requests, links, or further processing.","failureModes":["Malformed relative or base URL input may return an error or unexpected result","Missing required 'input' object field returns a 400-level error","Ambiguous relative paths without sufficient base context may resolve incorrectly","Network or service unavailability returns a 5xx error"],"whenToPreferThis":"Use this endpoint when you need a reliable, paid micro-service to programmatically resolve relative URLs to absolute ones — particularly in agent pipelines that scrape pages, process redirects, or generate links and need consistent URL normalization without implementing the RFC 3986 resolution algorithm yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:21:49.244Z","isFirstParty":false}