Intégrez l'engine d'identité sociale MIRROR dans vos applications. L'API est accessible gratuitement.
Retry-After: 60 en cas de dépassement.Content-Type: application/json.https://mirrors-app.com uniquement.
Top 20 des identités sociales. Paramètre optionnel period=today pour le classement du jour. La propriété archetype est toujours un slug (visionary|maverick|connector|sage|architect|luminary|phantom|catalyst).
curl
curl -s https://mirrors-app.com/api/leaderboard
JavaScript fetch()
const res = await fetch('https://mirrors-app.com/api/leaderboard');
const data = await res.json();
// data = [{ name: 'Lucas', archetype: 'visionary', score: 847 }, ...]
Réponse JSON
[
{ "name": "Lucas", "archetype": "visionary", "score": 847 },
{ "name": "Emma", "archetype": "connector", "score": 812 }
]
Nombre total de profils générés sur MIRROR.
curl
curl -s https://mirrors-app.com/api/analytics/count
JavaScript fetch()
const res = await fetch('https://mirrors-app.com/api/analytics/count');
const { total } = await res.json();
console.log(total); // 12450
Réponse JSON
{ "total": 12450 }
Génère une OG image SVG 1200×630 pour partage réseaux sociaux. Paramètres : name (optionnel) et archetype (visionary|maverick|connector|sage|architect|luminary|phantom|catalyst).
curl
curl -s "https://mirrors-app.com/api/og?name=Lucas&archetype=visionary"
JavaScript fetch()
const url = 'https://mirrors-app.com/api/og?name=' + encodeURIComponent('Lucas') + '&archetype=visionary';
// Utiliser comme og:image dans <meta> tags
Soumettre un nom au leaderboard. Body JSON : {"name": "Lucas"}. Le serveur calcule l'archétype et le score automatiquement à partir du nom. Validation : name 2-30 chars, lettres/accents/tirets/espace uniquement.
curl
curl -s -X POST https://mirrors-app.com/api/submit \
-H "Content-Type: application/json" \
-d '{"name":"Lucas"}'
JavaScript fetch()
const res = await fetch('https://mirrors-app.com/api/submit', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ name: 'Lucas' })
});
const data = await res.json();
// { ok: true, archetype: 'visionary', score: 847 }
Réponse JSON
{ "ok": true, "archetype": "visionary", "score": 847 }
Enregistrer un email. Body JSON : {email, archetype}.
curl
curl -s -X POST https://mirrors-app.com/api/email \
-H "Content-Type: application/json" \
-d '{"email":"[email protected]","archetype":"visionary"}'
JavaScript fetch()
await fetch('https://mirrors-app.com/api/email', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ email: '[email protected]', archetype: 'visionary' })
});
Réponse JSON
{ "ok": true }
Page HTML dédiée à un archétype. /archetype/visionary, /archetype/maverick, etc. 8 archétypes disponibles.
Page HTML de compatibilité. /compatibilite/connector-luminary. Toutes les paires d'archétypes.
Page HTML dédiée à un prénom. /prenom/Lucas. Génération automatique pour 50+ prénoms populaires.
/api/push/*, /api/sync/*, /api/referral/*, /api/premium/*, /api/checkout/*, /api/stripe-webhook) sont internes à l'application et peuvent changer sans préavis. Ne les utilisez pas dans vos intégrations.