CleanLinks for AI Assistants
Use the tracker-removal API inside Claude, ChatGPT, and Gemini — manual setup available now, official connectors on the way.
Claude
MCP connector — coming soonAdd the CleanLinks API as a custom tool in a Claude Project, or use the prompt template below.
Add as a Project tool
Available on Claude Pro and Team plans. Lets Claude call the API automatically — no copy-pasting needed.
- 1Open Claude.ai and create or open a Project.
- 2Go to Project settings and add a new custom tool.
- 3Set the tool URL to
https://cleanlinks.thewebdexter.com/api/cleanwith parameterurl. - 4Ask Claude: "Clean this URL: https://example.com?utm_source=google&fbclid=xxx" — it will call the tool and return the clean link.
Works in any Claude conversation
If Claude has web access or tool use enabled, it can call the API directly. Otherwise, paste the raw URL and Claude will format the API call for you to run.
Copy this prompt and replace the URL at the end:
Please clean this URL using the TWDxCleanLinks API.
Call: GET https://cleanlinks.thewebdexter.com/api/clean?url=<URL-encode the URL>
Return only the value of the "cleaned" field from the JSON response.
URL to clean: https://example.com?utm_source=google&utm_medium=cpc&fbclid=abc123
ChatGPT
Connector — coming soonBuild a Custom GPT with the CleanLinks Action today, or use the universal prompt template.
Custom GPT Action (OpenAI API / ChatGPT Plus)
Create a Custom GPT and add the CleanLinks API as an Action. ChatGPT will then call it automatically whenever you paste a URL to clean.
- 1Go to ChatGPT → Explore GPTs → Create.
- 2In the Configure tab, scroll to Actions and click Create new action.
- 3Paste the OpenAPI schema below into the schema field and click Save.
- 4Ask your GPT to clean any URL — it will call the API and return just the clean link.
OpenAPI schema — paste into the Actions schema field:
{
"openapi": "3.1.0",
"info": {
"title": "TWDxCleanLinks",
"description": "Remove tracking parameters from URLs",
"version": "1.0.0"
},
"servers": [{ "url": "https://cleanlinks.thewebdexter.com" }],
"paths": {
"/api/clean": {
"get": {
"operationId": "cleanUrl",
"summary": "Remove tracking parameters from a URL",
"parameters": [
{
"name": "url",
"in": "query",
"required": true,
"schema": { "type": "string" },
"description": "URL-encoded URL to clean"
}
],
"responses": {
"200": {
"description": "Cleaned URL result",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"cleaned": { "type": "string" },
"original": { "type": "string" },
"removed": { "type": "array", "items": { "type": "string" } },
"bytesSaved": { "type": "integer" },
"categories": { "type": "object" }
}
}
}
}
}
}
}
}
}
}
Works with ChatGPT web browsing enabled
If your ChatGPT plan includes web browsing or code interpreter, paste this prompt and replace the URL.
Please clean this URL using the TWDxCleanLinks API.
Call: GET https://cleanlinks.thewebdexter.com/api/clean?url=<URL-encode the URL>
Return only the value of the "cleaned" field from the JSON response.
URL to clean: https://example.com?utm_source=google&utm_medium=cpc&fbclid=abc123
Gemini
Prompt-basedUse the prompt template to have Gemini call the API — works with Gemini Advanced and Google Workspace plans that include web access.
Use the universal prompt template
Gemini can call external URLs when web access is enabled. Paste this prompt, replace the URL, and Gemini will return the clean link.
- 1Open Gemini Advanced or Gemini in Google Workspace.
- 2Ensure web access is on (toggle in the toolbar if available).
- 3Paste the prompt template below, replacing the example URL with the one you want to clean.
Please clean this URL using the TWDxCleanLinks API.
Call: GET https://cleanlinks.thewebdexter.com/api/clean?url=<URL-encode the URL>
Return only the value of the "cleaned" field from the JSON response.
URL to clean: https://example.com?utm_source=google&utm_medium=cpc&fbclid=abc123
Google has not yet opened a public third-party extension programme for Gemini. A connector will be submitted when one becomes available.
Universal Prompt Template
Works in any AI assistant that can make HTTP requests or has web browsing enabled.
Copy this template, replace the example URL at the end with the URL you want to clean, and paste it into any AI assistant.
Please clean this URL using the TWDxCleanLinks API.
Make a GET request to:
https://cleanlinks.thewebdexter.com/api/clean?url=<URL-encode the URL>
Return only the value of the "cleaned" field from the JSON response.
URL to clean: https://example.com?utm_source=google&utm_medium=cpc&fbclid=abc123
Some plans require web browsing or tool-use capability to make HTTP requests. If your assistant cannot reach external URLs, use the Web Cleaner instead — no account needed.
No AI assistant? Use the Web Cleaner
Paste any URL, see every tracking parameter that was removed, and copy the clean link — free, no account required.
API Quick Reference
One endpoint. No authentication. Free for personal use.
Endpoint
GET https://cleanlinks.thewebdexter.com/api/clean?url=<URL-encoded URL>
Example response
"cleaned": "https://example.com/product",
"original": "https://example.com/product?utm_source=google&fbclid=abc",
"removed": ["utm_source", "fbclid"],
"bytesSaved": 38,
"categories": { "Campaign / UTM": ["utm_source"], "Facebook": ["fbclid"] }