This API endpoint allows you to generate a QR code by providing specific text and size parameters. Upon successful request, it returns the URL of the generated QR code, which you can use in your applications or web pages.
Endpoint Information
- Method: GET
- Endpoint URL: https://node.nodetrigger.com/api/generate-qrcode
- Content Type: application/json
Example Requests
To generate a QR code, you need to make a GET request to the endpoint URL with appropriate query parameters:
https://node.nodetrigger.com/api/generate-qrcode?text=HelloWorld&size=200
Query Parameters:
- text: The text or URL you want to encode in the QR code. This parameter is required.
- size: The size of the QR code in pixels. This parameter is required.
Notes
- Make sure both ‘text’ and ‘size’ parameters are provided in your request. If any of these are missing, the request will return an error.
- The ‘size’ parameter must be a valid integer representing the desired width (in pixels) of the generated QR code.
- In case of an error during the QR code generation, an error message will be returned explaining the reason for failure.
“`