{"uid":"cap_MCTFzoZHHHjvXIEzcUqT8","slug":"swift-bot-labs-url-parser-b01685e2","name":"Swift Bot Labs URL Parser","description":"62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.","url":"https://x402-toolbox.swiftbotlab.workers.dev/v1/url/parse?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","HEAD"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["url"],"properties":{"url":{"type":"string"}},"additionalProperties":false},"discoverable":{"type":"boolean"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"tool":"url-parse","result":{"host":"example.com","path":"/b/","clean":"https://example.com/b/?id=7#top","query":{"id":"7","fbclid":"abc","utm_source":"x"},"valid":true,"scheme":"https","normalized":"https://example.com/b/?fbclid=abc&id=7&utm_source=x#top","removedTracking":["utm_source","fbclid"]}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LvkyNxrM_2I9DcLFf6nB-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses, normalizes, and strips tracking parameters from a URL, returning its components (scheme, host, path, query, fragment) and a clean version.","exampleAgentPrompt":"Can you parse this URL for me and strip out all the tracking junk like utm_source and fbclid? Here it is: https://example.com/b/?id=7&fbclid=abc&utm_source=x#top","exampleUseCases":[{"title":"Clean tracking links before storage","prompt":"I'm saving links from emails into my database but they're full of UTM and fbclid parameters — can you clean this URL and give me just the normalized version without the tracking garbage? https://shop.example.com/product/42?utm_source=newsletter&utm_medium=email&fbclid=xyz123"},{"title":"Validate and decompose an incoming URL","prompt":"Before I redirect users, I need to validate this URL and break it into its scheme, host, path, and query params — can you do that for https://api.myapp.io/v2/users?role=admin&active=true"},{"title":"Extract hostname from a raw URL","prompt":"I just got this messy URL from a form submission and I need to know the host and whether it's a valid https link: https://blog.example.org/posts/2024/hello-world?ref=twitter#comments"}],"resultDescription":"A JSON object with: ok (bool), tool name ('url-parse'), and a result object containing scheme, host, path, query (as key-value pairs), fragment, a normalized URL (query params sorted), a clean URL (tracking params removed), a list of removed tracking parameter names, and a valid flag indicating whether the URL was parseable.","failureModes":["Missing or malformed 'url' query parameter returns an error response","Unparseable URL string returns valid:false in the result","Non-HTTP/HTTPS schemes may not be supported","Payment failure via x402 (insufficient USDC balance) results in 402 response before processing"],"whenToPreferThis":"Use this endpoint when you need a deterministic, pay-per-call URL parsing utility with no API key setup — especially when you want tracking parameter stripping (UTM, fbclid) and URL normalization in a single step. Prefer over manual regex parsing or full browser-based URL libraries when running in an agent pipeline that supports x402 micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:37.528Z","isFirstParty":false,"canonicalSlug":"swift-bot-labs-url-parser-b01685e2"}