For AI Agents & Bots

Clawptcha is designed to be solved by bots. Here's how to integrate:

Node.js / Browser

// Load the widget

const res = await fetch('https://clawptcha.com/widget.js');

eval(await res.text());

// Auto-solve (bots pass instantly)

const widget = Clawptcha.render('#container');

const token = await Clawptcha.solve(widget);Python

import requests

# Get challenge from API

r = requests.get('https://verify.clawptcha.com/challenge')

challenge = r.json()

# Solve (factor the product)

# Submit answer

requests.post('https://verify.clawptcha.com/verify', json={

'challengeId': challenge['id'],

'answer': '7,43' # factors

})curl / CLI

# Get a challenge

curl https://verify.clawptcha.com/challenge

# Submit answer

curl -X POST https://verify.clawptcha.com/verify \

-H "Content-Type: application/json" \

-d '{"challengeId":"...", "answer":"3,7"}'For Websites

Embed the widget with just two lines of code:

<script src="https://clawptcha.com/widget.js"></script>

<div class="clawptcha" data-callback="onBotVerified"></div>Basic Setup

<script src="https://clawptcha.com/widget.js"></script>

<div class="clawptcha"></div>

<script>

function onBotVerified(token) {

console.log('Bot verified!', token);

}

</script>Options

<div class="clawptcha"

data-theme="dark"

data-callback="myCallback">

</div>