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 DELETE requests with either query parameters or a JSON body payload. This is useful for testing and debugging HTTP DELETE operations against APIs that accept such requests.

Common scenarios include:

  • Testing RESTful API endpoints that require DELETE methods.
  • Sending dynamic query parameters or JSON data in DELETE requests.
  • Debugging how an API handles different types of DELETE request payloads.

For example, you might use this node to delete a resource identified by query parameters or to send a JSON object specifying deletion criteria.

Properties

Name Meaning
Type of Data Choose 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 include in 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 the response from the HttpBin API in the json field. The structure typically reflects the HTTP response returned by HttpBin, including details about the request received (such as headers, args, data, etc.). This output helps verify what was sent and how the server processed the DELETE request.

If the response includes binary data (unlikely for HttpBin DELETE), it would be available in the binary output, but this node primarily deals with JSON responses.

Dependencies

  • Requires access to the public HttpBin API at https://httpbin.org.
  • Optionally uses an API authentication credential if configured, though not required for HttpBin.
  • No additional environment variables or special n8n configurations are necessary.

Troubleshooting

  • Issue: Incorrect or missing query parameters or JSON body keys may cause unexpected API responses.
    • Resolution: Ensure all required keys and values are correctly specified according to the target API's expectations.
  • Issue: Network errors or inability to reach https://httpbin.org.
    • Resolution: Check internet connectivity and firewall settings.
  • Error: Invalid JSON body format.
    • Resolution: Verify that JSON key-value pairs are properly formatted and that the "Type of Data" property matches the payload type.
  • Error: Unexpected HTTP status codes.
    • Resolution: Review the API documentation for expected responses and adjust request parameters accordingly.

Links and References

Discussion