/get-cookies

This API endpoint is designed to fetch cookies from a specified URL. When a URL is provided, the endpoint makes a request to that URL, retrieves any cookies that are set in the response, and returns the names of those cookies. This can be useful for understanding what cookies a particular site is setting when accessed.

Endpoint Information

  • Method: POST
  • Endpoint URL: https://node.nodetrigger.com/api/get-cookies
  • Content Type: application/json

Example Requests

To use this endpoint, you would send a POST request with a JSON body that includes a url parameter containing the URL you want to fetch cookies from. For example:


{
    "url": "https://example.com"
}

Notes

  • Ensure you provide a valid url in the request body; otherwise, the endpoint will return an error stating “URL is required”.
  • If the specified URL does not set any cookies, you will receive an empty list under "cookies" in the response.
  • If there is an error while trying to fetch cookies, the endpoint will respond with an error message. Make sure the URL is accessible and correct.

“`