Web Request
The WebRequest node provides a streamlined and user-friendly way to perform REST API calls directly from your Unity project. This node simplifies the process of sending HTTP requests (such as GET, POST, PUT, or DELETE) and handling responses, making it an essential tool for integrating external services, fetching data, or interacting with APIs.
Inputs
URL (String) : The endpoint URL of the API you want to call. Ensure the URL is properly formatted (e.g.,
https://api.example.com/endpoint
).Method (String) : The HTTP method to use for the request (e.g.,
GET
,POST
,PUT
,DELETE
).Headers (Dictionary) : Optional headers to include in the request, such as authentication tokens or content types.
Body (String) : Optional payload to send with the request, typically used for
POST
orPUT
requests. The body can be formatted as JSON, XML, or other supported formats.
Outputs
Success (Boolean) : Indicates whether the request was successful (
true
) or failed (false
). This is useful for quickly determining if the API call completed without errors.Text (String) : The raw response received from the API, typically in JSON, XML, or plain text format. If the response is in JSON format, you can parse it into a structured object using Newtonsoft.Json , a powerful and widely-used JSON library.

Last updated