This api route don't require any authentication or token and can be used anywhere

QR Code Generator

Introduction

Generate Qr code with a single api request. Easy to use with any programming language and don't required you to install any library.

Endpoint

GET
   https://api.oyyi.xyz/v1/qr

Parameters

various parameter can be pass to customize the qr code like text color , background etc.

  • text required

    Text data that need to be converted to QR code
  • size

    Size of qr code that be need to be generated. value Need to be integer
    • Example - 250
    • Default - 100
Don't pass too large for size as it will take more time to generate and can't fit in qr scanner properly
  • color

    Foreground Color for qr code passed in R,G,B pattern.
    • Example - 32,45,56 Here Above R = 32 , G = 45 , B = 56
    • Default - 0,0,0,
  • bg

    Background color for qr code , it need to be RGB format.
    • Example - 20,56,60 Here Above R = 32 , G = 45 , B = 56
    • Default - null , it means default it will be a transparent.

Example

Python
import requestsurl = $BASE_URL/qr?text=https://oyyi.xyz&color=32,45,21&bg=56,100,45&size=200response = requests.get(url)print(response.text)
Javascript
const axios = require('axios');const url = $BASE_URL/qr?text=https://oyyi.xyz&color=32,45,21&bg=56,100,45&size=200axios.get(url)  .then(response => console.log(response.data))  .catch(error => console.error(error));
Dart
import 'dart:io';import 'package:http/http.dart' as http;void main() async {   final url = Uri.parse('$BASE_URL/qr?'+text=https://oyyi.xyz&color=32,45,21&bg=56,100,45&size=200);   final response = await http.get(Uri.parse(url));}
Laravel
use Illuminate\Http\Client\Response;use Illuminate\Support\Facades\Http;$url = '$BASE_URL/qr';$response = Http::get($url."?".text=https://oyyi.xyz&color=32,45,21&bg=56,100,45&size=200);if ($response->successful()) {    $data = $response->json();} else {    $message = $response->json()['message']m;}

Response

qr response