Quick Start Guide
Get started with MyDisct Solver API in minutes. This guide will walk you through your first captcha solving request from setup to implementation.
Prerequisites
HTTP & JSON
Basic knowledge required
Step 1: Get Your API Key
Step 2: Make Your First Request
Let's solve a simple hCaptcha image challenge. Here's a complete example:
const API_KEY = 'YOUR_API_KEY';
async function solveCaptcha() {
const createResponse = await fetch('https://solver-api.mydisct.com/createTask', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'apikey': API_KEY
},
body: JSON.stringify({
auth: { token: API_KEY },
context: { source: 'api', version: '1.0.0' },
captcha: {
type: 'HCAPTCHA_IMAGE',
metadata: {
siteUrl: 'https://example.com',
siteKey: 'a5f74b19-9e45-40e0-b45d-47ff91b7a6c2'
},
payload: {
images: ['base64_image_1...', 'base64_image_2...'],
question: 'Select all images with traffic lights',
questionType: 'grid'
}
}
})
});
const { task } = await createResponse.json();
while (true) {
await new Promise(r => setTimeout(r, 3000));
const resultResponse = await fetch('https://solver-api.mydisct.com/fetchResult', {
method: 'POST',
headers: { 'Content-Type': 'application/json', 'apikey': API_KEY },
body: JSON.stringify({ taskId: task.id })
});
const result = await resultResponse.json();
if (result.task.status === 'completed') {
return result.task.result.answers;
}
}
}
Step 3: Understand the Response
Response Format
{
"success": true,
"service": "MyDisct Solver",
"task": {
"id": "MyDisctSolver_abc123",
"status": "completed",
"result": {
"answers": [0, 2, 5, 7],
"timestamp": "2025-12-01T12:34:56Z"
}
}
}
Grid Index Reference
Blue = Selected answers [0, 2, 5, 7]
Python Quick Start
import requests
import time
API_KEY = 'YOUR_API_KEY'
def solve_captcha():
# Create task
response = requests.post(
'https://solver-api.mydisct.com/createTask',
headers={'Content-Type': 'application/json', 'apikey': API_KEY},
json={
'auth': {'token': API_KEY},
'context': {'source': 'api', 'version': '1.0.0'},
'captcha': {
'type': 'HCAPTCHA_IMAGE',
'metadata': {'siteUrl': 'https://example.com', 'siteKey': 'site-key'},
'payload': {
'images': ['base64_image_1...', 'base64_image_2...'],
'question': 'Select all images with traffic lights',
'questionType': 'grid'
}
}
}
)
task_id = response.json()['task']['id']
# Poll for result
while True:
time.sleep(3)
result = requests.post(
'https://solver-api.mydisct.com/fetchResult',
headers={'Content-Type': 'application/json', 'apikey': API_KEY},
json={'taskId': task_id}
).json()
if result['task']['status'] == 'completed':
return result['task']['result']['answers']
print(solve_captcha())
Testing Your Integration
Testing Checklist
Common Issues
"Invalid API key"
Make sure you're using the correct API key from your dashboard. Check for extra spaces or characters when copying.
"Insufficient balance"
Add balance to your account before making requests.
Task stays in "processing"
Continue polling. Some captchas take longer. If it exceeds 2 minutes, check your image format and quality.
CORS errors in browser
Never call the API directly from browser JavaScript. Always use a backend server to make API requests.