{"uid":"cap_mzEr14X-bfNDxcWIoKfc_","slug":"url-resolver-rfc-3986-0cf23754","name":"URL Resolver (RFC 3986)","description":"Resolve a relative link against a base URL per RFC 3986 section 5, handling ../, ./, //host, ?query and #frag.","url":"https://url-text-tools.x402tookit.com/url-resolve?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["base","ref"],"properties":{"ref":{"type":"string","description":"The relative reference to resolve, for example ../img/a.png"},"base":{"type":"string","description":"Absolute base URL, for example the page the link was found on"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"ref":{"type":["null","string"]},"asOf":{"type":["null","string"]},"base":{"type":["null","string"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"resolved":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"referenceKind":{"type":["null","string"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_aIaBY1WTV7TYIfGysPPG_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","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 reference against an absolute base URL per RFC 3986 section 5, handling ../, ./, //host, query strings, and fragments.","exampleAgentPrompt":"Resolve the relative link ../img/banner.png against the base URL https://example.com/en/products/ and give me the full absolute URL.","exampleUseCases":[{"title":"Fixing scraped relative links","prompt":"I scraped this page https://docs.python.org/3/library/ and found a relative link ../glossary.html — can you resolve it to a full absolute URL for me?"},{"title":"Building absolute URLs for a sitemap","prompt":"I have the base URL https://www.mystore.com/blog/2024/april/ and a relative reference of ../../sale?ref=top — what's the full resolved URL?"},{"title":"Debugging a broken relative link","prompt":"My page at https://cdn.mysite.com/assets/css/themes/ has a relative path of //fonts.example.com/roboto.css — resolve that against the base URL so I know exactly where it points."}],"resultDescription":"Returns the resolved absolute URL along with the reference kind (e.g. relative, absolute, protocol-relative), a human-readable summary, any reasons or warnings, a verdict on the resolution, and an optional disclaimer. The resolved field contains the final absolute URL.","failureModes":["Missing or malformed base URL returns an error","Relative reference that is already absolute may pass through with a note","Non-HTTP/HTTPS schemes may produce unexpected results","Malformed input URLs may return a degraded result with warnings in the reasons array"],"whenToPreferThis":"Use this endpoint when you need standards-compliant RFC 3986 URL resolution — especially when handling ../ and ./ path traversal, protocol-relative //host references, or query/fragment combinations that simpler string concatenation would mishandle. Prefer this over manual string manipulation when correctness against the spec matters, such as in web scraping, sitemap generation, or link validation pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:19:19.209Z","isFirstParty":false,"canonicalSlug":"url-resolver-rfc-3986-0cf23754"}