FunCaptchaToken
Solve Arkose Labs FunCaptcha through your proxy from the public key and get the session token. Shows the request schema, an example and provider prices.
FunCaptchaToken solves an Arkose Labs FunCaptcha through your proxy and returns the session token. FunCaptcha asks the visitor to solve a short image puzzle, and the page receives a session token on success. The task takes the page URL and the Arkose public key.
Use this task when the site checks that the solve came from the same IP as your own requests. Otherwise use FunCaptchaTokenProxyLess, which takes the same parameters without a proxy. For widgets that load from a custom Arkose host with no visible element, use FunCaptchaInvisibleToken.
Find the parameters
Open the page with DevTools and read the key:
websitePublicKeyis thedata-pkeyattribute of the FunCaptchadivelement. If the page has an element namedfc-token, the key is the value afterpk=in its value. It is a UUID such as6220FF23-9856-3A6F-9FF1-A14F88123F55.
Send the proxy
task.proxy is required on this task type, and the provider solves from that address. The proxy must keep one IP for the whole solve: see Keep the same IP for the whole solve.
Optional parameters
funcaptchaApiJSSubdomain: send it when the page loads the widget from a custom subdomain such asclient-api.arkoselabs.comrather than the default one. Thesurlvalue infc-tokenshows the host in use.data: some sites send an extrablobvalue with the challenge. Ablobis valid for one challenge, so capture it from the page right before you create the task, wrap it as{"blob":"..."}withJSON.stringify, and send the string.userAgent: the browser User-Agent to solve with. Use the same value for your later requests.enablePOW: defaults totrue. Set it tofalseto trade coverage for latency on targets that never ask for proof-of-work. Only WTFSolve reads it; other providers ignore it.headers: browser headers mirrored on the solve request so it matches the fingerprint the blob was minted under. Only WTFSolve reads it; other providers ignore it, and the field description lists the accepted keys.
Use the token
solution.token is the full Arkose session token. It contains |-separated fields such as r=, pk= and surl=. Submit it where the page puts the value of the fc-token field, or pass it to the page's callback.
Some providers also return the userAgent they used. When the site binds the token to the browser, send your later requests with that same User-Agent. If the token is rejected, check that the proxy kept one IP for the whole solve, then that websitePublicKey and websiteURL come from the page that shows the widget.
Related tasks
Check Provider stats for live success rates and solve times before you pick a provider.
Supported Providers
| Provider | Price per 1,000 | Routing |
|---|---|---|
2Captcha | $1.45–$50.00 | |
Anti-Captcha | $3.00 | |
CapMonster | $1.10 | |
SolveCaptcha | $2.99–$50.00 | |
WTFSolve | $0.20 | |
VoidCaptcha | $2.00 |
Request Schema
| Field | Type | Required | Description |
|---|---|---|---|
clientKey* | string | Yes | Your API key. Create one in a workspace of the AnySolver dashboard. Example: |
task* | object | Yes | The task body. Required fields depend on the task type. See Tasks for per-task schemas. View task properties |
settings | object | No | Per-request settings for routing, Auto Retry, Auto Fallback, proxy reuse, response statistics and detailed analytics. Each field overrides the API key's value. See Routing modes. View settings reference |
Task Object Properties
The task field accepts an object with the following properties:
| Field | Type | Required | Description |
|---|---|---|---|
type* | Yes | ||
websiteURL* | URL | Yes | Full URL of the page where the CAPTCHA is displayed. Example: |
websitePublicKey* | string | Yes | Arkose Labs public key. It is the Example: |
proxy* | string | object | Yes | Proxy the provider solves through, as a string or an object. See Proxy configuration. View proxy configurationExample: |
funcaptchaApiJSSubdomain | string | No | Custom subdomain the page loads the Arkose Labs widget from, such as Example: |
data | string | No | Additional FunCaptcha payload, commonly the Example: |
userAgent | string | No | Browser User-Agent string. Must match the browser used on the target page. Not all providers properly support this parameter. Verify the compatibility with the provider you are using. Example: |
enablePOW | boolean | No | Solve the challenge with proof-of-work enabled. Defaults to true, which covers both proof-of-work and plain targets. Set it to false to trade coverage for latency on targets that never ask for proof-of-work. Only WTFSolve reads this field; other providers ignore it. Example: |
headers | object | No | Browser headers mirrored on the solve request so it matches the fingerprint the blob was minted under. Only the seven keys listed here are sent; anything else is dropped. When both this object and the top-level userAgent carry a User-Agent, userAgent wins. Only WTFSolve reads this field; other providers ignore it. |
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "FunCaptchaToken",
"websiteURL": "https://2captcha.com/demo/funcaptcha",
"websitePublicKey": "6220FF23-9856-3A6F-9FF1-A14F88123F55",
"proxy": "http://user:pass@1.2.3.4:8080"
}
}Optional fields are not guaranteed across providers
Response Schema
| Field | Type | Required | Description |
|---|---|---|---|
status* | Yes | Task status: "processing", "ready", or "failed". Example: | |
errorId* | Yes |
Example: | |
taskId | string | No | Unique identifier returned when the task was created. Example: |
errorCode | No | Machine-readable error code. Example: | |
errorDescription | string | No | Human-readable error message with resolution hints. Example: |
cost | number | No | Actual cost charged for this task in USD. Example: |
taskType | No | The type of CAPTCHA task to solve. Example: | |
provider | No | Provider that handled this task. While processing, the provider currently solving it. Example: | |
solution | object | No |
Solution Object Properties
The solution field contains an object with the following properties:
| Field | Type | Required | Description |
|---|---|---|---|
token* | string | Yes | The solved CAPTCHA token to submit with your form. Example: |
raw* | Record<string, unknown> | Yes | Raw provider response data for advanced use cases. |
userAgent | string | No | User-Agent string used during solving. |