Skip to content
Browse all functions

Parse URL – Get Domain, Path, Query and UTM Parameters

data/parseurl

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.

1 credit per callHTTP APIMake

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.

Endpoint

POSThttps://api.1001fx.com/data/parseurl
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
application/json

Parameters

  • urlstringrequired

    Absolute URL.

    Example:
    https://shop.example.com/products/shoes?color=red&utm_source=newsletter&utm_medium=email&utm_campaign=autumn#reviews

Examples

Parse URL – Get Domain, Path, Query and UTM Parameters

Parse URL – Get Domain, Path, Query and UTM Parameters

Input

Expects a json body
{
  "url": "https://shop.example.com/products/shoes?color=red&utm_source=newsletter&utm_medium=email&utm_campaign=autumn#reviews"
}

Output · HTTP 200

Response
{
  "statusCode": 200
}
Show curl command
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"}'

Try parseurl now

Run it in your browser or create a free account and get 100 credits every month.

Changelog

  • 1.0.001.11.2026created