{"uid":"cap_YqHBwL1BjFF6cw2uTrf7i","slug":"24k-labs-url-parser-e9fc4aeb","name":"24K Labs URL Parser","description":"Break a URL into scheme, host, port, path, query params, and fragment.","url":"https://api.24klabs.ai/api/v1/url-parse","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string"}}},"responseSchema":{"type":"json","example":{"host":"a.com"}},"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__BQjSA09ZcRVZknODqG2z","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":"Parses a URL into its component parts: scheme, host, port, path, query parameters, and fragment.","exampleAgentPrompt":"Can you break down this URL for me — https://shop.example.com:8080/products/shoes?color=red&size=10#reviews — and tell me the scheme, host, port, path, query params, and fragment?","exampleUseCases":[{"title":"Extracting query params from redirect URL","prompt":"I have this redirect URL from an OAuth flow — https://myapp.com/callback?code=abc123&state=xyz&error=none — can you parse it and pull out all the query parameters for me?"},{"title":"Validating API endpoint structure","prompt":"Parse this API endpoint URL https://api.internal.acme.com:3000/v2/users/search?q=john&limit=25 and tell me the host, port, path, and every query parameter it contains."},{"title":"Debugging a broken deep link","prompt":"This deep link seems malformed — https://app.example.io/dashboard/settings#notifications — can you break it apart into scheme, host, path, and fragment so I can see what's going on?"}],"resultDescription":"Returns a structured breakdown of the provided URL, including the scheme (e.g. https), host (e.g. example.com), port (e.g. 8080 or null if default), path (e.g. /products/shoes), an object or list of query parameters (e.g. {color: 'red', size: '10'}), and the fragment identifier (e.g. reviews). Any absent component is returned as null or an empty value.","failureModes":["Malformed or non-URL string input returns a parsing error or null fields","Missing URL in request body returns a 400 bad request","Extremely long URLs may be rejected due to size limits","Relative URLs (no scheme/host) may produce partial or error results","Payment failure or insufficient USDC balance prevents call from completing"],"whenToPreferThis":"Choose this endpoint when you need a reliable, structured decomposition of a URL into all its RFC-3986 components — especially when you need query parameters returned as parsed key-value pairs rather than a raw string. Prefer it over naive string splitting or regex when correctness across edge cases (ports, encoded characters, missing components) matters. At $0.001 per call it is cost-effective for on-demand agent workflows that encounter arbitrary URLs at runtime.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:33.107Z","isFirstParty":false}