{
  "x402Version": 2,
  "id": 35429,
  "slug": "35429",
  "resource": "https://agentstoolshub.com/api/v1/dev/url-parser",
  "description": "Parse a URL into all its components: protocol, hostname, port, path segments, query parameters (as a clean object), hash and credentials. Exact — no guessing by eye. Use this when an agent needs to break any URL into protocol, host, path and params.",
  "type": "http",
  "serviceName": "AgentTools",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x8a0F2b0a6C82D1c54B16E2e4DEcd18fF0802b0f6",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "analytics": {},
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "url": "https://user:pw@api.example.com:8443/v1/users?page=2&sort=name&tag=a&tag=b#results"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "result": {
              "answer": "https://api.example.com:8443/v1/users?page=2&sort=name&tag=a&tag=b#results",
              "answerLabel": "Normalized URL",
              "artifacts": {
                "params": "{\"page\":\"2\",\"sort\":\"name\",\"tag\":[\"a\",\"b\"]}",
                "segments": "[\"v1\",\"users\"]"
              },
              "details": [
                {
                  "label": "Protocol",
                  "value": "https"
                },
                {
                  "label": "Host",
                  "value": "api.example.com"
                },
                {
                  "label": "Port",
                  "value": "8443"
                },
                {
                  "label": "Credentials",
                  "value": "user:•••"
                },
                {
                  "label": "Path",
                  "value": "/v1/users"
                },
                {
                  "label": "Path segments",
                  "value": "v1 › users"
                },
                {
                  "label": "Query string",
                  "value": "?page=2&sort=name&tag=a&tag=b"
                },
                {
                  "label": "Hash",
                  "value": "#results"
                },
                {
                  "label": "Origin",
                  "value": "https://api.example.com:8443"
                }
              ],
              "steps": [
                "new URL(input)",
                "Extract components + parse query pairs (repeated keys become arrays)"
              ],
              "table": {
                "columns": [
                  "Query parameter",
                  "Value(s)"
                ],
                "rows": [
                  [
                    "page",
                    "2"
                  ],
                  [
                    "sort",
                    "name"
                  ],
                  [
                    "tag",
                    "a, b"
                  ]
                ]
              },
              "value": null
            },
            "tool": "url-parser"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "url": {
                    "description": "URL",
                    "type": "string"
                  }
                },
                "required": [
                  "url"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "dev",
    "crypto-dev",
    "analytics",
    "bazaar"
  ],
  "sourceHost": "agentstoolshub.com",
  "lastUpdated": "2026-10-11T22:49:14.072Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-11T22:49:13.912Z"
  },
  "metadata": {
    "serviceName": "AgentTools",
    "extensions": {
      "analytics": {},
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "url": "https://user:pw@api.example.com:8443/v1/users?page=2&sort=name&tag=a&tag=b#results"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "result": {
                "answer": "https://api.example.com:8443/v1/users?page=2&sort=name&tag=a&tag=b#results",
                "answerLabel": "Normalized URL",
                "artifacts": {
                  "params": "{\"page\":\"2\",\"sort\":\"name\",\"tag\":[\"a\",\"b\"]}",
                  "segments": "[\"v1\",\"users\"]"
                },
                "details": [
                  {
                    "label": "Protocol",
                    "value": "https"
                  },
                  {
                    "label": "Host",
                    "value": "api.example.com"
                  },
                  {
                    "label": "Port",
                    "value": "8443"
                  },
                  {
                    "label": "Credentials",
                    "value": "user:•••"
                  },
                  {
                    "label": "Path",
                    "value": "/v1/users"
                  },
                  {
                    "label": "Path segments",
                    "value": "v1 › users"
                  },
                  {
                    "label": "Query string",
                    "value": "?page=2&sort=name&tag=a&tag=b"
                  },
                  {
                    "label": "Hash",
                    "value": "#results"
                  },
                  {
                    "label": "Origin",
                    "value": "https://api.example.com:8443"
                  }
                ],
                "steps": [
                  "new URL(input)",
                  "Extract components + parse query pairs (repeated keys become arrays)"
                ],
                "table": {
                  "columns": [
                    "Query parameter",
                    "Value(s)"
                  ],
                  "rows": [
                    [
                      "page",
                      "2"
                    ],
                    [
                      "sort",
                      "name"
                    ],
                    [
                      "tag",
                      "a, b"
                    ]
                  ]
                },
                "value": null
              },
              "tool": "url-parser"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "url": {
                      "description": "URL",
                      "type": "string"
                    }
                  },
                  "required": [
                    "url"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "agentstoolshub.com",
    "manifest_name": "agentstoolshub.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}