DocsNetworkHTTP Request

Send an HTTP request (call an API) in RunMacro

RunMacro RunnerRunMacro 3.5+

The HTTP Request command sends a GET or POST to an API (with headers and body if needed), then stores the response in a variable.

Dialog & quick setup

RunMacro HTTP Request command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the HTTP Request command in RunMacro.
  1. Add a Network › HTTP Request command.
  2. Choose the method (GET/POST), enter the URL, and optional headers and body.
  3. Set the result variable.
  4. (Optional) enable regex filter and enter a pattern. Save.

Options reference

Method + URL

GET or POST and the API address. Variables allowed in the URL.

Headers + Body

Headers one per line as Key: Value; Body sent with POST. Variables allowed.

Result variable

The variable holding the response (or the regex-filtered part).

Regex filter + group

Enable to extract the needed part from the response via regex; choose the group.

Timeout (ms)

Max time to wait for a response.

Modes & when to use

RunMacro Runner

Best for

  • Fetch an OTP/data from a service API.
  • Send data to a webhook/endpoint.
  • Integrate an API call into an automation workflow.

Use an alternative when

  • Do not use it with untrusted endpoints, secrets in URLs/logs, or transactions requiring a specialized atomic client.
Before you run
  • Add HTTP Request to the macro.
  • Prepare the data or target that HTTP Request will use.

Example workflow

Example: fetch an OTP from an API then fill it

  1. HTTP Request GET to the OTP API URL.
  2. Enable regex \d{6} → variable otp.
  3. Use {otp} to fill the code field.
Expected result: After execution, HTTP Request completes the described action and makes its result available to the next step.

Tips & limitations

Combine with Extract Regex for more complex response parsing.
  • Timeout, DNS/TLS, HTTP status, and response format can fail; a response does not prove business success.

Applies to RunMacro 3.5+ · RunMacro Runner · Windows 10/11

RunMacro robot

Robots do the work. Your time is yours.

Create a robot in minutes, no coding needed. Reliable execution, remote management, transparent costs — and you always stay in control.