URL query parse

url-query-parse · version 1.0.0 · URLs & IP addresses · free, no key needed

Parse query pairs and fragment from an absolute URL. Parse only; no fetching.

Use when you need to: url query parse · parse query string · parse url search params.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "url": "https://example.com/p?a=1&a=2&b=x+y#z"
}

Response:

{
  "result": {
    "pairs": [
      {
        "name": "a",
        "value": "1"
      },
      {
        "name": "a",
        "value": "2"
      },
      {
        "name": "b",
        "value": "x y"
      }
    ],
    "fragment": "z"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "url-query-parse",
  "version": "1.0.0",
  "input": {
    "url": "https://example.com/p?a=1&a=2&b=x+y#z"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/url-query-parse/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/p?a=1&a=2&b=x+y#z"}'

The machine-readable contract is at /v1/tools/url-query-parse/versions/1.0.0.

CLI

node cli.mjs run url-query-parse 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.