{"uid":"cap_k0aHU3auiljeCIEjMPuDr","slug":"api-x402node-dev-3045e420","name":"URL Validator and Component Parser","description":"URL validator, URL format check, URL parser, URL syntax validation, protocol scheme detector, domain parser, query string parser, URL component extractor, RFC 3986 URI validation. Validate URL syntax and parse into components: protocol, hostname, port, pathname, search, hash. Accepts payment on Base or Solana — either network works.","url":"https://api.x402node.dev/validate/url","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","properties":{"url":{"type":"string","description":"Target URL (optional)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"url":"https://sub.example.com:8080/path/to/page?query=1#section"},"response":{"url":"https://sub.example.com:8080/path/to/page?query=1#section","hash":"#section","meta":{"source":"x402node.dev"},"port":"8080","_hint":"x402 paid endpoints for AI agents — x402node.dev (utilities) · cn402.com (Chinese culture)","valid":true,"origin":"https://sub.example.com:8080","search":"?query=1","hostname":"sub.example.com","pathname":"/path/to/page","protocol":"https","timestamp":"2026-06-18T05:14:23.910Z"}},"exampleRequest":{"url":"https://sub.example.com:8080/path/to/page?query=1#section"},"tags":["x402"],"displayCostAmount":"0.0022","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.0022/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0022","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0022","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_us597jtCfuYkZ_6601VaR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0022","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates URL syntax against RFC 3986 and parses a URL into its components: protocol, hostname, port, pathname, search, and hash.","exampleAgentPrompt":"Can you check if 'https://sub.example.com:8080/path/to/page?query=1#section' is a valid URL and break it down into its protocol, hostname, port, and pathname for me?","exampleUseCases":null,"resultDescription":"Returns a JSON object with the original URL string, a boolean 'valid' flag indicating whether the URL is syntactically correct, and parsed components: protocol (e.g. 'https:'), hostname (e.g. 'example.com'), port (e.g. '8080' or null), and pathname (e.g. '/path/to/page'). If the URL is invalid, component fields may be null.","failureModes":["Empty or missing URL input returns an error or valid:false","Malformed JSON request body causes a 400-level error","Extremely long or unusual strings may cause unexpected parsing behavior","Relative URLs (no scheme) may be flagged as invalid even if structurally reasonable","Network timeouts if the API is temporarily unavailable"],"whenToPreferThis":"Use this endpoint when you need to programmatically validate whether a user-supplied or scraped URL is well-formed before passing it downstream, or when you need to reliably extract specific URL components (hostname, port, pathname) without writing custom parsing logic. Prefer this over client-side parsing when you want a consistent, server-side RFC 3986-compliant result with minimal setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:50:30.008Z","isFirstParty":false}