This is a request node tool designed for making HTTP requests (GET/POST) to APIs and viewing the responses. It is useful for API testing and development.
ComfyUI-RequestNodes is a custom node plugin for ComfyUI that provides functionality for sending HTTP requests. Currently, it includes the following nodes:
The plugin includes the following test resources:
base_flask_server.py
- Python Flask server for testingget_node.json
- GET request workflow template
post_node.json
- POST request workflow template
To install ComfyUI-RequestNodes, follow these steps:
Open the ComfyUI custom_nodes directory.
custom_nodes
folder.Clone the ComfyUI-RequestNodes repository.
custom_nodes
directory.git clone https://github.com/felixszeto/ComfyUI-RequestNodes.git
Restart ComfyUI.
After installation, you can find the "Get Node" and "Post Node" nodes under the "Request Nodes" category in the ComfyUI node list.
Get Node:
Header Node:
Key/Value Node:
Post Node:
url: Enter the URL address you want to request.
data: Enter the data for the POST request, in JSON format.
data
field, you can use placeholders like __str1__
, __str2__
, etc. in your JSON request body.str1
, str2
, etc. respectively.str1
with the value "example", and your JSON data is {"key": "__str1__"}
, the actual request body will be {"key": "example"}
.output_format: Select the output format of the response, such as "text" or "json".
response: Output response content.
Welcome to submit issues and pull requests to improve ComfyUI-RequestNodes!
Note: