๐
LIVE DEMO
Hoops
Sink one basket
โ This is exactly what your users will see
10s
Avg solve time
Medium
Difficulty
Pay what you want
Price
About this game
Flick the ball at the hoop. Bank it off the backboard or swish it clean โ one bucket to pass.
Bot-proofMobile friendlyNo cookiesGDPR safeSports & ticketing
PAY WHAT YOU WANT
Your price
All 18 games
Full pack available
Pay what you want โ
- โ Lifetime access
- โ Unlimited domains
- โ API + embed code
- โ Dashboard & site key
Embed code
index.html
<!-- 1. Add the script -->
<script src="https://captchakit.com/embed.js" async></script>
<!-- 2. Drop in the widget -->
<div
id="gc-widget"
data-game="hoops"
data-site-key="YOUR_SITE_KEY"
></div>
<!-- 3. Verify on your server -->
<script>
document.getElementById('gc-widget').addEventListener('gc:pass', async (e) => {
const res = await fetch('/api/verify-captcha', {
method: 'POST',
body: JSON.stringify({ token: e.detail.token }),
});
const { success } = await res.json();
if (success) submitForm();
});
</script>Server verification
server.js
// Server-side token verification
const res = await fetch('https://captchakit.com/api/verify', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY',
},
body: JSON.stringify({
token: req.body.token,
siteKey: 'gc_hoops_xxxx',
}),
});
const { success, gameId } = await res.json();
// success === true means a real human passed the Hoops challenge