Developer's API

Introducing the newest release of our QR Code Generator API, where you can create tailored QR Codes using a variety of methods like PHP, Javascript, or HTML or simply by accessing a raw URL in your browser. Although the majority lean towards the classic black and white codes for a more conventional feel, our API allows you to pick your own design and colours to match your unique requirements.

 

Get an API Key

Contact us at support @ DynamicQRCodes.co.uk to obtain an API key.

 

HTTP Method

GET

 

Request URL

https://DynamicQRCodes.co.uk/api/qrCode

 

Mandatory Parameters

1. The API Key required for access:

API_KEY=<value>

2. the data to encode within the QR Code:

qrData=<QR Code Data>

 

Optional Parameters

1. Output format, default is PNG:

outputType=svg

2. Foreground colour, default is white:

fgCol=#FFFFFF

3. Background colour, default is black:

bgCol=#000000

4. Size, in pixels:

size=300

5. Padding, in pixels for PNG or elements for SVG:

padding=5

6. Element shape, default is square:

shape=round

 

Example Requests

To begin, simply initiate a GET request to the specified endpoint, incorporating URL-encoded text as shown in the following example:

https://DynamicQRCodes.co.uk/api/qrCode?key=YOUR-API-KEY&text=DynamicQRCodes.co.uk

Default QR Code with no customisations

https://www.DynamicQRCodes.co.uk/api.php?
API_KEY=myApiKey
&qrData=www.DynamicQRCodes.co.uk

QR Code with round elements

https://www.DynamicQRCodes.co.uk/api.php?
API_KEY=myApiKey
&qrData=www.DynamicQRCodes.co.uk
&shape=round

QR Code with foreground and background colours set

https://www.DynamicQRCodes.co.uk/api.php?
API_KEY=myApiKey
&qrData=www.DynamicQRCodes.co.uk
&fgCol=4c6fe5&bgCol=eeeeee