Return to blog

A New Alternative To FlyCaptcha For TikTok Captcha Recognition

Greg Bizup
Jun 11, 2024

an image of a friendly robot and a developer working together to bypass the tiktok captcha

The need for a better TikTok captcha solver

Social media automation and web scraping are the two of the most common tasks I find myself doing in freelance consulting work. In particular, many clients require some form of automation on TikTok - account creation, commenting, messaging, etc. All these forms of automation have one thing in common: we need to get past the verification puzzle first.

In my software development career, I've encountered several services which help users bypass the TikTok captcha. And let me tell you, I've tried them all. I tried flyCaptcha at one point, and found the documentation to be very sparse and overall difficult to find success with. In some cases, the API's simply gave me the wrong solutions.

While I was working on my last automation project, I decided to come up with my own solution. After many weeks of work, I produced SadCaptcha, an easy-to-use API that automatically solves the TikTok captcha. This tool is intended to be an alternative to flyCaptcha, with an increased focus on user-friendliness, speed, and accuracy. It is 100% AI-powered, providing fast and reliable solutions.

Chrome and Firefox extensions

To support our friends who want to automate with a code-free solution, SadCaptcha is available as a Chrome extension and Firefox add-on. The Chrome extension can be downloaded from the Chrome web store, and the Firefox add-on can be downloaded from here.

In both cases, the usage is simple. Just install the extension, register for a free trial, and visit TikTok. When you open the TikTok website, you will be prompted to enter your key. Enter the key from your dashboard and it will automatically detect and solve any of the puzzle, rotate, and shapes captchas.

TikTok Captcha Solver Python Library

Python is the language of choice for the vast majority of automation developers. Moreover, most of these programmers choose to use Selenium or Playwright to automate their browser actions. SadCaptcha customers using Python can enjoy a super simple to use Python Client which integrates seamlessly into Python Selenium, Playwright, and Async Playwright.

Our Python library is regularly updated and open-source. The repository is relatively new, and already has a handful of forks and stars. Usage is thoroughly documented and instructions are made clear.

The library is pip-installable and lives here on PyPI. Setting up the library and integrating it into your project is as simple as a few lines of code. Here's how it works with Selenium:

from tiktok_captcha_solver import SeleniumSolver
import undetected_chromedriver as uc

driver = uc.Chrome(headless=False)
api_key = "YOUR_API_KEY_HERE"
sadcaptcha = SeleniumSolver(driver, api_key)

# Selenium code that causes a TikTok captcha...

sadcaptcha.solve_captcha_if_present() 

The process is similar with Playwright:

from tiktok_captcha_solver import PlaywrightSolver
from playwright.sync_api import Page, sync_playwright

api_key = "YOUR_API_KEY_HERE"

with sync_playwright() as p:
    browser = p.chromium.launch(headless=False)
    page = browser.new_page()
    
    # Playwright code that causes a TikTok captcha...

    sadcaptcha = PlaywrightSolver(page, api_key)
    sadcaptcha.solve_captcha_if_present()

It also works with async Playwright:

import asyncio
from tiktok_captcha_solver import AsyncPlaywrightSolver
from playwright.async_api import Page, async_playwright

api_key = "YOUR_API_KEY_HERE"

async def main()
    async with async_playwright() as p:
        browser = await p.chromium.launch(headless=False)
        page = await browser.new_page()
        
        # Playwright code that causes a TikTok captcha...

        sadcaptcha = AsyncPlaywrightSolver(page, api_key)
        await sadcaptcha.solve_captcha_if_present()

asyncio.run(main())

Other Languages - REST API

If you're using a language other than Python, you are still in luck. Our REST API can be used with any language, and has interactive Swagger documentation with code examples and clear explanations of the routes. If any assistance is needed with integration, you can adapt the code in the Python client to whatever you are doing in your own programming language. Finally, our contact form is always open if you need support on an integration.

Just Trying To Make things ea

As I mentioned in the beginning, this started out as a solution supporting some freelance I working on. Then it turned into a passion project and scaled out into a business. I'm personally very proud to be making a product that people are integrating into their software, and finding useful. I learned a lot about image processing and computer vision in the process, and I'm looking forward to see what this knowledge will produce in the future.