{"uid":"cap_r7plPyMapVpLat0m3vgsv","slug":"query-string-parser-api-eb3ad6dc","name":"Query String Parser API","description":"Quality-scored paid utility APIs for AI agents over x402 on Base USDC.","url":"https://agent-utility-network.frosty-sound-4560.workers.dev/v1/paid/querystring-parse","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"query":{"type":"string","maxLength":32768}}},"responseSchema":{"type":"json","example":{"result":{"values":{"a":["1","2"],"b":["hello"]},"entries":[["a","1"],["a","2"],["b","hello"]]}}},"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_bL0037yl5MUxHLZf5eoWD","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 query string into structured key-value pairs, returning both a values map and ordered entries array.","exampleAgentPrompt":"Can you parse this query string for me — 'a=1&a=2&b=hello' — and give me back all the key-value pairs in a structured format?","exampleUseCases":[{"title":"Extracting parameters from a callback URL","prompt":"I just received a redirect URL with this query string: 'code=abc123&state=xyz&session_id=99' — can you parse it and give me each parameter value?"},{"title":"Handling repeated keys in form submission","prompt":"Parse this form submission query string for me: 'color=red&color=blue&color=green&size=large' — I need to see all values grouped by key."},{"title":"Debugging a malformed API request","prompt":"I have this raw query string from an API request that's behaving strangely: 'user=john&filter=active&filter=pending&page=2' — can you parse it out so I can see what parameters were sent?"}],"resultDescription":"Returns a JSON object with two fields: 'values' (a map of each parameter key to an array of its string values, supporting repeated keys) and 'entries' (an ordered array of [key, value] pairs preserving the original sequence).","failureModes":["Malformed or excessively long query string (over 32768 chars) may return an error","Payment failure via x402 if USDC balance is insufficient","Empty query string returns empty values map and entries array","Network timeout if the Cloudflare Worker is under load"],"whenToPreferThis":"Use this endpoint when you need reliable, structured parsing of URL query strings — especially when handling repeated keys (e.g. a=1&a=2) that naive string-splitting would mishandle. Prefer it over custom regex or split-based parsing when correctness and multi-value support matter. It is well-suited for AI agent workflows that process redirect URLs, form submissions, or API callback parameters programmatically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:35:14.333Z","isFirstParty":false}