{"uid":"cap_MnHy4zp8rbL-9ICSilgli","slug":"profitcollector-url-parser-ed28195f","name":"ProfitCollector URL Parser","description":"Decision-grade security/due-diligence outcome reports ($20-$100) plus deterministic paid utilities ($0.001+) for software agents and automated workflows.","url":"https://api.bakhour.ca/url/parse","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","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["url"],"properties":{"url":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"path":"/path","port":null,"query":"q=1","scheme":"https","fragment":"","hostname":"example.com","username_present":false}},"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_nKcfg1xlh8y8H7VYfoCK_","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":"Parses a URL string into its constituent components (scheme, hostname, path, port, query, fragment, username presence)","exampleAgentPrompt":"Can you break down the URL 'https://user@example.com:8080/search?q=hello#results' into its parts — give me the scheme, hostname, port, path, query string, fragment, and whether a username is present?","exampleUseCases":[{"title":"Extracting hostname for domain validation","prompt":"I have this URL 'https://api.example.com/v2/users?active=true' — can you parse it and tell me the hostname and path separately?"},{"title":"Checking for embedded credentials in URL","prompt":"Parse this URL for me — 'ftp://admin@192.168.1.1/config' — and tell me whether a username is present and what the scheme is."},{"title":"Isolating query string for logging pipeline","prompt":"I need to extract just the query string and fragment from this URL: 'https://shop.example.com/items?category=shoes&size=10#reviews'. Can you parse it out?"}],"resultDescription":"A JSON object containing: scheme (e.g. 'https'), hostname (e.g. 'example.com'), path (e.g. '/path'), port (number or null), query (e.g. 'q=1'), fragment (e.g. ''), and username_present (boolean).","failureModes":["Missing or malformed 'url' query parameter returns an error","Non-HTTP/HTTPS URL schemes may behave unexpectedly","Payment not included or rejected results in 402 response","Relative URLs without a scheme may fail to parse correctly"],"whenToPreferThis":"Use this endpoint when you need a deterministic, paid, agent-friendly URL parser that returns structured JSON components without requiring you to run custom string parsing logic. Ideal for automated workflows needing reliable decomposition of URLs into scheme, host, path, query, and fragment fields.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:47:02.281Z","isFirstParty":false}