HttpBin icon

HttpBin

Interact with HttpBin API

Actions2

Overview

This node interacts with the HttpBin API to perform HTTP DELETE requests. It allows users to send data either as query parameters or as a JSON body in the DELETE request. This is useful for testing and debugging HTTP DELETE operations, simulating API calls that require deletion of resources with optional parameters.

Common scenarios include:

  • Testing RESTful APIs that use DELETE methods with query parameters.
  • Sending JSON payloads in DELETE requests where the API expects a body.
  • Debugging how an API handles different types of input data on DELETE endpoints.

Example: Deleting a resource identified by query parameters or sending specific JSON data instructing what to delete.

Properties

Name Meaning
Type of Data Select type of data to send: Query (query parameters) or JSON (JSON body).
Query Parameters Key-value pairs sent as URL query parameters in the DELETE request (only if Type of Data = Query).
JSON Object Key-value pairs sent as JSON properties in the body of the DELETE request (only if Type of Data = JSON).

Output

The node outputs the response from the HttpBin API in the json field. This typically includes details about the received request such as headers, args (query parameters), and data (body content). The output structure reflects the HTTP response returned by HttpBin, which helps verify what was sent and received.

No binary data output is expected from this node.

Dependencies

  • Requires access to the public HttpBin API at https://httpbin.org.
  • Optionally uses an API key credential if configured, but it is not mandatory.
  • No additional environment variables are required.

Troubleshooting

  • Issue: Incorrect or missing query parameters or JSON body results in unexpected API responses.
    • Resolution: Ensure the "Type of Data" matches the format of the parameters you provide (query vs JSON).
  • 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 correctly formatted and all required fields are provided.

Links and References

Discussion