URL/Slug Utilities

Remove Query Param

Strips specific query parameters from URLs while preserving the rest. Call via MCP in Cursor or Windsurf, or hit GET /v1/slug/remove-query-param with your URL and target parameter. Perfect for cleaning tracking parameters or sanitizing URLs before storage. Returns the modified URL with proper encoding maintained.

API Endpoint

GET /v1/slug/remove-query-param

Code Examples

curl "https://tinyfn.io/v1/slug/remove-query-param" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/slug/remove-query-param', {
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests

response = requests.get('https://tinyfn.io/v1/slug/remove-query-param',
    headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)

Use via MCP

Add to your AI agent

Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's url/slug tools:

{
  "mcpServers": {
    "tinyfn-slug": {
      "url": "https://tinyfn.io/mcp/slug",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

How do I remove multiple query parameters from a URL?

Make separate calls for each parameter you want to remove, or check if your MCP client supports batch operations for this tool.

What happens if I try to remove a query parameter that doesn't exist?

The original URL is returned unchanged. No error is thrown for non-existent parameters.

Does removing query params preserve URL encoding and special characters?

Yes, the tool maintains proper URL encoding for remaining parameters and handles special characters correctly.

Can AI agents use this to clean tracking parameters from scraped URLs?

Absolutely. MCP-enabled agents in tools like Cline can automatically strip utm_source, fbclid, and other tracking params during data processing.

Will this tool break fragment identifiers or URL anchors?

No, fragments (#section) and the base URL structure remain intact when query parameters are removed.

Try Remove Query Param Now

Get your free API key and start using Remove Query Param in seconds.

Get Free API Key