QR codes

GET https://9qrcode.com/api/qr-codes/
curl --request GET \
--url 'https://9qrcode.com/api/qr-codes/' \
--header 'Authorization: Bearer {api_key}' \
參數 細節 描述
page 選擇性 整數 您想要結果的頁碼。預設為1
results_per_page 選擇性 整數 您想要每頁顯示多少個結果。允許的值為:10 , 25 , 50 , 100 , 250 , 500 , 1000。默認為25
{ "data": [ { "id": 1, "type": "url", "name": "Example name", "qr_code": "https://9qrcode.com/uploads/qr_code/example.svg", "qr_code_logo": null, "qr_code_background": null, "settings": { "foreground_type": "color", "foreground_color": "#000000", "background_color": "#ffffff", "custom_eyes_color": false, "qr_code_logo_size": 25, "size": 500, "margin": 0, "ecc": "L", "url": "https://example.com" ... }, "embedded_data": "https://example.com", "last_datetime": null, "datetime": "2025-04-11 01:08:56" }, ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://9qrcode.com/api/qr-codes?&page=1", "last": "https://9qrcode.com/api/qr-codes?&page=1", "next": null, "prev": null, "self": "https://9qrcode.com/api/qr-codes?&page=1" } }
GET https://9qrcode.com/api/qr-codes/{qr_code_id}
curl --request GET \
--url 'https://9qrcode.com/api/qr-codes/{qr_code_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "type": "url", "name": "Example name", "qr_code": "https://9qrcode.com/uploads/qr_code/example.svg", "qr_code_logo": null, "qr_code_background": null, "settings": { "foreground_type": "color", "foreground_color": "#000000", "background_color": "#ffffff", "custom_eyes_color": false, "qr_code_logo_size": 25, "size": 500, "margin": 0, "ecc": "L", "url": "https://example.com" ... }, "embedded_data": "https://example.com", "last_datetime": null, "datetime": "2025-04-11 01:08:56" } }
POST https://9qrcode.com/api/qr-codes
參數 細節 描述
link_id 選擇性 整數 -
project_id 選擇性 整數 -
name 必要 字串 -
type 必要 字串 允許的值:text, url, phone, sms, email, whatsapp, facetime, location, wifi, event, vcard, crypto, paypal, upi, epc, pix
is_bulk 選擇性 布林值 Available when: type = text
style 選擇性 字串 允許的值:square, dot, round, diamond, heart
inner_eye_style 選擇性 字串 允許的值:square, dot, rounded, diamond, flower, leaf
outer_eye_style 選擇性 字串 允許的值:square, circle, rounded, flower, leaf
foreground_type 選擇性 字串 允許的值:color, gradient
foreground_color 選擇性 字串 Available when: foreground_type = color
foreground_gradient_style 選擇性 字串 允許的值:vertical, horizontal, diagonal, inverse_diagonal, radial
foreground_gradient_one 選擇性 字串 Available when: foreground_type = gradient
foreground_gradient_two 選擇性 字串 Available when: foreground_type = gradient
background_color 選擇性 字串
background_color_transparency 選擇性 整數
custom_eyes_color 選擇性 布林值
eyes_inner_color 選擇性 字串 Available when: custom_eyes_color = 1
eyes_outer_color 選擇性 字串 Available when: custom_eyes_color = 1
qr_code_logo 選擇性 檔案 -
qr_code_logo_size 選擇性 整數 5-35
qr_code_background 選擇性 檔案 -
qr_code_background_transparency 選擇性 整數 0-100
qr_code_foreground 選擇性 檔案 -
qr_code_foreground_transparency 選擇性 整數 0-100
frame 選擇性 字串 允許的值:round_bottom_text, round_top_text, tooltip_bottom_text, tooltip_top_text, ribbon_bottom_text, ribbon_top_text, tooltip_snap_top_text, tooltip_snap_bottom_text
frame_text 選擇性 字串
frame_text_size 選擇性 整數 -5 - 5
frame_text_font 選擇性 字串 允許的值:times_new_roman, georgia, courier, arial, helvetica, verdana, tahoma, trebuchet_ms, courier_new, monaco, comic_sans_ms, impact, luminari, baskerville, papyrus, brush_script_mt
frame_custom_colors 選擇性 布林值
frame_color 選擇性 字串 Available when: frame_custom_colors = 1
frame_text_color 選擇性 字串 Available when: frame_custom_colors = 1
size 選擇性 整數 50-2000
margin 選擇性 整數 0-25
ecc 選擇性 字串 允許的值:L, M, Q, H
text 選擇性 字串 Available when: type = text
url 選擇性 字串 Available when: type = url
phone 選擇性 字串 Available when: type = phone
sms 選擇性 字串 Available when: type = sms
sms_body 選擇性 字串 Available when: type = sms
email 選擇性 字串 Available when: type = email
whatsapp 選擇性 字串 Available when: type = whatsapp
whatsapp_body 選擇性 字串 Available when: type = whatsapp
facetime 選擇性 字串 Available when: type = facetime
location
location_latitude 選擇性 浮動 Available when: type = location
location_longitude 選擇性 浮動 Available when: type = location
wifi
wifi_ssid 選擇性 字串 Available when: type = wifi
wifi_encryption 選擇性 字串 允許的值:nopass, WEP, WPA/WPA2, H (type=wifi)
wifi_password 選擇性 字串 Available when: type = wifi
wifi_is_hidden 選擇性 布林值 Available when: type = wifi
event 選擇性 字串 Available when: type = event
event_location 選擇性 字串 Available when: type = event
event_url 選擇性 字串 Available when: type = event
event_note 選擇性 字串 Available when: type = event
event_timezone 選擇性 字串 Available when: type = event
event_start_datetime 選擇性 字串 Available when: type = event
event_end_datetime 選擇性 字串 Available when: type = event
event_first_alert_datetime 選擇性 字串 Available when: type = event
event_second_alert_datetime 選擇性 字串 Available when: type = event
crypto
crypto_coin 選擇性 字串 Available when: type = crypto
crypto_address 選擇性 字串 Available when: type = crypto
crypto_amount 選擇性 字串 Available when: type = crypto
vcard
vcard_first_name 選擇性 字串 Available when: type = vcard
vcard_last_name 選擇性 字串 Available when: type = vcard
vcard_company 選擇性 字串 Available when: type = vcard
vcard_phone_number_label[index] 選擇性 字串 Available when: type = vcard
vcard_phone_number_value[index] 選擇性 字串 Available when: type = vcard
vcard_email 選擇性 字串 Available when: type = vcard
vcard_url 選擇性 字串 Available when: type = vcard
vcard_job_title 選擇性 字串 Available when: type = vcard
vcard_birthday 選擇性 字串 Available when: type = vcard
vcard_street 選擇性 字串 Available when: type = vcard
vcard_city 選擇性 字串 Available when: type = vcard
vcard_zip 選擇性 字串 Available when: type = vcard
vcard_region 選擇性 字串 Available when: type = vcard
vcard_country 選擇性 字串 Available when: type = vcard
vcard_note 選擇性 字串 Available when: type = vcard
vcard_social_label[index] 選擇性 字串 Available when: type = vcard
vcard_social_value[index] 選擇性 字串 Available when: type = vcard
paypal
paypal_type 選擇性 字串 允許的值:buy_now, add_to_cart, donation (type=paypal)
paypal_email 選擇性 字串 Available when: type = paypal
paypal_title 選擇性 字串 Available when: type = paypal
paypal_currency 選擇性 字串 Available when: type = paypal
paypal_price 選擇性 浮動 Available when: type = paypal
paypal_thank_you_url 選擇性 字串 Available when: type = paypal
paypal_cancel_url 選擇性 字串 Available when: type = paypal
upi
upi_payee_id 選擇性 字串 Available when: type = upi
upi_payee_name 選擇性 字串 Available when: type = upi
upi_currency 選擇性 字串 Available when: type = upi
upi_amount 選擇性 浮動 Available when: type = upi
upi_transaction_id 選擇性 字串 Available when: type = upi
upi_transaction_note 選擇性 字串 Available when: type = upi
upi_transaction_reference 選擇性 字串 Available when: type = upi
upi_thank_you_url 選擇性 字串 Available when: type = upi
epc
epc_iban 選擇性 字串 Available when: type = epc
epc_payee_name 選擇性 字串 Available when: type = epc
epc_currency 選擇性 字串 Available when: type = epc
epc_amount 選擇性 浮動 Available when: type = epc
epc_bic 選擇性 字串 Available when: type = epc
epc_remittance_reference 選擇性 字串 Available when: type = epc
epc_remittance_text 選擇性 字串 Available when: type = epc
information 選擇性 字串 Available when: type = epc
pix
pix_payee_key 選擇性 字串 Available when: type = pix
pix_payee_name 選擇性 字串 Available when: type = pix
pix_currency 選擇性 字串 Available when: type = pix
pix_amount 選擇性 浮動 Available when: type = pix
pix_city 選擇性 字串 Available when: type = pix
pix_transaction_id 選擇性 字串 Available when: type = pix
pix_description 選擇性 字串 Available when: type = pix
參數 細節 描述
curl --request POST \
--url 'https://9qrcode.com/api/qr-codes' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=New York' \
--form 'type=text' \
--form 'text=Hello!' \
{ "data": { "id": 1 } }
POST https://9qrcode.com/api/qr-codes/{qr_code_id}
參數 細節 描述
link_id 選擇性 整數 -
project_id 選擇性 字串 -
name 選擇性 字串 -
type 選擇性 字串 允許的值:text, url, phone, sms, email, whatsapp, facetime, location, wifi, event, vcard, crypto, paypal, upi, epc, pix
style 選擇性 字串 允許的值:square, dot, round, diamond, heart
inner_eye_style 選擇性 字串 允許的值:square, dot, rounded, diamond, flower, leaf
outer_eye_style 選擇性 字串 允許的值:square, circle, rounded, flower, leaf
foreground_type 選擇性 字串 允許的值:color, gradient
foreground_color 選擇性 字串 Available when: foreground_type = color
foreground_gradient_style 選擇性 字串 允許的值:vertical, horizontal, diagonal, inverse_diagonal, radial
foreground_gradient_one 選擇性 字串 Available when: foreground_type = gradient
foreground_gradient_two 選擇性 字串 Available when: foreground_type = gradient
background_color 選擇性 字串
background_color_transparency 選擇性 整數 0 - 100
custom_eyes_color 選擇性 布林值
eyes_inner_color 選擇性 字串 Available when: custom_eyes_color = 1
eyes_outer_color 選擇性 字串 Available when: custom_eyes_color = 1
qr_code_logo 選擇性 檔案 -
qr_code_logo_size 選擇性 整數 5-35
qr_code_background 選擇性 檔案 -
qr_code_background_transparency 選擇性 整數 0-100
qr_code_foreground 選擇性 檔案 -
qr_code_foreground_transparency 選擇性 整數 0-100
frame 選擇性 字串 允許的值:round_bottom_text, round_top_text, tooltip_bottom_text, tooltip_top_text, ribbon_bottom_text, ribbon_top_text, tooltip_snap_top_text, tooltip_snap_bottom_text
frame_text 選擇性 字串
frame_text_size 選擇性 整數 -5 -> 5
frame_text_font 選擇性 字串 允許的值:times_new_roman, georgia, courier, arial, helvetica, verdana, tahoma, trebuchet_ms, courier_new, monaco, comic_sans_ms, impact, luminari, baskerville, papyrus, brush_script_mt
frame_custom_colors 選擇性 布林值
frame_color 選擇性 字串 Available when: frame_custom_colors = 1
frame_text_color 選擇性 字串 Available when: frame_custom_colors = 1
size 選擇性 整數 50-2000
margin 選擇性 整數 0-25
ecc 選擇性 字串 允許的值:L, M, Q, H
text 選擇性 字串 Available when: type = text
url 選擇性 字串 Available when: type = url
phone 選擇性 字串 Available when: type = phone
sms 選擇性 字串 Available when: type = sms
sms_body 選擇性 字串 Available when: type = sms
email 選擇性 字串 Available when: type = email
whatsapp 選擇性 字串 Available when: type = whatsapp
whatsapp_body 選擇性 字串 Available when: type = whatsapp
facetime 選擇性 字串 Available when: type = facetime
location
location_latitude 選擇性 浮動 Available when: type = location
location_longitude 選擇性 浮動 Available when: type = location
wifi
wifi_ssid 選擇性 字串 Available when: type = wifi
wifi_encryption 選擇性 字串 允許的值:nopass, WEP, WPA/WPA2, H (type=wifi)
wifi_password 選擇性 字串 Available when: type = wifi
wifi_is_hidden 選擇性 布林值 Available when: type = wifi
event 選擇性 字串 Available when: type = event
event_location 選擇性 字串 Available when: type = event
event_url 選擇性 字串 Available when: type = event
event_note 選擇性 字串 Available when: type = event
event_timezone 選擇性 字串 Available when: type = event
event_start_datetime 選擇性 字串 Available when: type = event
event_end_datetime 選擇性 字串 Available when: type = event
event_first_alert_datetime 選擇性 字串 Available when: type = event
event_second_alert_datetime 選擇性 字串 Available when: type = event
crypto
crypto_coin 選擇性 字串 Available when: type = crypto
crypto_address 選擇性 字串 Available when: type = crypto
crypto_amount 選擇性 字串 Available when: type = crypto
vcard
vcard_first_name 選擇性 字串 Available when: type = vcard
vcard_last_name 選擇性 字串 Available when: type = vcard
vcard_company 選擇性 字串 Available when: type = vcard
vcard_phone_number_label[index] 選擇性 字串 Available when: type = vcard
vcard_phone_number_value[index] 選擇性 字串 Available when: type = vcard
vcard_email 選擇性 字串 Available when: type = vcard
vcard_url 選擇性 字串 Available when: type = vcard
vcard_job_title 選擇性 字串 Available when: type = vcard
vcard_birthday 選擇性 字串 Available when: type = vcard
vcard_street 選擇性 字串 Available when: type = vcard
vcard_city 選擇性 字串 Available when: type = vcard
vcard_zip 選擇性 字串 Available when: type = vcard
vcard_region 選擇性 字串 Available when: type = vcard
vcard_country 選擇性 字串 Available when: type = vcard
vcard_note 選擇性 字串 Available when: type = vcard
vcard_social_label[index] 選擇性 字串 Available when: type = vcard
vcard_social_value[index] 選擇性 字串 Available when: type = vcard
paypal
paypal_type 選擇性 字串 允許的值:buy_now, add_to_cart, donation (type=paypal)
paypal_email 選擇性 字串 Available when: type = paypal
paypal_title 選擇性 字串 Available when: type = paypal
paypal_currency 選擇性 字串 Available when: type = paypal
paypal_price 選擇性 浮動 Available when: type = paypal
paypal_thank_you_url 選擇性 字串 Available when: type = paypal
paypal_cancel_url 選擇性 字串 Available when: type = paypal
upi
upi_payee_id 選擇性 字串 Available when: type = upi
upi_payee_name 選擇性 字串 Available when: type = upi
upi_currency 選擇性 字串 Available when: type = upi
upi_amount 選擇性 浮動 Available when: type = upi
upi_transaction_id 選擇性 字串 Available when: type = upi
upi_transaction_note 選擇性 字串 Available when: type = upi
upi_transaction_reference 選擇性 字串 Available when: type = upi
upi_thank_you_url 選擇性 字串 Available when: type = upi
epc
epc_iban 選擇性 字串 Available when: type = epc
epc_payee_name 選擇性 字串 Available when: type = epc
epc_currency 選擇性 字串 Available when: type = epc
epc_amount 選擇性 浮動 Available when: type = epc
epc_bic 選擇性 字串 Available when: type = epc
epc_remittance_reference 選擇性 字串 Available when: type = epc
epc_remittance_text 選擇性 字串 Available when: type = epc
information 選擇性 字串 Available when: type = epc
pix
pix_payee_key 選擇性 字串 Available when: type = pix
pix_payee_name 選擇性 字串 Available when: type = pix
pix_currency 選擇性 字串 Available when: type = pix
pix_amount 選擇性 浮動 Available when: type = pix
pix_city 選擇性 字串 Available when: type = pix
pix_transaction_id 選擇性 字串 Available when: type = pix
pix_description 選擇性 字串 Available when: type = pix
curl --request POST \
--url 'https://9qrcode.com/api/qr-codes/{qr_code_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Las Vegas' \
{ "data": { "id": 1 } }
DELETE https://9qrcode.com/api/qr-codes/{qr_code_id}
curl --request DELETE \
--url 'https://9qrcode.com/api/qr-codes/{qr_code_id}' \
--header 'Authorization: Bearer {api_key}' \