This is a free-to-use, integrate-yourself Captcha API built with Python. It provides a Captcha, and it's solution, which makes it possible to be implemented anywhere with a bit of work (e.g. webapps, Discord Bots).
You can find the projects' homepage here.
The usage really boils down to making simple HTTP requests,
import requests
from io import BytesIO
from PIL import Image
captcha_data = requests.post("https://oxycaptcha.pythonanywhere.com/api/v5/captcha").json()
captcha_image_content = requests.get(captcha_data["cdn_url"]).content
# Show the image to the user
Image.open(BytesIO(captcha_image_content)).show()
attempt = input("What does the captcha say? >> ")
solution_check = requests.post(
captcha_data["solution_check_url"],
json={"attempt": attempt}
).json()
if solution_check["case_sensitive_correct"] == True:
print("Good job! That attempt was right.")
else:
print("Err, not quite.")
You can find the API documentations here.
Contributions are always welcome! In the CONTRIBUTING.md, you will find instructions & current TODO list.