Fetch
This node fetches data from a URL using the Fetch API with support for custom methods, headers, query parameters, and timeouts.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| url | string | Yes | The URL to fetch. |
| method | string | No | HTTP method (GET, POST, PUT, DELETE, etc.) |
| headers | json | No | Request headers as a JSON object (optional) |
| body | any | No | Request body (for POST, PUT, etc.) - can be string, JSON object, or BlobParameter (optional) |
| query | json | No | Query parameters as a JSON object (optional) |
| timeout | number | No | Timeout in milliseconds (optional) |
Outputs
| Name | Type | Description |
|---|---|---|
| status | number | HTTP status code |
| statusText | string | HTTP status text |
| headers | json | Response headers as a JSON object |
| body | blob | Response body with MIME type from Content-Type header |
| error | string | Error message if the fetch fails |
Related Nodes in Developer Tools
JavaScript
Executes JavaScript in a sandboxed V8 isolate. Inputs are bound as `args` and console output is captured to stdout/stderr.
HTTP Request
Receives an HTTP request and returns the response synchronously.
HTTP Webhook
Receives an HTTP webhook and executes the workflow asynchronously.
Database Query
Executes a SELECT query on a database and returns the results.
Database Execute
Executes INSERT, UPDATE, or DELETE operations on a database.
Conditional Fork
Splits the workflow into two branches based on a boolean condition. The 'true' output is taken if the condition is true, 'false' if false.
Conditional Join
Joins two mutually exclusive branches ('true' and 'false') into a single flow. Emits the value from the active branch. Errors if both or neither are provided.
Send Queue Message
Sends a single message to a message queue.
Receive Queue Message
Receives and extracts the message payload from a queue.
Aggregate Items
Collects multiple values into a repeated output array
Extract Item
Extracts a single item from a repeated input at the specified index