# parseurl: Parse URL – Get Domain, Path, Query and UTM Parameters

> parseurl (Parse URL – Get Domain, Path, Query and UTM Parameters) is a 1001fx API function in the group Data & JSON: POST https://api.1001fx.com/data/parseurl, 1 credit per call. It works as a ready-made module in Make or as a plain HTTP call.

Splits a URL into protocol, host, domain, port, path, query parameters (as object) and hash, and returns the UTM parameters (source, medium, campaign, term, content) separately.

- Group: Data & JSON
- Endpoint: `POST https://api.1001fx.com/data/parseurl`
- Authentication: header `X-API-KEY: YOURSECRETAPIKEY`
- Content type: application/json
- Credits: 1 credit per call
- Ready-made in: Make
- Docs: https://1001fx.com/functions/parseurl

## Parameters

- `url` (string, required) – URL: Absolute URL.

## Example: Parse URL – Get Domain, Path, Query and UTM Parameters

```bash
curl -X POST 'https://api.1001fx.com/data/parseurl' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"url":"https://shop.example.com/products/shoes?color=red&utm_source=newsletter&utm_medium=email&utm_campaign=autumn#reviews"}'
```
