Skip to main content
Encode URI Components with Clay

Given a piece of text or a list, encode it so that it's safe to use in a URL.

Updated over 4 months ago

Introduction

This integration enables the encoding of URI components within Clay. It allows users to encode text or lists, ensuring they are safe for use in URLs. The action "Encode URI Components" takes input data and converts special characters to their percent-encoded equivalents, adhering to URL encoding standards. This functionality is particularly useful when working with dynamic URLs or query parameters in Clay workflows.

Input

Name

Is Optional

Description

Type

Item(s) to encode

Either text or a list of text items to encode.

text

Prefix

true

If included, any encoded text will be prefixed with this string. You can use this to prefix a querystring with a URL for example

text

Suffix

true

If included, any encoded text will be suffixed with this string. You can use this to suffix a querystring with an additonal property for example

text

Output

Name

Type

Encoded Results

array

Did this answer your question?