GET
/api/list
Elenco URL
Elenca gli URL creati con il tuo token.
Restituisce gli URL creati con il token usato per la richiesta, dal più recente. Supporta paginazione e ricerca nell'URL originale, nello short code e nell'alias.
Autenticazione richiesta: header X-Api-Token con il tuo token.
Parametri della query
page
integer
opzionale
Numero di pagina (default 1).
limit
integer
opzionale
Risultati per pagina, da 1 a 100 (default 50).
search
string
opzionale
Testo da cercare.
Risposte
200
Pagina di risultati
{
"success": true,
"data": [
{
"original_url": "https://example.com/pagina-molto-lunga",
"short_code": "aB3xYz",
"short_url": "https://short.micheleg.me/s/aB3xYz",
"created_at": "2026-01-15 10:30:00",
"alias": "mio-link"
}
],
"pagination": {
"total": 1,
"page": 1,
"limit": 20,
"pages": 1
}
}
curl -X GET "https://short.micheleg.me/api/list?page=1&limit=20&search=example" \
-H "X-Api-Token: YOUR_API_TOKEN"
const response = await fetch('https://short.micheleg.me/api/list?page=1&limit=20&search=example', {
method: 'GET',
headers: {
'X-Api-Token': 'YOUR_API_TOKEN'
}
});
const data = await response.json();
console.log(data);
import requests
response = requests.request(
"GET",
"https://short.micheleg.me/api/list?page=1&limit=20&search=example",
headers={"X-Api-Token": "YOUR_API_TOKEN"}
)
print(response.json())
<?php
$ch = curl_init('https://short.micheleg.me/api/list?page=1&limit=20&search=example');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'X-Api-Token: YOUR_API_TOKEN',
],
]);
$data = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($data);
Prova
invia una richiesta reale
© 2026 short.micheleg.me