{"openapi":"3.1.0","info":{"title":"QR Code Generator & Reader - Barcodes, Logo, SVG","description":"QR codes and barcodes as PNG or SVG (Wi-Fi, vCard, SEPA payment, logo, colours), each scanned back before it ships, and a reader for photos.","version":"v1"},"servers":[{"url":"https://qr-code-generator-reader-barcodes-logo-svg.p.rapidapi.com","description":"RapidAPI"}],"paths":{"/v1/qr/qrcode":{"get":{"tags":["QR Codes"],"summary":"QR code of a text or URL, as PNG or SVG","description":"A QR code image of any text or URL, ready for an `img` tag: size,\ncolours, quiet zone and error correction. Every code is scanned back\nbefore it is sent. 1 credit.","operationId":"generateQrCode","parameters":[{"name":"data","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":2000,"description":"Text or URL to encode.","examples":["https://helenis-api.com"],"title":"Data"},"description":"Text or URL to encode."},{"name":"format","in":"query","required":false,"schema":{"enum":["png","svg"],"type":"string","description":"png or svg.","default":"png","title":"Format"},"description":"png or svg."},{"name":"output","in":"query","required":false,"schema":{"enum":["image","json"],"type":"string","description":"image: the file itself. json: base64 image plus the encoded content, version and error correction.","default":"image","title":"Output"},"description":"image: the file itself. json: base64 image plus the encoded content, version and error correction."},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":2000,"minimum":32,"description":"Width and height in pixels (default 400).","examples":[400],"title":"Size"},"description":"Width and height in pixels (default 400)."},{"name":"border","in":"query","required":false,"schema":{"type":"integer","maximum":10,"minimum":0,"description":"Quiet zone, in modules.","default":4,"title":"Border"},"description":"Quiet zone, in modules."},{"name":"dark","in":"query","required":false,"schema":{"type":"string","maxLength":11,"description":"Hex colour (#RRGGBB, #RGB or #RRGGBBAA). Dark and light must contrast at least 3:1.","default":"#000000","title":"Dark"},"description":"Hex colour (#RRGGBB, #RGB or #RRGGBBAA). Dark and light must contrast at least 3:1."},{"name":"light","in":"query","required":false,"schema":{"type":"string","maxLength":11,"description":"Hex colour (#RRGGBB, #RGB or #RRGGBBAA) or transparent. Dark and light must contrast at least 3:1.","default":"#FFFFFF","title":"Light"},"description":"Hex colour (#RRGGBB, #RGB or #RRGGBBAA) or transparent. Dark and light must contrast at least 3:1."},{"name":"ecc","in":"query","required":false,"schema":{"enum":["L","M","Q","H"],"type":"string","description":"Error correction: L 7 %, M 15 % (default), Q 25 %, H 30 %.","title":"Ecc"},"description":"Error correction: L 7 %, M 15 % (default), Q 25 %, H 30 %."}],"responses":{"200":{"description":"The image (output=image, the default), or JSON with the image in base64 (output=json). Header X-Code-Verified: true.","content":{"image/png":{"schema":{"type":"string","format":"binary"}},"image/svg+xml":{"schema":{"type":"string"}},"application/json":{"schema":{"$ref":"#/components/schemas/GeneratedCode"},"examples":{"Generate QR Code":{"summary":"Generate QR Code","value":{"symbology":"qr_code","format":"png","mime_type":"image/png","content":"WIFI:T:WPA;S:Cafe Lumiere;P:croissant42;;","error_correction":"M"}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Generate QR Code"},"post":{"tags":["QR Codes"],"summary":"QR code of a Wi-Fi network, vCard, payment, event... with a logo","description":"Structured QR codes phones act on: Wi-Fi login, vCard or MeCard\ncontact, email, SMS, WhatsApp, phone call, map location, calendar event,\nSEPA payment (EPC, IBAN checked). Colours, transparent background, Micro\nQR, a logo in the centre. Scanned back before it is sent. 1 credit.","operationId":"generateCustomQrCode","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QrRequest"},"examples":{"Wi-Fi":{"summary":"Wi-Fi network","value":{"type":"wifi","wifi":{"ssid":"Cafe Lumiere","password":"croissant42"},"format":"png","size":400}},"vCard":{"summary":"Business card (vCard)","value":{"type":"vcard","contact":{"first_name":"Ada","last_name":"Lovelace","organization":"Analytical Engines Ltd","phones":[{"number":"+44 20 7946 0958","type":"work"}],"emails":["ada@example.com"],"website":"https://example.com"},"format":"svg"}},"EPC payment":{"summary":"SEPA payment (EPC / GiroCode)","value":{"type":"epc","epc":{"name":"Red Cross Belgium","iban":"BE72000000001616","bic":"BPOTBEB1","amount":25.0,"text":"Donation"},"output":"json"}},"Branded URL":{"summary":"URL in brand colours with a logo","value":{"type":"url","data":"https://helenis-api.com","dark":"#1A3D7C","light":"#FFFFFF","logo_url":"https://helenis-api.com/static/img/logos/qr.webp","size":600}}}}}},"responses":{"200":{"description":"The image (output=image, the default), or JSON with the image in base64 (output=json). Header X-Code-Verified: true.","content":{"image/png":{"schema":{"type":"string","format":"binary"}},"image/svg+xml":{"schema":{"type":"string"}},"application/json":{"schema":{"$ref":"#/components/schemas/GeneratedCode"},"examples":{"Generate Custom QR Code":{"summary":"Generate Custom QR Code","value":{"symbology":"qr_code","format":"png","mime_type":"image/png","content":"WIFI:T:WPA;S:Cafe Lumiere;P:croissant42;;","error_correction":"M"}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Generate Custom QR Code"}},"/v1/qr/barcode":{"get":{"tags":["Barcodes"],"summary":"EAN, UPC, Code 128, DataMatrix, PDF417, Aztec... as PNG or SVG","description":"A barcode image for labels, packaging, tickets and shipping: EAN-13,\nEAN-8, UPC-A, UPC-E, ISBN, ITF-14, Code 128, GS1-128, Code 39, Code 93,\nITF, Codabar, Data Matrix, GS1 DataMatrix, PDF417, Aztec. Check digits\ncomputed or verified; scanned back before it is sent. 1 credit.","operationId":"generateBarcode","parameters":[{"name":"type","in":"query","required":true,"schema":{"enum":["ean13","ean8","upca","upce","isbn","itf14","code128","gs1_128","code39","code93","itf","codabar","datamatrix","gs1_datamatrix","pdf417","aztec"],"type":"string","description":"Symbology. EAN/UPC/ISBN/ITF-14: the check digit is computed when left out, verified when given. gs1_128 and gs1_datamatrix take AIs in brackets: (01)09506000134376(17)261231.","examples":["ean13"],"title":"Type"},"description":"Symbology. EAN/UPC/ISBN/ITF-14: the check digit is computed when left out, verified when given. gs1_128 and gs1_datamatrix take AIs in brackets: (01)09506000134376(17)261231."},{"name":"data","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":2000,"description":"What to encode.","examples":["400638133393"],"title":"Data"},"description":"What to encode."},{"name":"format","in":"query","required":false,"schema":{"enum":["png","svg"],"type":"string","description":"png or svg.","default":"png","title":"Format"},"description":"png or svg."},{"name":"output","in":"query","required":false,"schema":{"enum":["image","json"],"type":"string","description":"image: the file itself. json: base64 image plus the encoded content, version and error correction.","default":"image","title":"Output"},"description":"image: the file itself. json: base64 image plus the encoded content, version and error correction."},{"name":"scale","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"description":"Pixels per module (bar width unit). Default 3 for linear barcodes, 8 for 2D codes.","examples":[3],"title":"Scale"},"description":"Pixels per module (bar width unit). Default 3 for linear barcodes, 8 for 2D codes."},{"name":"text","in":"query","required":false,"schema":{"type":"boolean","description":"Print the human-readable text under linear barcodes.","default":true,"title":"Text"},"description":"Print the human-readable text under linear barcodes."},{"name":"quiet_zone","in":"query","required":false,"schema":{"type":"boolean","description":"Keep the blank margins scanners need.","default":true,"title":"Quiet Zone"},"description":"Keep the blank margins scanners need."},{"name":"dark","in":"query","required":false,"schema":{"type":"string","maxLength":11,"description":"Hex colour (#RRGGBB, #RGB or #RRGGBBAA). Dark and light must contrast at least 3:1.","default":"#000000","title":"Dark"},"description":"Hex colour (#RRGGBB, #RGB or #RRGGBBAA). Dark and light must contrast at least 3:1."},{"name":"light","in":"query","required":false,"schema":{"type":"string","maxLength":11,"description":"Hex colour (#RRGGBB, #RGB or #RRGGBBAA) or transparent. Dark and light must contrast at least 3:1.","default":"#FFFFFF","title":"Light"},"description":"Hex colour (#RRGGBB, #RGB or #RRGGBBAA) or transparent. Dark and light must contrast at least 3:1."}],"responses":{"200":{"description":"The image (output=image, the default), or JSON with the image in base64 (output=json). Header X-Code-Verified: true.","content":{"image/png":{"schema":{"type":"string","format":"binary"}},"image/svg+xml":{"schema":{"type":"string"}},"application/json":{"schema":{"$ref":"#/components/schemas/GeneratedCode"},"examples":{"Generate Barcode":{"summary":"Generate Barcode","value":{"symbology":"qr_code","format":"png","mime_type":"image/png","content":"WIFI:T:WPA;S:Cafe Lumiere;P:croissant42;;","error_correction":"M"}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Generate Barcode"}},"/v1/qr/read":{"post":{"tags":["Reader"],"summary":"Find and decode every QR code and barcode in an image","description":"Read every QR code and barcode in an image from its URL (rotated,\ninverted, several per image): format, text, position and parsed content\n(Wi-Fi, vCard, URL, payments, GS1, EAN/UPC, ISBN). 5 credits, even when no\ncode is found.","operationId":"readCodesFromImageUrl","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadRequest"},"examples":{"Read Codes from Image URL":{"summary":"Read Codes from Image URL","value":{"url":"https://upload.wikimedia.org/wikipedia/commons/0/06/DataMatrix_code_on_a_bottle_of_milk.jpg"}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadResponse"},"examples":{"Read Codes from Image URL":{"summary":"Read Codes from Image URL (real response)","value":{"count":1,"codes":[{"format":"data_matrix","format_name":"Data Matrix","text":"(01)04607078117294(21)5fGHNL(93)H/xN","content_type":"gs1","symbology_identifier":"]d2","orientation":-8,"position":{"top_left":{"x":251,"y":205},"top_right":{"x":393,"y":184},"bottom_right":{"x":422,"y":328},"bottom_left":{"x":273,"y":350},"box":{"x":251,"y":184,"width":171,"height":166}},"parsed":{"kind":"gs1","gs1":[{"ai":"01","name":"GTIN","value":"04607078117294"},{"ai":"21","name":"Serial number","value":"5fGHNL"},{"ai":"93","name":"Company internal information","value":"H/xN"}],"product":{"gtin":"04607078117294","check_digit_valid":true,"prefix_country":"Russia","restricted":false}}}],"image":{"width":706,"height":710,"mime_type":"image/jpeg"}}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Read Codes from Image URL"}},"/v1/qr/read/upload":{"post":{"tags":["Reader"],"summary":"Decode the QR codes and barcodes of an uploaded image","description":"Same as /read, for a file sent as multipart/form-data (field `file`).","operationId":"readCodesFromUploadedImage","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_Read_Codes_from_Uploaded_Image"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadResponse"},"examples":{"Read Codes from Uploaded Image":{"summary":"Read Codes from Uploaded Image","value":{"codes":[{"format":"qr_code","format_name":"QR Code","content_type":"text","symbology_identifier":"]Q1","error_correction":"M","orientation":0,"position":{"top_left":{},"top_right":{},"bottom_right":{},"bottom_left":{},"box":{}},"parsed":{"kind":"wifi","url":{},"wifi":{"hidden":false},"contact":{},"email":{},"message":{},"geo":{},"event":{},"payment":{"scheme":"epc"},"gs1":[{"ai":"17","name":"Expiration date","value":"261231"}],"product":{"gtin":"04006381333931","restricted":false},"otp":{}}}],"image":{}}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Read Codes from Uploaded Image"}}},"components":{"schemas":{"Body_Read_Codes_from_Uploaded_Image":{"properties":{"file":{"type":"string","title":"File","description":"Image, up to 20 MB.","format":"binary"},"formats":{"type":"string","maxLength":300,"title":"Formats","description":"Only these symbologies, comma-separated (e.g. qr_code, ean_13, code_128, data_matrix). Default: all."}},"type":"object","required":["file"],"title":"Body_Read Codes from Uploaded Image"},"CalendarEvent":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"}],"title":"Start","description":"ISO 8601. With a time zone (Z or +01:00) it is converted to UTC; without one it is local time; a date alone is an all-day event."},"end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string","format":"date"},{"type":"null"}],"title":"End"},"location":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Location"},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Description"}},"type":"object","required":["title","start"],"title":"CalendarEvent","description":"A calendar event (iCalendar VEVENT)."},"CodeBox":{"properties":{"x":{"type":"integer","title":"X"},"y":{"type":"integer","title":"Y"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"}},"type":"object","required":["x","y","width","height"],"title":"CodeBox"},"CodePoint":{"properties":{"x":{"type":"integer","title":"X"},"y":{"type":"integer","title":"Y"}},"type":"object","required":["x","y"],"title":"CodePoint"},"CodePosition":{"properties":{"top_left":{"$ref":"#/components/schemas/CodePoint"},"top_right":{"$ref":"#/components/schemas/CodePoint"},"bottom_right":{"$ref":"#/components/schemas/CodePoint"},"bottom_left":{"$ref":"#/components/schemas/CodePoint"},"box":{"$ref":"#/components/schemas/CodeBox","description":"Upright bounding box, in pixels of the image."}},"type":"object","required":["top_left","top_right","bottom_right","bottom_left","box"],"title":"CodePosition"},"ContactCard":{"properties":{"first_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"First Name","examples":["Ada"]},"last_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Last Name","examples":["Lovelace"]},"organization":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Organization","examples":["Analytical Co"]},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"phones":{"items":{"$ref":"#/components/schemas/ContactPhone"},"type":"array","maxItems":5,"title":"Phones"},"emails":{"items":{"type":"string"},"type":"array","maxItems":5,"title":"Emails"},"website":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Website"},"address":{"anyOf":[{"$ref":"#/components/schemas/PostalAddress"},{"type":"null"}]},"birthday":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Birthday"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","title":"ContactCard","description":"A business card (vCard 3.0 or MeCard)."},"ContactPhone":{"properties":{"number":{"type":"string","maxLength":40,"title":"Number","examples":["+33 1 23 45 67 89"]},"type":{"type":"string","enum":["work","home","cell","fax","other"],"title":"Type","default":"work"}},"type":"object","required":["number"],"title":"ContactPhone"},"DecodedCode":{"properties":{"format":{"type":"string","title":"Format","examples":["qr_code"]},"format_name":{"type":"string","title":"Format Name","examples":["QR Code"]},"text":{"type":"string","title":"Text"},"content_type":{"type":"string","title":"Content Type","description":"text, binary, gs1, iso15434 or mixed.","examples":["text"]},"bytes_base64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bytes Base64","description":"The raw bytes, for binary content."},"symbology_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Symbology Identifier","examples":["]Q1"]},"error_correction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Correction","examples":["M"]},"orientation":{"type":"integer","title":"Orientation","description":"Rotation in degrees.","examples":[0]},"position":{"$ref":"#/components/schemas/CodePosition"},"parsed":{"$ref":"#/components/schemas/Parsed"}},"type":"object","required":["format","format_name","text","content_type","orientation","position","parsed"],"title":"DecodedCode"},"EmailDraft":{"properties":{"to":{"type":"string","maxLength":254,"title":"To","examples":["hello@example.com"]},"subject":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Subject"},"body":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Body"}},"type":"object","required":["to"],"title":"EmailDraft"},"EpcPayment":{"properties":{"name":{"type":"string","maxLength":70,"minLength":1,"title":"Name","examples":["Red Cross Belgium"]},"iban":{"type":"string","maxLength":42,"title":"Iban","description":"Checked (length and mod-97 checksum, SEPA countries).","examples":["BE72000000001616"]},"bic":{"anyOf":[{"type":"string","maxLength":11},{"type":"null"}],"title":"Bic","examples":["BPOTBEB1"]},"amount":{"anyOf":[{"type":"number","maximum":999999999.99,"minimum":0.01},{"type":"null"}],"title":"Amount","description":"In euros.","examples":[25.0]},"reference":{"anyOf":[{"type":"string","maxLength":35},{"type":"null"}],"title":"Reference","description":"Structured creditor reference (RF...). Use it or text, not both."},"text":{"anyOf":[{"type":"string","maxLength":140},{"type":"null"}],"title":"Text","examples":["Donation"]},"purpose":{"anyOf":[{"type":"string","maxLength":4},{"type":"null"}],"title":"Purpose","description":"4-letter ISO 20022 purpose code, e.g. CHAR."}},"type":"object","required":["name","iban"],"title":"EpcPayment","description":"A SEPA credit transfer (EPC QR code, 'GiroCode'), scanned by European\nbanking apps to pre-fill a payment."},"ErrorBody":{"properties":{"status":{"type":"integer","title":"Status","examples":[400]},"code":{"type":"string","title":"Code","examples":["invalid_url"]},"message":{"type":"string","title":"Message","examples":["A website URL is required."]}},"type":"object","required":["status","code","message"],"title":"ErrorBody"},"ErrorEnvelope":{"properties":{"error":{"$ref":"#/components/schemas/ErrorBody"}},"type":"object","required":["error"],"title":"ErrorEnvelope"},"GeneratedCode":{"properties":{"symbology":{"type":"string","title":"Symbology","examples":["qr_code"]},"format":{"type":"string","enum":["png","svg"],"title":"Format"},"mime_type":{"type":"string","title":"Mime Type","examples":["image/png"]},"width":{"type":"integer","title":"Width","description":"Pixels (SVG: its width attribute)."},"height":{"type":"integer","title":"Height"},"base64":{"type":"string","title":"Base64","description":"The image file, base64-encoded."},"content":{"type":"string","title":"Content","description":"The exact text encoded in the code.","examples":["WIFI:T:WPA;S:Cafe Lumiere;P:croissant42;;"]},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version","description":"QR version (1-40, or M1-M4 for Micro QR)."},"error_correction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Correction","examples":["M"]},"modules":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Modules","description":"Width of the symbol in modules, quiet zone excluded."},"check_digit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Check Digit","description":"EAN/UPC/ITF-14 check digit (computed when left out)."},"verified":{"type":"boolean","title":"Verified","description":"The image was decoded back before being returned and gave the same content (always true: otherwise the call fails)."},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","required":["symbology","format","mime_type","width","height","base64","content","verified"],"title":"GeneratedCode"},"GeoPoint":{"properties":{"latitude":{"type":"number","maximum":90.0,"minimum":-90.0,"title":"Latitude","examples":[48.8584]},"longitude":{"type":"number","maximum":180.0,"minimum":-180.0,"title":"Longitude","examples":[2.2945]},"query":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Query","description":"Place name shown by map apps."}},"type":"object","required":["latitude","longitude"],"title":"GeoPoint"},"Gs1Element":{"properties":{"ai":{"type":"string","title":"Ai","description":"GS1 Application Identifier.","examples":["17"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","examples":["Expiration date"]},"value":{"type":"string","title":"Value","examples":["261231"]},"date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date","description":"Date AIs, as a date."},"number":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Number","description":"Measures and amounts."}},"type":"object","required":["ai","value"],"title":"Gs1Element"},"ImageInfo":{"properties":{"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"},"mime_type":{"type":"string","title":"Mime Type"}},"type":"object","required":["width","height","mime_type"],"title":"ImageInfo"},"Parsed":{"properties":{"kind":{"type":"string","title":"Kind","description":"url, wifi, vcard, mecard, email, sms, phone, geo, event, epc, swiss_qr_bill, gs1, product, otp, uri or text.","examples":["wifi"]},"url":{"anyOf":[{"$ref":"#/components/schemas/ParsedUrl"},{"type":"null"}]},"wifi":{"anyOf":[{"$ref":"#/components/schemas/ParsedWifi"},{"type":"null"}]},"contact":{"anyOf":[{"$ref":"#/components/schemas/ParsedContact"},{"type":"null"}]},"email":{"anyOf":[{"$ref":"#/components/schemas/ParsedEmail"},{"type":"null"}]},"message":{"anyOf":[{"$ref":"#/components/schemas/ParsedMessage"},{"type":"null"}]},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"geo":{"anyOf":[{"$ref":"#/components/schemas/ParsedGeo"},{"type":"null"}]},"event":{"anyOf":[{"$ref":"#/components/schemas/ParsedEvent"},{"type":"null"}]},"payment":{"anyOf":[{"$ref":"#/components/schemas/ParsedPayment"},{"type":"null"}]},"gs1":{"anyOf":[{"items":{"$ref":"#/components/schemas/Gs1Element"},"type":"array"},{"type":"null"}],"title":"Gs1"},"product":{"anyOf":[{"$ref":"#/components/schemas/ParsedProduct"},{"type":"null"}]},"otp":{"anyOf":[{"$ref":"#/components/schemas/ParsedOtp"},{"type":"null"}]}},"type":"object","required":["kind"],"title":"Parsed"},"ParsedContact":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"organization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"phones":{"items":{"type":"string"},"type":"array","title":"Phones"},"emails":{"items":{"type":"string"},"type":"array","title":"Emails"},"urls":{"items":{"type":"string"},"type":"array","title":"Urls"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"birthday":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Birthday"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","title":"ParsedContact"},"ParsedEmail":{"properties":{"to":{"type":"string","title":"To"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"}},"type":"object","required":["to"],"title":"ParsedEmail"},"ParsedEvent":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start"},"end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"ParsedEvent"},"ParsedGeo":{"properties":{"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"},"query":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}},"type":"object","required":["latitude","longitude"],"title":"ParsedGeo"},"ParsedMessage":{"properties":{"number":{"type":"string","title":"Number"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["number"],"title":"ParsedMessage"},"ParsedOtp":{"properties":{"type":{"type":"string","title":"Type"},"issuer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issuer"},"account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account"},"algorithm":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Algorithm"},"digits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Digits"},"period":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Period"}},"type":"object","required":["type"],"title":"ParsedOtp","description":"otpauth:// two-factor setup (the secret is left in `text` only)."},"ParsedPayment":{"properties":{"scheme":{"type":"string","enum":["epc","swiss_qr_bill"],"title":"Scheme"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Beneficiary (creditor) name."},"iban":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Iban"},"iban_valid":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Iban Valid"},"bic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bic"},"amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose"}},"type":"object","required":["scheme"],"title":"ParsedPayment","description":"EPC (SEPA) or Swiss QR-bill payment."},"ParsedProduct":{"properties":{"gtin":{"type":"string","title":"Gtin","description":"14-digit GTIN.","examples":["04006381333931"]},"check_digit_valid":{"type":"boolean","title":"Check Digit Valid"},"prefix_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prefix Country","description":"GS1 member organisation that issued the company prefix (not the country of origin)."},"isbn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Isbn"},"issn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issn"},"upc_a":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upc A"},"restricted":{"type":"boolean","title":"Restricted","description":"In-store or restricted-circulation number.","default":false}},"type":"object","required":["gtin","check_digit_valid"],"title":"ParsedProduct","description":"EAN/UPC/ITF-14 trade item numbers."},"ParsedUrl":{"properties":{"url":{"type":"string","title":"Url"},"scheme":{"type":"string","title":"Scheme"},"host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host"}},"type":"object","required":["url","scheme"],"title":"ParsedUrl"},"ParsedWifi":{"properties":{"ssid":{"type":"string","title":"Ssid"},"security":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Security"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"hidden":{"type":"boolean","title":"Hidden","default":false}},"type":"object","required":["ssid"],"title":"ParsedWifi"},"PostalAddress":{"properties":{"street":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Street"},"city":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"City"},"region":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Region"},"postcode":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Postcode"},"country":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Country"}},"type":"object","title":"PostalAddress"},"QrRequest":{"properties":{"type":{"type":"string","enum":["text","url","wifi","vcard","mecard","email","sms","phone","whatsapp","geo","event","epc"],"title":"Type","description":"What the code holds. text and url use `data`; the other types use the object of the same name (vcard and mecard: `contact`; sms and whatsapp: `message`).","default":"text"},"data":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Data","description":"Text or URL to encode (type text or url)."},"wifi":{"anyOf":[{"$ref":"#/components/schemas/WifiNetwork"},{"type":"null"}]},"contact":{"anyOf":[{"$ref":"#/components/schemas/ContactCard"},{"type":"null"}]},"email":{"anyOf":[{"$ref":"#/components/schemas/EmailDraft"},{"type":"null"}]},"message":{"anyOf":[{"$ref":"#/components/schemas/TextMessage"},{"type":"null"}]},"phone":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Phone","description":"For type phone."},"geo":{"anyOf":[{"$ref":"#/components/schemas/GeoPoint"},{"type":"null"}]},"event":{"anyOf":[{"$ref":"#/components/schemas/CalendarEvent"},{"type":"null"}]},"epc":{"anyOf":[{"$ref":"#/components/schemas/EpcPayment"},{"type":"null"}]},"format":{"type":"string","enum":["png","svg"],"title":"Format","default":"png"},"output":{"type":"string","enum":["image","json"],"title":"Output","description":"image: the PNG or SVG file itself. json: base64 image with the encoded content, version and error correction.","default":"image"},"size":{"anyOf":[{"type":"integer","maximum":2000.0,"minimum":32.0},{"type":"null"}],"title":"Size","description":"Width and height in pixels, quiet zone included (default 400, more for long content)."},"border":{"type":"integer","maximum":10.0,"minimum":0.0,"title":"Border","description":"Quiet zone in modules.","default":4},"dark":{"type":"string","maxLength":9,"title":"Dark","description":"Hex colour, #RGB, #RRGGBB or #RRGGBBAA (alpha). Must contrast with the other colour (at least 3:1), dark darker than light.","default":"#000000"},"light":{"type":"string","maxLength":11,"title":"Light","description":"Hex colour, #RGB, #RRGGBB or #RRGGBBAA (alpha). Must contrast with the other colour (at least 3:1), dark darker than light. Or 'transparent'.","default":"#FFFFFF"},"ecc":{"anyOf":[{"type":"string","enum":["L","M","Q","H"]},{"type":"null"}],"title":"Ecc","description":"Error correction: L 7 %, M 15 % (default), Q 25 %, H 30 % (forced with a logo)."},"micro":{"type":"boolean","title":"Micro","description":"Micro QR code: smaller, for short content only.","default":false},"logo_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Logo Url","description":"Image placed in the centre (PNG, JPEG, WEBP, GIF; 5 MB max)."},"logo_size":{"type":"number","maximum":0.3,"minimum":0.1,"title":"Logo Size","description":"Logo width as a share of the code's width.","default":0.2}},"type":"object","title":"QrRequest"},"ReadRequest":{"properties":{"url":{"type":"string","maxLength":2048,"title":"Url","description":"Direct link to a photo, scan or screenshot: PNG, JPEG, WEBP, HEIC, GIF, BMP or TIFF, up to 20 MB.","examples":["https://upload.wikimedia.org/wikipedia/commons/0/06/DataMatrix_code_on_a_bottle_of_milk.jpg"]},"formats":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Formats","description":"Only these symbologies, comma-separated (e.g. qr_code, ean_13, code_128, data_matrix). Default: all."}},"type":"object","required":["url"],"title":"ReadRequest"},"ReadResponse":{"properties":{"count":{"type":"integer","title":"Count"},"codes":{"items":{"$ref":"#/components/schemas/DecodedCode"},"type":"array","title":"Codes"},"image":{"$ref":"#/components/schemas/ImageInfo"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["count","codes","image"],"title":"ReadResponse"},"TextMessage":{"properties":{"number":{"type":"string","maxLength":40,"title":"Number","examples":["+44 7700 900123"]},"message":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Message"}},"type":"object","required":["number"],"title":"TextMessage","description":"A text message (sms, whatsapp)."},"WifiNetwork":{"properties":{"ssid":{"type":"string","maxLength":64,"minLength":1,"title":"Ssid","examples":["Cafe Lumiere"]},"password":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Password","description":"Leave empty for an open network."},"security":{"type":"string","enum":["WPA","WEP","nopass"],"title":"Security","description":"WPA covers WPA, WPA2 and WPA3 personal.","default":"WPA"},"hidden":{"type":"boolean","title":"Hidden","description":"The network does not broadcast its SSID.","default":false}},"type":"object","required":["ssid"],"title":"WifiNetwork"}},"securitySchemes":{"RapidAPIKey":{"type":"apiKey","in":"header","name":"X-RapidAPI-Key"},"RapidAPIHost":{"type":"apiKey","in":"header","name":"X-RapidAPI-Host"}}},"tags":[{"name":"QR Codes","description":"QR codes of a text, URL, Wi-Fi, contact, payment or event, with colours and a logo."},{"name":"Barcodes","description":"EAN, UPC, ISBN, Code 128, GS1-128, DataMatrix, PDF417, Aztec."},{"name":"Reader","description":"Every QR code and barcode in a photo, decoded and parsed."}],"security":[{"RapidAPIKey":[],"RapidAPIHost":[]}]}