HTTP Request
Category: Action
Description: Fetches data from an external API or web service. It sends an HTTP GET request to the specified URL and expects a JSON response. The 'Success' path is taken if the request is successful (e.g., status code 200 OK), and the 'Error' path is taken if there's a network error or the server responds with an error code.
info
Ensure the URL points to a public resource that returns data in JSON format.
warning
The request will time out after 5 seconds.
Related Modules
GET
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| URL | text | true | The URL to send the request to |
Outputs
| Name | Type | Description |
|---|---|---|
| Status Code | number | The HTTP status code of the response |
| Data | json | The JSON data of the response |
Output Event Triggers
| Name |
|---|
| Success |
| Error |
Examples
Fetch random cat fact
Inputs
-
URL:
"https://catfact.ninja/fact"
Outputs
-
Status Code:
200 -
Data:
{"fact": "A cat can't climb head first down a tree...","length": 114}