cURL
curl --request GET \
--url 'https://api.kloo.li/v1/qr-codes/{qr_code_id}' \
--header 'Authorization: Bearer {api_key}'
const response = await fetch('https://api.kloo.li/v1/qr-codes/{qr_code_id}', {
method: 'GET',
headers: {
Authorization: 'Bearer {api_key}',
Accept: 'application/json'
}
});
const data = await response.json();
console.log(data);
const response = await fetch('https://api.kloo.li/v1/qr-codes/{qr_code_id}', {
method: 'GET',
headers: {
Authorization: 'Bearer {api_key}',
Accept: 'application/json'
}
});
const data = await response.json();
console.log(data);
import requests
url = 'https://api.kloo.li/v1/qr-codes/{qr_code_id}'
headers = {
'Authorization': 'Bearer {api_key}',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
print(response.json())
<?php
$ch = curl_init('https://api.kloo.li/v1/qr-codes/{qr_code_id}');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer {api_key}',
'Accept: application/json',
],
]);
echo curl_exec($ch);
curl_close($ch);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.kloo.li/v1/qr-codes/{qr_code_id}", nil)
req.Header.Set("Authorization", "Bearer {api_key}")
req.Header.Set("Accept", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.kloo.li/v1/qr-codes/{qr_code_id}"))
.header("Authorization", "Bearer {api_key}")
.header("Accept", "application/json")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer {api_key}");
client.DefaultRequestHeaders.Add("Accept", "application/json");
var response = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "https://api.kloo.li/v1/qr-codes/{qr_code_id}"));
Console.WriteLine(await response.Content.ReadAsStringAsync());
require 'net/http'
require 'uri'
uri = URI('https://api.kloo.li/v1/qr-codes/{qr_code_id}')
req = Net::HTTP::Get.new(uri)
req['Authorization'] = 'Bearer {api_key}'
req['Accept'] = 'application/json'
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
puts res.body
{
"data": {
"id": 1,
"type": "url",
"name": "Example name",
"qr_code": "https://kloo.li/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": "2026-01-15 12:00:00"
}
}
Codes QR
Récupérer
Codes QR — Récupérer. GET /qr-codes/{qr_code_id}
GET
/
qr-codes
/
{qr_code_id}
cURL
curl --request GET \
--url 'https://api.kloo.li/v1/qr-codes/{qr_code_id}' \
--header 'Authorization: Bearer {api_key}'
const response = await fetch('https://api.kloo.li/v1/qr-codes/{qr_code_id}', {
method: 'GET',
headers: {
Authorization: 'Bearer {api_key}',
Accept: 'application/json'
}
});
const data = await response.json();
console.log(data);
const response = await fetch('https://api.kloo.li/v1/qr-codes/{qr_code_id}', {
method: 'GET',
headers: {
Authorization: 'Bearer {api_key}',
Accept: 'application/json'
}
});
const data = await response.json();
console.log(data);
import requests
url = 'https://api.kloo.li/v1/qr-codes/{qr_code_id}'
headers = {
'Authorization': 'Bearer {api_key}',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
print(response.json())
<?php
$ch = curl_init('https://api.kloo.li/v1/qr-codes/{qr_code_id}');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer {api_key}',
'Accept: application/json',
],
]);
echo curl_exec($ch);
curl_close($ch);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.kloo.li/v1/qr-codes/{qr_code_id}", nil)
req.Header.Set("Authorization", "Bearer {api_key}")
req.Header.Set("Accept", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.kloo.li/v1/qr-codes/{qr_code_id}"))
.header("Authorization", "Bearer {api_key}")
.header("Accept", "application/json")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer {api_key}");
client.DefaultRequestHeaders.Add("Accept", "application/json");
var response = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "https://api.kloo.li/v1/qr-codes/{qr_code_id}"));
Console.WriteLine(await response.Content.ReadAsStringAsync());
require 'net/http'
require 'uri'
uri = URI('https://api.kloo.li/v1/qr-codes/{qr_code_id}')
req = Net::HTTP::Get.new(uri)
req['Authorization'] = 'Bearer {api_key}'
req['Accept'] = 'application/json'
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
puts res.body
{
"data": {
"id": 1,
"type": "url",
"name": "Example name",
"qr_code": "https://kloo.li/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": "2026-01-15 12:00:00"
}
}
Playground interactif pour
GET /qr-codes/{qr_code_id}.
Collez votre clé API dans le champ Authorization :
Bearer {api_key}.cURL
curl --request GET \
--url 'https://api.kloo.li/v1/qr-codes/{qr_code_id}' \
--header 'Authorization: Bearer {api_key}'
const response = await fetch('https://api.kloo.li/v1/qr-codes/{qr_code_id}', {
method: 'GET',
headers: {
Authorization: 'Bearer {api_key}',
Accept: 'application/json'
}
});
const data = await response.json();
console.log(data);
const response = await fetch('https://api.kloo.li/v1/qr-codes/{qr_code_id}', {
method: 'GET',
headers: {
Authorization: 'Bearer {api_key}',
Accept: 'application/json'
}
});
const data = await response.json();
console.log(data);
import requests
url = 'https://api.kloo.li/v1/qr-codes/{qr_code_id}'
headers = {
'Authorization': 'Bearer {api_key}',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
print(response.json())
<?php
$ch = curl_init('https://api.kloo.li/v1/qr-codes/{qr_code_id}');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer {api_key}',
'Accept: application/json',
],
]);
echo curl_exec($ch);
curl_close($ch);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.kloo.li/v1/qr-codes/{qr_code_id}", nil)
req.Header.Set("Authorization", "Bearer {api_key}")
req.Header.Set("Accept", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.kloo.li/v1/qr-codes/{qr_code_id}"))
.header("Authorization", "Bearer {api_key}")
.header("Accept", "application/json")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer {api_key}");
client.DefaultRequestHeaders.Add("Accept", "application/json");
var response = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "https://api.kloo.li/v1/qr-codes/{qr_code_id}"));
Console.WriteLine(await response.Content.ReadAsStringAsync());
require 'net/http'
require 'uri'
uri = URI('https://api.kloo.li/v1/qr-codes/{qr_code_id}')
req = Net::HTTP::Get.new(uri)
req['Authorization'] = 'Bearer {api_key}'
req['Accept'] = 'application/json'
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
puts res.body
{
"data": {
"id": 1,
"type": "url",
"name": "Example name",
"qr_code": "https://kloo.li/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": "2026-01-15 12:00:00"
}
}
Autorisations
Récupérez votre clé API sur https://kloo.li/account-api. Utilisez Authorization: Bearer {api_key}.
Paramètres de chemin
Resource identifier
Réponse
Succès
⌘I

