HttpBin icon

HttpBin

Interact with HttpBin API

Actions2

Overview

This node interacts with the HttpBin API, specifically performing HTTP DELETE requests. It allows users to send either query parameters or JSON data in the DELETE request. This is useful for testing and debugging HTTP DELETE operations by sending custom parameters or payloads to an endpoint that echoes back the request details.

Practical examples include:

  • Sending a DELETE request with specific query parameters to test how a web service handles them.
  • Sending a JSON body in a DELETE request to simulate APIs that accept payloads on DELETE methods.

Properties

Name Meaning
Type of Data Select the type of data to send with the DELETE request: "Query" (query parameters) or "JSON" (JSON body).
Query Parameters When "Type of Data" is set to "Query", specify one or more key-value pairs as query parameters to be appended to the URL.
JSON Object When "Type of Data" is set to "JSON", specify one or more key-value pairs as properties in the JSON body of the request.

Output

The node outputs JSON data representing the response from the HttpBin API. The json output field contains the full response object returned by HttpBin, which typically includes details about the request such as headers, args (query parameters), and data (body content).

No binary data output is produced by this node.

Dependencies

  • Requires access to the public HttpBin API at https://httpbin.org.
  • No mandatory authentication is required, but the node supports optional API credentials if needed.
  • No additional environment variables or n8n configurations are necessary beyond standard HTTP request capabilities.

Troubleshooting

  • Common issues:
    • Incorrectly formatted query parameters or JSON body may cause unexpected responses or errors.
    • Network connectivity problems can prevent reaching the HttpBin API.
  • Error messages:
    • HTTP errors (e.g., 4xx or 5xx status codes) indicate issues with the request or server.
    • JSON parsing errors may occur if the input data is malformed.
  • Resolutions:
    • Verify the format and correctness of query parameters or JSON keys/values.
    • Ensure network access to https://httpbin.org.
    • Use the node's output to debug the exact request sent and response received.

Links and References

Discussion