ComfyUI Node
API Request Node
强大的HTTP请求处理器,支持GET、POST、PUT、DELETE方法。 提供完整的错误处理和超时机制,可以处理JSON和表单数据格式。 支持自定义请求头和参数,适用于各种API调用场景。
API Request Node
- anything
- response
- passthrough
◄api_urlhttps://api.example.com/endpoint►
◄request_methodGET►
◄data_formatjson►
◄request_params{}►
◄headers{}►
◄timeout10►
CategoryZMGNodes/network
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| api_url | STRING | https://api.example.com/endpoint | — |
| request_method | COMBO | GET | 4 options: GET, POST, PUT, DELETE |
| data_format | COMBO | json | 2 options: json, form |
| request_params | STRING | {} | — |
| headers | STRING | {} | — |
| timeout | INT | 101–300 | — |
| anything | * | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| response | STRING | — |
| passthrough | * | — |