Utilidades para desarrolladores
Herramientas útiles que no deberías tener que reconstruir
Códigos QR, codificación, conversiones y APIs de contenido. Extras que ahorran tiempo sin convertirse en infraestructura central.
Obtener clave APIMotor
Utilidades
Herramientas habituales para desarrolladores, disponibles con la misma clave que tus sistemas de producción.
{
"data": "https://requiemsapi.com",
"size": 256,
"recovery": "medium"
}
{
"image": "iVBORw0KGgoAAAANSUhEUgAA...",
"width": 256,
"height": 256
}
No toda API debe ser un sistema. Son utilidades que de otro modo reconstruirías o meterías en un paquete puntual: generación QR, codificación, contenido aleatorio y más. La misma clave API, la misma autenticación, cero configuración extra.
Referencia de la API
Base URL: https://requiems.xyz
Descripción general
Casos de uso
- 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
Funcionalidades
Puntos finales de la 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
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| data | string |
Obligatorio | The string to encode into the QR code (URL, text, or any string). |
| size | integer |
Opcional | Output image size in pixels (width and height). Min 50, max 1000. Defaults to 256. |
| recovery | string |
Opcional | Error correction level: low, medium, high, or highest. Higher levels allow more of the QR code to be damaged while still scanning. |
Pruébalo
Demostración en vivoSolicitud
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.
Campos de respuesta
| Campo | Tipo | Descripción |
|---|---|---|
| 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 |
Ejemplos de código
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')
Respuestas de error
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
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| value | string |
Obligatorio | The string to encode |
| variant | string |
Opcional | Encoding variant: standard (default) or url (URL-safe base64url, RFC 4648 §5) |
Pruébalo
Demostración en vivoSolicitud
The string to encode
Encoding variant: standard (default) or url (URL-safe base64url, RFC 4648 §5)
Campos de respuesta
| Campo | Tipo | Descripción |
|---|---|---|
| result | string |
The Base64-encoded output string |
Ejemplos de código
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==
Respuestas de error
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
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| value | string |
Obligatorio | The Base64-encoded string to decode |
| variant | string |
Opcional | Encoding variant: standard (default) or url (URL-safe base64url) |
Pruébalo
Demostración en vivoSolicitud
The Base64-encoded string to decode
Encoding variant: standard (default) or url (URL-safe base64url)
Campos de respuesta
| Campo | Tipo | Descripción |
|---|---|---|
| result | string |
The decoded plain-text output |
Ejemplos de código
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!
Respuestas de error
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
Parámetros
| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| text | string |
Obligatorio | Markdown string to render |
Pruébalo
Demostración en vivoSolicitud
Markdown string to render
Campos de respuesta
| Campo | Tipo | Descripción |
|---|---|---|
| html | string |
Rendered HTML output |
Ejemplos de código
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;
Respuestas de error
bad_request
text field is missing or empty
unauthorized
Missing or invalid API key
Preguntas frecuentes
Backend todo en uno para productos SaaS
Autenticación, validación, detección de fraude, inteligencia de pagos y datos globales, entregados a través de una API unificada.