API

For every interaction an API Key is needed (UTF-8 encoding). See also API management.

Functions

See examples

Servercheck

GET REQUEST (Update every 3 seconds)
http://www.9kw.eu/grafik/servercheck.txt
http://www.9kw.eu/grafik/servercheck.json

Return value as text: (Example)
worker=10|avg24h=15s|avg1h=15s|avg15m=15s|avg5m=15s|inwork=5|queue=1| (String)

API Key

Min. length: 5
Max. length: 50
Only a-z, A-Z and 0-9

Error codes

0001 API key doesn't exist
0002 API key not found
0003 Active API key not found
0004 API key deactivated by owner
0005 No user found
0006 No data found
0007 No ID found
0008 No captcha found
0009 No image found
0010 Image size not allowed
0011 Balance insufficient
0012 Already done.
0013 No answer found.
0014 Captcha already answered.
0015 Captcha submitted too quickly.
0016 JD Check active.
0017 Unknown problem.
0018 No ID found.
0019 Incorrect answer.
0020 Not filed on time (wrong UserID)
0021 Link not allowed.
0022 Submit denied.
0023 Solve denied.
0024 Not enough credits.
0025 No input found.
0026 No conditions accepted.
0027 No couponcode in the database found.
0028 Already used coupon code.
0029 Maxtimeout under 60 seconds.
0030 User not found.
0031 An account is not yet 24 hours in system.
0032 An account does not have the full rights.
0033 Plugin needed a update.
0034 No HTTPS allowed.
0035 No HTTP allowed.
0036 Source not allowed.
0037 Transfer denied.
0038 Incorrect answer without space
0039 Incorrect answer with space
0040 Incorrect answer with not only numbers
0041 Incorrect answer with not only A-Z, a-z
0042 Incorrect answer with not only 0-9, A-Z, a-z
0043 Incorrect answer with not only [0-9,- ]
0044 Incorrect answer with not only [0-9A-Za-z,- ]
0045 Incorrect answer with not only coordinates
0046 Incorrect answer with not only multiple coordinates
0047 Incorrect answer with not only data
0048 Incorrect answer with not only rotate number
0049 Incorrect answer with not only text
0050 Incorrect answer with not only text and too short
0051 Incorrect answer with not enough chars
0052 Incorrect answer with too many chars
0053 Incorrect answer without no or yes


Examples

Autoit

(Autoit, AutoIt Script Editor)
Download (autoit_9kw.zip)

C

(ANSI C)
Download (c_api.zip)

C++

Download (cpp_api.zip)

C#

Download (cs_api.zip)

Delphi (XE2)

Download (delphi_api.zip)

iMacros

9kweu.iim, 9kweu_confident.iim, 9kweu_recaptcha_v2.zip, 9kweu_funcaptcha.zip, 9kweu_puzzle.zip, 9kweu_media.zip

Java

Download (java_api.zip)
or j9kwsolver

JavaScript

With Mouse-Support in our example
Download (js_api.zip)

Lua

Download (lua_api.zip)

Perl 5

Download (perl_api.zip)

PHP

Download (php_api.zip)

Powershell

Download (ps_api.zip)

PureBasic 5

Download (pb_api.zip)

Python

Download (python_api.zip)
oder py9kw

Ruby

Download (ruby_api.zip)

Tcl

Download (tcl_api.zip)

VB .Net

Download (vbnet_api.zip)

Get captcha

GET REQUEST
http://www.9kw.eu/index.cgi
action: usercaptchanew
apikey: API_KEY
source: toolname (optional, max. 30 chars)
nocaptcha: 1 (optional, to get a blank return instead of "NO CAPTCHA")
text: yes (yes=ON, no=OFF, optional, for captcha with text-element)
mouse: 1 (optional, for captcha with mouse-/click-element)
multimouse: 1 (optional, for captcha with multiple mouse-/click-element, JSON)
rotate: 1 (optional, for captcha with rotate, JSON)
audio: 1 (optional, for captcha with audio, JSON)
interactive: 1 (optional, for captcha with interactive elements, JSON)
textonly: 1 (optional, for captcha with only text, JSON)
puzzle: 1 (optional, for captcha with one puzzle, JSON)
confirm: 1 (optional, for captcha with Confirm-Element)
selfsolve: 1 (optional, for solve own captchas)
selfonly: 1 (optional, for get only own captachas)
withok: 1 (optional, please use usercaptchanewok)
extended: 1 (optional, more info from Captcha)
speed: 1 (optional)
speedlevel: 0 (optional, 0-5)
filedata: 1 (optional, integrated files in JSON)
json: 1 (optional, JSON as output format)
speed: 1 (optional)
speedlevel: 0 (optional, 0-5)
debug: 1 (optional, for debug and tests)

Return value:
CaptchaID (INT or String "NO CAPTCHA" or INT|mouse, INT|confirm)

Return value: (with extended)
ID|text|confirm|answer|mouse=0|phrase=0|numeric=0|math=0|min_len=1|max_len=30|confirm=1|w|h|

Note: Max. 30 seconds until the operation is invalid.

Get captcha OK

GET REQUEST
http://www.9kw.eu/index.cgi
action: usercaptchanewok
apikey: API_KEY
source: toolname (optional, max. 30 chars)
json: 1 (optional, JSON as output format)
speed: 1 (optional)
speedlevel: 0 (optional, 0-5)

Return value:
OK

Get captcha feedback

GET REQUEST
http://www.9kw.eu/index.cgi
action: usercaptchacorrectcheck
id: CaptchaID
apikey: API_KEY
source: toolname (optional, max. 30 chars)
archiv: 1 (optional, for the archiv)
textonly: 1 (optional)
json: 1 (optional, JSON as output format)
noonly: 1 (optional)

Return value:
String (or INT)
1|OK
2|NotOK
0|?

Show Captcha

GET REQUEST
http://www.9kw.eu/index.cgi
action: usercaptchashow
id: CaptchaID
apikey: API_KEY
source: toolname (optional, max. 30 chars)
base64: 1 (optional, for base64 only)
nodraw: 1 (optional, for mouse without marking the answer)
debug: 1 (optional, for debug and tests)
json: 1 (optional, JSON als Ausgabeformat)

GET REQUEST without "Speed"
http://www.9kw.eu/grafik/captchas/CaptchaID.txt

GET REQUEST without "Speed" with base64
http://www.9kw.eu/grafik/captchas/CaptchaID_base64.txt

Return value: (without base64)
Picture (Binary - Format gif, jpg oder png)

Return value: (with base64)
Picture as base64 (Binary in base64 - Format gif, jpg oder png)

Captcha skip

GET REQUEST
http://www.9kw.eu/index.cgi
action: usercaptchaskip
id: CaptchaID
apikey: API_KEY
source: toolname (optional, max. 30 chars)
end: 1 (optional, for no new captchas)
json: 1 (optional, JSON as output format)
speed: 1 (optional)
speedlevel: 0 (optional, 0-5)
debug: 1 (optional, for debug and tests)

Return value:
OK (String)

Captcha answer

GET REQUEST
http://www.9kw.eu/index.cgi
action: usercaptchacorrect
id: CaptchaID
captcha: ANSWER (Solution as text)
apikey: API_KEY
source: toolname (optional, max. 30 chars)
confirm: 1 (optional, for captcha with Confirm-Element, only with 150s and higher)
extended: 1 (optional, for more data like received points)
json: 1 (optional, JSON as output format)
speed: 1 (optional)
speedlevel: 0 (optional, 0-5)
debug: 1 (optional, for debug and tests)

ANSWER: (for Mouse, example)
324x184


ANSWER: (for Multimouse, example)
68x149;81x192

ANSWER: (for Puzzle, example)
301.95.165.11

ANSWER: (for Rotate, example1)
-40

ANSWER: (for Rotate, example2)
40

ANSWER: (for Interactive, example)
(recaptcha v2, g-recaptcha-response)

ANSWER: (for Confirm)
Correct: yes
Incorrect: no

Return value:
OK (String) or Not OK (String)

Return value: (with extended)
OK|Points (String) or Not OK (String)


Submit captcha

POST REQUEST
Content-Type: multipart/form-data

URL: http://www.9kw.eu/index.cgi

Values (Format gif, jpg oder png)
apikey: API_KEY (String)
action: usercaptchaupload
file-upload-01: file (Binary), url (String) or Base64 (String)
file-upload-02: file (Binary) or Base64 (String)
file-upload-03: file (Binary) or Base64 (String)
file-upload-04: file (Binary) or Base64 (String)
file-upload-05: file (Binary) or Base64 (String)
file-upload-06: file (Binary) or Base64 (String)
file-upload-07: file (Binary) or Base64 (String)
file-upload-08: file (Binary) or Base64 (String)
source: toolname (max. 30 chars)
oldsource: source (optional, max. 30 chars)
pageurl: sourceurl (optional, max. 200 chars)
proxy: host:port (optional, max. 200 chars)
proxytype: socks5 (optional, http or socks5)
base64: 1 (optional, for base64 only)
math: 1 (optional, math captcha)
mouse: 1 (optional, mouse captcha)
multimouse: 1 (optional, multimouse Captcha)
rotate: 1 (optional, rotate Captcha)
angle: 40 (optional, for rotate Captcha)
puzzle: 1 (optional, puzzle Captcha)
textonly: 1 (optional, Captcha with only text)
interactive: 1 (optional, interactive captcha)
case-sensitive: 1 (optional, 1=case-sensitive, 2=case-sensitive with symbols)
textinstructions: text (optional, instructions for the captcha as text)
rows: 2 (optional, rows from the captcha)
cols: 2 (optional, cols from the captcha)
previousid: capchaid (optional, previous captcha related)
confirm: 1 (optional, confirm captcha, +6)
prio: min. 1, max. 20 (optional, prio captcha, +1-20)
captchaperhour: min. 1, max. 9999 (optional, limit per hour)
captchapermin: min. 1, max. 9999 (optional, limit per minute)
checkanswer: solution (optional, to use only "confirm", -10)
nomd5: 1 (optional, no double captcha check)
maxtimeout: 600 (optional, maximum time for a solution, min. 60, max. 3999)
ocr: 1 (optional, for OCR)
selfsolve: 1 (optional, for solve own captchas)
nospace: 1 (optional, 1 word without spaces)
phrase: 1 (optional, 2 or more word captcha)
numeric: 1 (optional, only digit and/or letters captcha, 1=0-9, 2=A-Z+a-z, 3=0-9+A-Z+a-z)
min_len: 1 (optional, min. length captcha)
max_len: 50 (optional, max. length captcha)
json: 1 (optional, JSON as output format)
debug: 1 (optional, for debug and tests)

Return value:
NewCaptchaID (INT)


Captcha data

GET REQUEST
http://www.9kw.eu/index.cgi
action: usercaptchacorrectdata
id: NewCaptchaID
apikey: API_KEY
source: toolname (optional, max. 30 chars)
info: 1 (optional, for "NO DATA" as return-value instead of empty)
entities: 1 (optional, for HTML-Entities)
archiv: 1 (optional, for the archiv)
json: 1 (optional, JSON as output format)
debug: 1 (optional, for debug and tests)

Return value:
String


Captcha correct

GET REQUEST
http://www.9kw.eu/index.cgi
action: usercaptchacorrectback
correct: 1 (1=OK,2=Not OK)
id: NewCaptchaID
apikey: API_KEY
source: toolname (optional, max. 30 chars)
archiv: 1 (optional, for the archiv)
json: 1 (optional, JSON as output format)
debug: 1 (optional, for debug and tests)

Return value:
OK


Captcha history (submitted)

GET REQUEST
http://www.9kw.eu/index.cgi
action: userhistory
apikey: API_KEY
source: toolname (optional, max. 30 chars)
correctsource: toolname (optional, max. 30 chars)
archiv: 1 (optional, for the archiv)
short: 1 (optional, for without lines 3+)
filter: ok/notok/both/other (optional)
onlyapikey: 1 (optional)
json: 1 (optional, JSON as output format)
page: 1 (optional, INT)

Return value:
Separator: Pipe => |
Line 1: count
Line 2: columns names
Line 3+: columns data


Captcha history (solved)

GET REQUEST
http://www.9kw.eu/index.cgi
action: userhistory2
apikey: API_KEY
source: toolname (optional, max. 30 chars)
correctsource: toolname (optional, max. 30 chars)
archiv: 1 (optional, for the archiv)
short: 1 (optional, for without lines 3+)
confirm: 1 (optional, for confirm captchas)
filter: ok/notok/both/other (optional)
onlyapikey: 1 (optional)
json: 1 (optional, JSON as output format)
page: 1 (optional, INT)

Return value:
Separator: Pipe => |
Line 1: count
Line 2: columns names
Line 3+: columns data


Captcha history (false)

GET REQUEST
http://www.9kw.eu/index.cgi
action_ userhistory3
apikey: API_KEY
archiv: 1 (optional, for the archiv)
short: 1 (optional, for without lines 3+)
onlyapikey: 1 (optional)
json: 1 (optional, JSON as output format)
page: 1 (optional, INT)

Return value:
Separator: Pipe => |
Line 1: count
Line 2: columns names
Line 3+: columns data


Captcha history detail

GET REQUEST
http://www.9kw.eu/index.cgi
action: userhistorydetail
id: CaptchaID
apikey: API_KEY
source: toolname (optional, max. 30 chars)
archiv: 1 (optional, for the archiv)
json: 1 (optional, JSON as output format)
short: 1 (optional, for without lines 3+)

Return value:
Separator: Pipe => |
Line 1: columns names
Line 2: columns data
Line 3+
<-- NEXT1 -->Allocation of system<-- NEXT1 -->
<-- NEXT2 -->Allocation to users<-- NEXT2 -->
<-- NEXT3 -->Skip<-- NEXT3 -->
<-- NEXT4 -->Answers<-- NEXT4 -->
<-- NEXT5 -->Confirm<-- NEXT5 -->

structure:
    Blockbegin
    COLUMNS NAMES (1 Line)
    COLUMNS DATA
    Blockend


Balance query

GET REQUEST
http://www.9kw.eu/index.cgi
action: usercaptchaguthaben
json: 1 (optional, JSON as output format)
apikey: API_KEY

Return value:
Balance (INT)


Userconfig

GET REQUEST
http://www.9kw.eu/index.cgi
action: userconfig
apikey: API_KEY
json: 1 (optional, JSON as output format)

Return value:
selfsolve|selfonly|submitok|solveok|notok|allok|mouseok| (String)

Userconfig "selfsolve"

GET REQUEST
http://www.9kw.eu/index.cgi
action: userconfigselfsolve
selfsolve: 1 (1=ON,0=OFF)
apikey: API_KEY
json: 1 (optional, JSON as output format)

Return value:
OK

Userconfig "selfonly"

GET REQUEST
http://www.9kw.eu/index.cgi
action: userconfigselfonly
selfonly: 1 (1=ON,0=OFF)
apikey: API_KEY
json: 1 (optional, JSON as output format)

Return value:
OK

Userconfig "selfsend"

GET REQUEST
http://www.9kw.eu/index.cgi
action: userconfigselfsend
selfsend: 1 (1=ON,0=OFF)
apikey: API_KEY
json: 1 (optional, JSON as output format)

Return value:
OK

Reflist

GET REQUEST
http://www.9kw.eu/index.cgi
action: userconfigref
source: toolname (optional, max. 30 chars)
archiv: 1 (optional, for the archiv)
json: 1 (optional, JSON as output format)

Return value:
Separator: Pipe => |
Line 1: columns names
Line 2: columns data
Line 3+

structure:
    Blockbegin
    COLUMNS NAMES (1 Line)
    COLUMNS DATA
    Blockend


Transfer credits

GET REQUEST
http://www.9kw.eu/index.cgi
action: usertransfer
apikey: API_KEY
transferart: 2 (1=Normal,2=All Options)
source: toolname (optional, max. 30 chars)
guthaben: 1000 (Credits/Amount, min. 1000)
json: 1 (optional, JSON as output format)

Return value:
Separator: Pipe => |
from|to|value|status


Create coupon

GET REQUEST
http://www.9kw.eu/index.cgi
action: usergutscheincreate
apikey: API_KEY
source: toolname (optional, max. 30 chars)
guthaben: 1000 (Credits/Amount, min. 1000)
json: 1 (optional, JSON as output format)

Return value:
Separator: Pipe => |
OK|Code|Amount


Create account

GET REQUEST
http://www.9kw.eu/index.cgi
action: anmelden2_create
apikey: API_KEY
source: toolname (optional, max. 30 Zeichen)
ref: userid (optional)
code: couponcode or credits as number (Credits/Amount, min. 40000)

Return value:
Separator: Pipe => |
OK|user|password




Advertisement: Sicherheit in Online-Casinos