Better HTTP Request icon

Better HTTP Request

Enhanced HTTP Request with retry-only-failed-items support

Better HTTP Request

AI-generated

Summary

Send HTTP requests with customizable method, URL, authentication, query parameters, headers, and body; handle responses with various formats including JSON, text, file, and support pagination, retries, batching, and SSL certificates.

Inputs

  • Method (required) — Select the HTTP method for the request (e.g., GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS).
  • URL (required) — Specify the target URL for the HTTP request, which must start with http:// or https://.
  • Authentication — Choose None, predefined credentials for supported services, or generic credential types such as basic, header, OAuth1, OAuth2, etc.
  • Credential Type (required) — Select the credential to use when Authentication is set to Predefined Credential Type.
  • Generic Auth Type (required) — Select the generic credential type when using Generic Credential Type authentication.
  • SSL Certificates — Optionally provide SSL certificates through node settings for secure requests.
  • Send Query Parameters — Enable to add query parameters to the request.
  • Specify Query Parameters — Choose to specify query parameters as key-value pairs or raw JSON.
  • Send Headers — Enable to add custom headers to the HTTP request.
  • Specify Headers — Choose to specify headers using key-value pairs or raw JSON.
  • Send Body — Enable to include a body in the request.
  • Body Content Type — Select the content type for the body: form-urlencoded, multipart-form-data, JSON, n8n binary file, or raw.
  • Specify Body — Choose how to specify the body content, either as fields/key-value pairs, JSON, or string depending on content type.
  • Input Data Field Name — (For binary body content) Specify the name of the incoming binary data field to send.
  • Options — Configure additional options like batching, retries, pagination, proxy, timeout, redirects, and response handling.

Output shape

a list of items with each item containing response data

Returns the HTTP response for each input item; can return the full response (headers, status) or just the body in JSON, text, or file format. Supports pagination to retrieve multiple pages, retries for failed requests, and batching to limit concurrent requests. Errors can be included in output if 'Continue On Fail' is enabled.

Examples

Example 1: Perform a GET request with query parameters and receive JSON response

Set Method to GET, URL to target endpoint, enable sendQuery and add key-value query parameters, set Response Format to JSON.

Example 2: Send a POST request with JSON body and Bearer token authentication

Set Method to POST, specify URL, enable sendBody with contentType JSON and add body fields or raw JSON, select Generic Credential Type with HTTP Bearer Auth.

Links

Discussion