URL Encoder/Decoder

Encode and decode URL components for safe transmission and web integration.

Endpoint

POST https://www.acrewity.com/api/services/execute

Authentication

Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

n8n Integration

This service is also available via our n8n community node: @acrewity/n8n-nodes-acrewity

Operations

Encode URL

Encode text for safe use in URLs using encodeURIComponent.

Operation ID: encode

Parameters

Parameter Type Required Default Description
text string Yes - Text to URL-encode

Note: You can also use url as an alias for the text parameter.

Example Request

Encode Query Parameter:

{
  "service": "url-encoder-decoder",
  "operation": "encode",
  "parameters": {
    "text": "Hello World! Special chars: é, ñ, 中文"
  }
}

Encode URL Path:

{
  "service": "url-encoder-decoder",
  "operation": "encode",
  "parameters": {
    "text": "user@example.com?redirect=/dashboard"
  }
}

Example Response

{
  "success": true,
  "result": {
    "data": {
      "original": "Hello World! Special chars: é, ñ, 中文",
      "encoded": "Hello%20World!%20Special%20chars%3A%20%C3%A9%2C%20%C3%B1%2C%20%E4%B8%AD%E6%96%87"
    }
  },
  "credits_used": 1
}

Decode URL

Decode URL-encoded text back to its original form using decodeURIComponent.

Operation ID: decode

Parameters

Parameter Type Required Default Description
text string Yes - URL-encoded text to decode

Note: You can also use url as an alias for the text parameter.

Example Request

Decode Query Parameter:

{
  "service": "url-encoder-decoder",
  "operation": "decode",
  "parameters": {
    "text": "Hello%20World!%20Special%20chars%3A%20%C3%A9%2C%20%C3%B1%2C%20%E4%B8%AD%E6%96%87"
  }
}

Example Response

{
  "success": true,
  "result": {
    "data": {
      "original": "Hello%20World!%20Special%20chars%3A%20%C3%A9%2C%20%C3%B1%2C%20%E4%B8%AD%E6%96%87",
      "decoded": "Hello World! Special chars: é, ñ, 中文"
    }
  },
  "credits_used": 1
}

More Examples

See Data Transformation Examples for complete workflow examples including API payload encoding and URL parameter handling.