{"uid":"cap_4dZ-lFcJQSSAv01NE6uw2","slug":"url-reference-resolver-rfc-3986-6cd1b378","name":"URL Reference Resolver (RFC 3986)","description":"Resolve a relative or absolute reference against a base URL, following RFC 3986 reference resolution (e.g. base 'https://a.com/x/y' + ref '../z' → 'https://a.com/z'). The base must itself be a valid absolute URL, else a clean 400.","url":"https://url.openverbs.com/v1/resolve","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["base","ref"],"properties":{"ref":{"type":"string","maxLength":8192,"description":"The reference to resolve against the base."},"base":{"type":"string","maxLength":8192,"minLength":1,"description":"The absolute base URL."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LsoFPnDlARkIHZTQoshsd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resolves a relative or absolute URL reference against an absolute base URL following RFC 3986 semantics","exampleAgentPrompt":"I found the relative link '../images/photo.jpg' on the page 'https://example.com/blog/post/index.html' — can you resolve that to its full absolute URL?","exampleUseCases":[{"title":"Resolving scraped relative hrefs","prompt":"I scraped a bunch of anchor tags from 'https://docs.example.com/api/v2/' and they have relative hrefs like '../guides/quickstart'. Can you resolve each one against that base URL to get the full absolute links?"},{"title":"Building absolute URLs in a sitemap generator","prompt":"I'm generating a sitemap and I have a base of 'https://mysite.com/en/' and a bunch of relative paths like './about', '../contact', and '//cdn.mysite.com/logo.png'. Please resolve each one to an absolute URL."},{"title":"Debugging link navigation logic","prompt":"If I'm on 'https://api.example.com/v1/users/profile' and there's a redirect to '../../auth/login', what absolute URL does that resolve to?"}],"resultDescription":"Returns the fully resolved absolute URL string computed by applying RFC 3986 reference resolution rules to the given base and reference. If the base is not a valid absolute URL, the endpoint returns a 400 error with a descriptive message.","failureModes":["400 error if base is not a valid absolute URL","400 error if inputs are malformed or missing required fields","Malformed or oversized ref/base strings (exceeding 8192 characters) may be rejected","Network timeout or 5xx if the service is temporarily unavailable"],"whenToPreferThis":"Choose this endpoint when you need standards-compliant RFC 3986 reference resolution — especially for dot-segment paths like '../' or './', protocol-relative references like '//cdn.example.com/img.png', or any case where browser-like WHATWG URL resolution semantics are needed. It is ideal when building web crawlers, link extractors, sitemap generators, or redirect-chain resolvers that must correctly compute absolute URLs from relative hrefs found in HTML or HTTP headers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:30:28.054Z","isFirstParty":false}