Générer des Captures
Entrez l'adresse de votre vidéo (.mp4, .mkv, flux HLS, etc.)
Extrayez instantanément 10 captures d'écran de haute qualité à partir de n'importe quelle vidéo en ligne.
Entrez l'adresse de votre vidéo (.mp4, .mkv, flux HLS, etc.)
Intégrez SnapVid directement dans votre propre application grâce à notre API simple.
# Requête cURL pour capturer une vidéo en ligne (clé API optionnelle si configurée)
curl -X POST http://localhost:3000/api/screenshot \
-H "Content-Type: application/json" \
-H "X-API-Key: VOTRE_CLE_SECRETE" \
-d '{"url": "https://video.twimg.com/..."}'
const response = await fetch('http://localhost:3000/api/screenshot', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'VOTRE_CLE_SECRETE'
},
body: JSON.stringify({
url: 'https://video.twimg.com/...'
})
});
const data = await response.json();
console.log(data.screenshots); // Tableau des URLs des captures
import requests
url = "http://localhost:3000/api/screenshot"
headers = {
"X-API-Key": "VOTRE_CLE_SECRETE"
}
payload = {
"url": "https://video.twimg.com/..."
}
response = requests.post(url, json=payload, headers=headers)
data = response.json()
for shot in data["screenshots"]:
print(f"Capture {shot['index']} à {shot['timestamp']}s: {shot['url']}")