# URL parser

> Break a URL into protocol, host, port, path, fragment and a table of its query parameters, decoded. Great for reading tracking links. Free.

Free tool by Orkosi. Page: https://orkosi.com/tools/url-parser

Long links hide what they carry. Paste one to see where it goes and every parameter it sends, decoded: campaign tags, redirect targets, IDs.

1. Paste the URL.
2. Press Parse.
3. Read the parts and the table of parameters.

## Input

| Field | Type | Required | What it is |
| --- | --- | --- | --- |
| `url` | text | yes | URL. |

## Example

Input:

```json
{
  "url": "https://shop.example.com/products/desk-lamp?utm_source=newsletter&utm_campaign=spring%20sale&ref=42#reviews"
}
```

Result:

```json
{
  "normalized": "https://shop.example.com/products/desk-lamp?utm_source=newsletter&utm_campaign=spring%20sale&ref=42#reviews",
  "protocol": "https",
  "host": "shop.example.com",
  "port": "443",
  "path": "/products/desk-lamp",
  "query": "utm_source=newsletter&utm_campaign=spring%20sale&ref=42",
  "fragment": "reviews",
  "params": [
    {
      "key": "utm_source",
      "value": "newsletter"
    },
    {
      "key": "utm_campaign",
      "value": "spring sale"
    },
    {
      "key": "ref",
      "value": "42"
    }
  ]
}
```

## Run it

It needs a free Orkosi account, nothing else. No credits are used.

- **A person**: open the page, enter an e-mail once, use the tool.
- **Claude or ChatGPT**: add the Orkosi connector `https://orkosi.com/api/v1/public/mcp` and sign in, or create the free account on the sign-in page. Then call `orkosi_run_free_tool` with `{ "tool": "url-parser", "input": { … } }`.
- **Any agent or program that can make an HTTP request**:

  1. Once, create the account: `POST https://orkosi.com/api/v1/public/signup` with `{ "name": "…", "email": "…", "terms_accepted": true }` and no key. Ask the person for the e-mail and their agreement to the terms first. The answer carries `data.api_key`, shown once.
  2. Run the tool:

```bash
curl -X POST https://orkosi.com/api/v1/public/tools/url-parser/run \
  -H "Authorization: Bearer $ORKOSI_API_KEY" -H "Content-Type: application/json" \
  -d '{"input":{"url":"https://shop.example.com/products/desk-lamp?utm_source=newsletter&utm_campaign=spring%20sale&ref=42#reviews"}}'
```

The answer is `{ "data": { "tool": "…", "result": { … } } }`. A call without a key is answered 401 with the signup steps as data.

## Questions

**Does it open the link?**

No. The address is only read as text; nothing is requested from it.

**What is the fragment?**

The part after #. Browsers keep it to themselves and never send it to the server; it usually points at a section of the page.

**Why is a port shown when the URL has none?**

The default is filled in: 443 for https and 80 for http.

All free tools: https://orkosi.com/tools.md
