HttpBin icon

HttpBin

Interact with HttpBin API

Actions2

Overview

This n8n node allows you to interact with the HttpBin API using the HTTP GET method. It is designed for scenarios where you need to test, debug, or demonstrate HTTP requests and responses, especially focusing on sending query parameters. Common use cases include:

  • Testing how your data is sent as query parameters in a GET request.
  • Debugging webhooks or integrations by inspecting the response from HttpBin.
  • Demonstrating or learning about HTTP request structures.

Example:
You can use this node to send a GET request to https://httpbin.org/get with custom query parameters and receive a JSON response showing exactly what was received by the server.

Properties

Name Type Meaning
Type of Data Options Selects the type of data to send. For GET, only "Query" (query parameters) is available.
Query Parameters Fixed Collection Key-value pairs representing the query parameters to be included in the GET request. Each entry has a required Key and Value.

Output

The node outputs a JSON object reflecting the response from the HttpBin /get endpoint. The structure typically includes:

{
  "args": { /* Your query parameters as key-value pairs */ },
  "headers": { /* Request headers sent */ },
  "origin": "IP address",
  "url": "Full request URL"
}
  • args: Contains the query parameters you sent.
  • headers: Shows the headers included in the request.
  • origin: Your public IP address as seen by HttpBin.
  • url: The full URL including query parameters.

No binary data is output by this operation.

Dependencies

  • No authentication is required for HttpBin, but the node supports optional credentials if needed.
  • Requires internet access to reach https://httpbin.org.

Troubleshooting

Common Issues:

  • Network Errors: If n8n cannot reach httpbin.org, check your network connection or proxy settings.
  • Invalid Query Parameters: Ensure all keys and values are non-empty strings; missing required fields may cause errors.
  • Unexpected Output: If the response does not contain your expected parameters, double-check the input property configuration.

Error Messages:

  • "Request failed with status code 4xx/5xx": Indicates an issue with the request or the remote service. Check your parameters and try again.
  • "Cannot read property 'key' of undefined" or similar: Usually means a required field in the query parameters is missing.

Links and References

Discussion