URL Functions
6 functions for URL encoding, decoding, parsing, and building.
| Function | Description | Input → Output |
|---|---|---|
| Encode Component | URL-encode text | text → output |
| Decode Component | Decode URL-encoded text | text → output |
| Encode Query | Object to query string | data (json) → output |
| Decode Query | Query string to object | query → output (json) |
| Format | Build URL from parts | protocol, host, port, path, query → url |
| Parse | Split URL into parts | url → protocol, host, port, path, query |
Example: Build API URL
Build API URL
Construct URL with query parameters
URL
Format
protocol
https
host
api.example.com
path
/v2/search
query
q=telegram&limit=10
url
API Connector
Get
URL
url
Headers
{"Authorization":"Bearer ..."}
Status Code
Body
Format
Build a complete URL from individual components.
| Input | Default | Description |
|---|---|---|
| protocol | https | URL scheme |
| host | — | Hostname |
| port | 443 | Port number (omitted for 80/443) |
| path | / | URL path |
| query | — | Query string |
Parse
Extract components from a full URL.
Example: https://api.example.com:8080/v2/users?limit=10
- protocol:
https - host:
api.example.com - port:
8080 - path:
/v2/users - query:
?limit=10