Skip to main content

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.

GET​

Inputs​

NameTypeRequiredDescription
URLtexttrueThe URL to send the request to

Outputs​

NameTypeDescription
Status CodenumberThe HTTP status code of the response
DatajsonThe 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
    }