How to Bypass Number CAPTCHA: Step-by-Step Guide
This guide explains how to interact with the captcha solver API for bypassing number captchas, focusing on practical usage through Postman queries.
1. Create a 2Captcha Account
- Visit captcha solver.
- Sign up for an account.
- Add funds to your account to start solving captchas.
2. Install the Browser Extension (Optional)
- Download the captcha solver browser extension.
- The extension simplifies captcha solving by integrating directly with your browser.
3. Get Your API Key
- Log in to your 2Captcha account.
- Navigate to the "API Settings" section.
- Copy your API key.
4. Prepare the Image
You need to convert the captcha image to Base64 format before sending it to the API. Here’s how you can encode the image:
Base64 Encoding Example (Manual Steps)
- Use an online tool like Base64-Image Encoder or any image-to-Base64 converter.
- Upload the captcha image and copy the Base64 string.
5. Send a Captcha-Solving Request Using API v2
Use Postman to interact with the 2Captcha API v2. Follow these steps:
Create a POST Request in Postman
- Endpoint:
https://api.2captcha.com/createTask
- Headers:
Content-Type
:application/json
Example Request
POST https://api.2captcha.com/createTask
Content-Type: application/json
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "ImageToTextTask",
"body": "BASE64_ENCODED_IMAGE_STRING",
"numeric": 1
}
}
6. Get the Captcha Solution
After submitting the captcha, you'll receive a task ID
in the response. Use this ID to check the solution.
Create a POST Request in Postman
- Endpoint:
https://api.2captcha.com/getTaskResult
- Headers:
Content-Type
:application/json
Example Request
POST https://api.2captcha.com/getTaskResult
Content-Type: application/json
{
"clientKey": "YOUR_API_KEY",
"taskId": "TASK_ID"
}
Expected Response
- If the captcha is solved:
{ "status": "ready", "solution": { "text": "CAPTCHA_TEXT" } }
- If still processing:
{ "status": "processing" }
- Retry every 5 seconds until the status is "ready".
7. Solving Number Captcha Codes
Number captchas require digit-only responses. Ensure you set the numeric
parameter to 1
in the API request to restrict results to numbers only.
Example Request for Number Captchas
POST https://api.2captcha.com/createTask
Content-Type: application/json
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "ImageToTextTask",
"body": "BASE64_ENCODED_IMAGE_STRING",
"numeric": 1
}
}
Additional Considerations:
- Some number captchas may have spaces or special formatting; remove unnecessary characters if needed.
- If the result contains letters, double-check your request parameters and ensure
numeric: 1
is correctly included.
Additional Tips
Debugging
If you encounter issues:
- Ensure the image is in a supported format (JPEG, PNG, GIF).
- Make sure the image size is below 100 kB and its dimensions are within 1000x1000 pixels.
- Check your API key and balance.
Use the Browser Extension
For a simpler solution, the 2Captcha browser extension can automatically solve captchas on supported websites without requiring API integration.
Example Use Case
Imagine automating form submissions on a website that requires solving number captchas. By integrating the 2Captcha API, you can seamlessly bypass these challenges and streamline your workflow.
Conclusion
With the 2Captcha API v2, bypassing number captchas becomes an effortless process. Follow this guide step-by-step to integrate their solution into your project and simplify captcha solving.