Skip to content
Browse all functions

Build URL with UTM Parameters

data/buildurl

Adds UTM parameters (source, medium, campaign, term, content) and any other query parameters to a URL, correctly encoded. Existing parameters are kept or replaced.

Endpoint

POSThttps://api.1001fx.com/data/buildurl
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
application/json (no body)

Parameters

This function has no parameters.

Examples

Build URL with UTM Parameters

Build URL with UTM Parameters

Input

Expects a json body
{
  "url": "https://shop.example.com/products/shoes",
  "utmSource": "newsletter",
  "utmMedium": "email",
  "utmCampaign": "autumn",
  "params": {
    "color": "red"
  }
}

Output · HTTP 200

Response
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/data/buildurl' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"url":"https://shop.example.com/products/shoes","utmSource":"newsletter","utmMedium":"email","utmCampaign":"autumn","params":{"color":"red"}}'

Try buildurl now

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

Changelog

  • 1.0.001.11.2026created