APIドキュメント

このページはホームの作成ツールと同じペイロードモデルを使い、https://qrkit.io/api/v1/qr/generateにリクエストを送信して、一連の動作を確認できます。

対応する種類

URLのフィールド

フィールド種類必須
urlurlはい

cURLの例

curl -X POST https://qrkit.io/api/v1/qr/generate \
  -H "Content-Type: application/json" \
  -d '{"type":"url","payload":{"url":"https://www.example.com"},"design":{"frame":{"enabled":false,"type":"none","text":"","fontFamily":"sans-serif","fontSize":34,"fontWeight":700,"textColor":"#ffffff","backgroundColor":"#000000","qrPadding":24,"paddingX":16,"paddingY":10,"borderRadius":12},"modules":{"shape":"square","color":"#000000","gradient":null},"background":{"color":"#ffffff","transparent":false},"finder":{"style":"square","centerStyle":"square","outerColor":"#000000","innerColor":"#000000","borderColor":"#000000"},"logo":{"enabled":false,"assetId":null,"sizePercent":20,"padding":0,"backgroundColor":"#ffffff","shape":"square","removeBackgroundBehindLogo":true},"quietZone":{"modules":2,"size":16}},"format":"svg","size":512,"errorCorrection":"M"}'

生成APIを試す

読み込み中…

対応するデザインJSONのキー

初期設定のデザイン例には、オブジェクトの全体構造が含まれています。以下の一覧で、`design`内の変更可能なキーを確認できます。

フィールド種類例指定できる値変更内容
frame.enabledbooleantrue-コードの周囲にCTAフレームを表示します。
frame.typestring"poster"banner, outline, bag, clapper, phone, clip, poster, classic, badge, orbit, noneCTAフレームのプリセットを選択します。
frame.textstring"SCAN ME"-フレーム内に表示するCTAラベルです。
frame.fontFamilystring"Space Grotesk"-CTAテキストのフォントです。
frame.fontSizenumber34-CTAテキストの大きさを設定します。
frame.fontWeightnumber800-CTAテキストの太さを設定します。
frame.backgroundColorstring"#0f172a"-フレームの塗りつぶし色です。
frame.textColorstring"#ffffff"-CTAテキストの色です。
frame.qrPaddingnumber24-QR本体とフレームの間の余白です。
frame.paddingXnumber16-CTAフレーム内の左右の余白です。
frame.paddingYnumber12-CTAフレーム内の上下の余白です。
frame.borderRadiusnumber12-フレームの角の丸みです。
フィールド種類例指定できる値変更内容
modules.shapestring"dots"square, rounded, dots, morse, diamond, organic, chainQRモジュールの形を設定します。
modules.colorstring"#111827"-モジュールの基本色です。
modules.gradientobject|null{"from":"#111827","to":"#10b981","direction":"diagonal"}-モジュールのグラデーション(任意)です。
modules.gradient.fromstring"#111827"-グラデーションの開始色です。
modules.gradient.tostring"#10b981"-グラデーションの終了色です。
modules.gradient.directionstring"diagonal"top, bottom, left, right, diagonalQRモジュールのグラデーションの方向です。
background.colorstring"#ffffff"-キャンバスの背景色です。
background.transparentbooleanfalse-背景を透明にします。
フィールド種類例指定できる値変更内容
finder.stylestring"double-border"square, rounded, circle, rounded-square, corner-top-left-sharp, corner-mix, sharp-circle-hole, square-hole, double-borderファインダーの外側の形です。
finder.centerStylestring"diamond"square, rounded, circle, rounded-square, corner-top-left-sharp, corner-mix, star, heart, diamondファインダーの中央の形です。
finder.outerColorstring"#111827"-ファインダーの外周の色です。
finder.innerColorstring"#0ea5e9"-ファインダー中央の色です。
finder.borderColorstring"#111827"-ファインダー外枠のアクセントカラーです。
quietZone.sizenumber24-QRの周囲のクワイエットゾーンの余白です。
quietZone.modulesnumber4-モジュール単位の余白設定です。
フィールド種類例指定できる値変更内容
logo.enabledbooleantrue-ロゴの表示を有効にします。
logo.assetIdstring|null"550e8400-e29b-41d4-a716-446655440000"-アップロード済みのロゴをアセットIDで指定します。
logo.sizePercentnumber18-QR本体に対するロゴのサイズです。
logo.paddingnumber6-ロゴの周囲の追加余白です。
logo.shapestring"circle"circle, squareロゴのマスク形状を選択します。
logo.backgroundColorstring"#ffffff"-ロゴの背面の背景色です。
logo.removeBackgroundBehindLogobooleantrue-ロゴの背面にあるQRモジュールを削除します。
logoDataUrlstring"data:image/png;base64,..."-ロゴを直接描画するためのPNG・JPG・SVGのデータURLです。