Utilitaires développeur
Des outils utiles à ne pas reconstruire
QR, encodage, conversions et APIs de contenu. Des extras qui font gagner du temps sans devenir l'infrastructure centrale.
Obtenir une clé APIMoteur
Utilitaires
Outils développeur courants, sur la même clé que vos systèmes de production.
{
"data": "https://requiemsapi.com",
"size": 256,
"recovery": "medium"
}
{
"image": "iVBORw0KGgoAAAANSUhEUgAA...",
"width": 256,
"height": 256
}
Toute API n'est pas un système. Ce sont les utilitaires que vous reconstruiriez sinon : QR, encodage, contenu aléatoire et plus. Même clé, même auth, zéro config en plus.
Référence API
Base URL: https://requiems.xyz
Vue d'ensemble
Cas d'utilisation
- Generate QR codes for URLs, payment links, or product identifiers
- Encode and decode Base64 strings for tokens, credentials, and data transfer
- Convert Markdown to HTML for rendered documentation or content previews
- Build demos and staging environments with placeholder content
Fonctionnalités
Points de terminaison de l'API
Generate QR Code
Generate a QR code for any string and return a base64-encoded PNG. Configurable size and error correction level.
https://requiems.xyz/v1/technology/qr/base64
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| data | string |
Requis | The string to encode into the QR code (URL, text, or any string). |
| size | integer |
Facultatif | Output image size in pixels (width and height). Min 50, max 1000. Defaults to 256. |
| recovery | string |
Facultatif | Error correction level: low, medium, high, or highest. Higher levels allow more of the QR code to be damaged while still scanning. |
Essayez-le
Démo en directRequête
The string to encode into the QR code (URL, text, or any string).
Output image size in pixels (width and height). Min 50, max 1000. Defaults to 256.
Error correction level: low, medium, high, or highest. Higher levels allow more of the QR code to be damaged while still scanning.
Champs de réponse
| Champ | Type | Description |
|---|---|---|
| image | string |
Base64-encoded PNG image of the QR code |
| width | integer |
Image width in pixels, equal to the requested size |
| height | integer |
Image height in pixels, equal to the requested size |
Exemples de code
curl "https://requiems.xyz/v1/technology/qr/base64?data=https%3A%2F%2Frequiems.xyz&size=256" \
-H "requiems-api-key: YOUR_API_KEY"
import base64, requests
response = requests.get(
"https://requiems.xyz/v1/technology/qr/base64",
headers={"requiems-api-key": "YOUR_API_KEY"},
params={"data": "https://requiems.xyz", "size": 256, "recovery": "medium"}
)
data = response.json()["data"]
# Decode and save as PNG
with open("qr.png", "wb") as f:
f.write(base64.b64decode(data["image"]))
print(f"QR saved: {data['width']}x{data['height']}px")
const { data } = await fetch(
'https://requiems.xyz/v1/technology/qr/base64?' +
new URLSearchParams({ data: 'https://requiems.xyz', size: 256, recovery: 'medium' }),
{ headers: { 'requiems-api-key': 'YOUR_API_KEY' } }
).then(r => r.json());
// Render inline in HTML
document.getElementById('qr').src = `data:image/png;base64,${data.image}`;
require 'net/http'
require 'json'
require 'base64'
uri = URI('https://requiems.xyz/v1/technology/qr/base64')
uri.query = URI.encode_www_form(data: 'https://requiems.xyz', size: 256)
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
http.get(uri.request_uri, 'requiems-api-key' => 'YOUR_API_KEY')
end
image_data = JSON.parse(response.body)['data']['image']
File.write('qr.png', Base64.decode64(image_data), mode: 'wb')
Réponses d'erreur
bad_request
data query parameter is missing
validation_failed
size is outside 50–1000 or recovery is not one of the valid values
unauthorized
Missing or invalid API key
Base64 Encode
Encode a plain-text string to Base64. Supports standard (RFC 4648) and URL-safe (base64url) variants.
https://requiems.xyz/v1/technology/base64/encode
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| value | string |
Requis | The string to encode |
| variant | string |
Facultatif | Encoding variant: standard (default) or url (URL-safe base64url, RFC 4648 §5) |
Essayez-le
Démo en directRequête
The string to encode
Encoding variant: standard (default) or url (URL-safe base64url, RFC 4648 §5)
Champs de réponse
| Champ | Type | Description |
|---|---|---|
| result | string |
The Base64-encoded output string |
Exemples de code
curl -X POST https://requiems.xyz/v1/technology/base64/encode \
-H "requiems-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"value": "Hello, world!"}'
import requests
response = requests.post(
"https://requiems.xyz/v1/technology/base64/encode",
headers={"requiems-api-key": "YOUR_API_KEY"},
json={"value": "Hello, world!"}
)
print(response.json()["data"]["result"]) # SGVsbG8sIHdvcmxkIQ==
const { data } = await fetch('https://requiems.xyz/v1/technology/base64/encode', {
method: 'POST',
headers: { 'requiems-api-key': 'YOUR_API_KEY', 'Content-Type': 'application/json' },
body: JSON.stringify({ value: 'Hello, world!' })
}).then(r => r.json());
console.log(data.result); // SGVsbG8sIHdvcmxkIQ==
Réponses d'erreur
bad_request
value field is missing or empty
validation_failed
variant is not standard or url
unauthorized
Missing or invalid API key
Base64 Decode
Decode a Base64-encoded string back to plain text. Returns 422 for invalid or unpadded input.
https://requiems.xyz/v1/technology/base64/decode
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| value | string |
Requis | The Base64-encoded string to decode |
| variant | string |
Facultatif | Encoding variant: standard (default) or url (URL-safe base64url) |
Essayez-le
Démo en directRequête
The Base64-encoded string to decode
Encoding variant: standard (default) or url (URL-safe base64url)
Champs de réponse
| Champ | Type | Description |
|---|---|---|
| result | string |
The decoded plain-text output |
Exemples de code
curl -X POST https://requiems.xyz/v1/technology/base64/decode \
-H "requiems-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"value": "SGVsbG8sIHdvcmxkIQ=="}'
import requests
response = requests.post(
"https://requiems.xyz/v1/technology/base64/decode",
headers={"requiems-api-key": "YOUR_API_KEY"},
json={"value": "SGVsbG8sIHdvcmxkIQ=="}
)
print(response.json()["data"]["result"]) # Hello, world!
const { data } = await fetch('https://requiems.xyz/v1/technology/base64/decode', {
method: 'POST',
headers: { 'requiems-api-key': 'YOUR_API_KEY', 'Content-Type': 'application/json' },
body: JSON.stringify({ value: 'SGVsbG8sIHdvcmxkIQ==' })
}).then(r => r.json());
console.log(data.result); // Hello, world!
Réponses d'erreur
bad_request
value field is missing or empty
invalid_base64
The value is not valid Base64 and cannot be decoded
unauthorized
Missing or invalid API key
Render Markdown
Convert a Markdown string to HTML. Useful for rendering user-submitted content, documentation previews, or README files.
https://requiems.xyz/v1/technology/markdown
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| text | string |
Requis | Markdown string to render |
Essayez-le
Démo en directRequête
Markdown string to render
Champs de réponse
| Champ | Type | Description |
|---|---|---|
| html | string |
Rendered HTML output |
Exemples de code
curl -X POST https://requiems.xyz/v1/technology/markdown \
-H "requiems-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "# Hello\n\nThis is **bold** text."}'
import requests
response = requests.post(
"https://requiems.xyz/v1/technology/markdown",
headers={"requiems-api-key": "YOUR_API_KEY"},
json={"text": "# Hello\n\nThis is **bold** text."}
)
print(response.json()["data"]["html"])
const { data } = await fetch('https://requiems.xyz/v1/technology/markdown', {
method: 'POST',
headers: { 'requiems-api-key': 'YOUR_API_KEY', 'Content-Type': 'application/json' },
body: JSON.stringify({ text: '# Hello\n\nThis is **bold** text.' })
}).then(r => r.json());
document.getElementById('preview').innerHTML = data.html;
Réponses d'erreur
bad_request
text field is missing or empty
unauthorized
Missing or invalid API key
Foire aux questions
Backend tout-en-un pour produits SaaS
Authentification, validation, détection de fraude, intelligence paiements et données mondiales, livrés via une API unifiée.