0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions132

Operator → Parse URL Query Parameters

AI-generated

Overview

The node provides a utility to parse query parameters from a given URL string. It extracts the key-value pairs present in the URL's query string and outputs them as structured JSON data. This is useful when you need to programmatically access or manipulate individual query parameters from URLs within an automation workflow.

Common scenarios include:

  • Extracting user input or tracking parameters from URLs.
  • Processing URLs received from webhooks or API responses.
  • Dynamically routing or filtering data based on URL parameters.

For example, given the URL https://example.com?name=John&age=30, the node will output a JSON object with properties "name": "John" and "age": "30".

Properties

Name Meaning
URL The full URL string containing query parameters to parse. Example: https://example.com?name=John&age=30

Output

The node outputs a JSON object where each key corresponds to a query parameter name from the input URL, and each value is the associated parameter value as a string.

Example output for input URL https://example.com?name=John&age=30:

{
  "name": "John",
  "age": "30"
}

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential for authentication with the external service at https://prod.0codekit.com.
  • The node sends a POST request to the endpoint /operator/parseurlquery with the URL to be parsed in the request body.
  • No additional environment variables are needed beyond the API key credential configuration.

Troubleshooting

  • Empty or malformed URL: If the URL property is empty or not a valid URL, the node may return an error or empty output. Ensure the URL is correctly formatted and includes query parameters.
  • API authentication errors: If the API key credential is missing or invalid, the node will fail to connect to the external service. Verify that the API key is properly configured.
  • Unexpected response format: If the external service changes its response structure, parsing might fail. Check for updates or changes in the external API documentation.

Links and References

Discussion