Спасибо что купили Bare API & GlobusProxy

Bare Client B3.1 LAST (24.07.2025) Скачать Bare Client
Bare Client 2.0 (25.04.2025) Скачать Bare Client
Как использовать Bare Client
Как использовать Bare API?

Чтобы использовать Bare API в клиенте, выберите нужный вам тип API в Frame Bypass и не забудьте вставить ваш API-ключ.

Чтобы использовать Bare API в BebraProxy, вам нужно указать IP http://5.42.211.111/ в настройках сайта API и вставить ваш API-ключ (при необходимости вы можете указать тип API перед ключом, например, V2_key. Чтобы посмотреть все варианты, зайдите на вкладку Captchas).

Плагины
Не знаете, как создать плагин? Узнайте больше: https://youtu.be/MipBV9p2Lt4
Хотите добавить свой плагин сюда? Свяжитесь с нами в Discord: https://discord.gg/fHh9KPpW5B
Примеры кода для интеграции Bare API в ваш проект

Python


import requests
from base64 import b64encode
import time

API_KEY = "ВАШ АПИ КЛЮЧ"
SITE = "http://5.42.211.111/"

def image_to_base64(image_path):
    with open(image_path, "rb") as image_file:
        return b64encode(image_file.read()).decode('utf-8')

try:
    base64_image = image_to_base64("captcha.png")
    
    post_response = requests.post(
        f"{SITE}in.php",
        data={
            "key": API_KEY,
            "method": "base64",
            "body": base64_image
        },
        timeout=10
    )
    
    post_text = post_response.text
    print("Ответ POST:", post_text)
    
    if "OK|" not in post_text:
        print("Не удалось получить ID капчи")
        exit()
    
    captcha_id = post_text.split("|")[1]
    
    time.sleep(8)
    
    get_response = requests.get(
        f"{SITE}res.php",
        params={
            "key": API_KEY,
            "action": "get",
            "id": captcha_id
        },
        timeout=10
    )
    
    print("Ответ GET:", get_response.text)
    
except Exception as e:
    print("Ошибка:", str(e))
                

Java


import org.jsoup.Connection;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.util.Base64;

public class Main {
    private static final String API_KEY = "ВАШ АПИ КЛЮЧ";
    private static final String SITE = "http://5.42.211.111/";

    public static void main(String[] args) {
        try {
            BufferedImage image = ImageIO.read(new File("captcha.png"));
            String base64Image = imageToBase64(image);

            Connection.Response postResponse = Jsoup.connect(SITE + "in.php")
                    .method(Connection.Method.POST)
                    .data("key", API_KEY)
                    .data("method", "base64")
                    .data("body", base64Image)
                    .ignoreContentType(true)
                    .timeout(10000)
                    .execute();

            String postText = postResponse.parse().text();
            System.out.println("Ответ POST: " + postText);

            if (!postText.contains("OK|")) {
                System.err.println("Не удалось получить ID капчи");
                return;
            }

            String captchaId = postText.split("\\|")[1];

            Thread.sleep(800);

            Document get = Jsoup.connect(SITE + "res.php")
                    .method(Connection.Method.GET)
                    .data("key", API_KEY)
                    .data("action", "get")
                    .data("id", captchaId)
                    .ignoreContentType(true)
                    .timeout(10000)
                    .get();

            String responseText = get.text();
            System.out.println("Ответ GET: " + responseText);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private static String imageToBase64(BufferedImage image) throws Exception {
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        ImageIO.write(image, "png", baos);
        return Base64.getEncoder().encodeToString(baos.toByteArray());
    }
}
                

JavaScript


const API_KEY = "ВАШ АПИ КЛЮЧ";
const SITE = "http://5.42.211.111/";

async function solveCaptcha(imagePath) {
    try {
        const base64Image = await imageToBase64(imagePath);

        const postResponse = await fetch(`${SITE}in.php`, {
            method: "POST",
            headers: {
                "Content-Type": "application/x-www-form-urlencoded"
            },
            body: new URLSearchParams({
                key: API_KEY,
                method: "base64",
                body: base64Image
            })
        });

        const postText = await postResponse.text();
        console.log("Ответ POST:", postText);

        if (!postText.includes("OK|")) {
            console.error("Не удалось получить ID капчи");
            return;
        }

        const captchaId = postText.split("|")[1];

        await new Promise(resolve => setTimeout(resolve, 800));

        const getResponse = await fetch(`${SITE}res.php?key=${API_KEY}&action=get&id=${captchaId}`);
        const responseText = await getResponse.text();
        console.log("Ответ GET:", responseText);

    } catch (error) {
        console.error("Ошибка:", error);
    }
}

async function imageToBase64(file) {
    return new Promise((resolve, reject) => {
        const reader = new FileReader();
        reader.onload = () => resolve(reader.result.split(",")[1]);
        reader.onerror = reject;
        reader.readAsDataURL(file);
    });
}