Nodes/ZMG PLUGIN/API Request Node
ComfyUI Node

API Request Node

强大的HTTP请求处理器,支持GET、POST、PUT、DELETE方法。 提供完整的错误处理和超时机制,可以处理JSON和表单数据格式。 支持自定义请求头和参数,适用于各种API调用场景。

By fq393·Created 2 years ago·Updated 7 months ago· 8
API Request Node
  • anything
  • response
  • passthrough
api_urlhttps://api.example.com/endpoint
request_methodGET
data_formatjson
request_params{}
headers{}
timeout10
CategoryZMGNodes/network

Inputs (7)

NameTypeDefaultDescription
api_urlSTRINGhttps://api.example.com/endpoint
request_methodCOMBOGET4 options: GET, POST, PUT, DELETE
data_formatCOMBOjson2 options: json, form
request_paramsSTRING{}
headersSTRING{}
timeoutINT101–300
anything*

Outputs (2)

NameTypeDescription
responseSTRING
passthrough*