FengkongCloud
FengkongCloud is a captcha solution that protects websites from automated actions. It analyzes user behavior and generates a token that confirms legitimate activity.
Examples of tasks
Below is an example of a FengkongCloud task type currently supported by CapMonster Cloud:

Request parameters
type<string>requiredCustomTask
class<string>requiredfengkongcloud
websiteURL<string>requiredThe address of the main page where the captcha is located.
websiteKey<string>requiredThe value of the siteKey parameter found on the page.
apiJsUrl (inside metadata)<string>optionalLink to smcp.min.js. Example: https://castatic.fengkongcloud.com/pr/vX.X.X/smcp.min.js
userAgent<string>optionalBrowser User-Agent. Use the current value supported by CapMonster Cloud: userAgentPlaceholder
You can get the latest value at: https://capmonster.cloud/api/useragent/actual.
Create task method
https://api.capmonster.cloud/createTask
Request example
{
"clientKey": "API_KEY",
"task": {
"type": "CustomTask",
"class": "fengkongcloud",
"websiteURL": "https://www.example.com/",
"websiteKey": "your-website-key",
"userAgent": "userAgentPlaceholder",
"metadata": {
"apiJsUrl": "https://castatic.fengkongcloud.com/pr/vX.X.X/smcp.min.js"
}
}
}
Response example
{
"errorId": 0,
"taskId": 407533072
}
Get task result method
Use the method getTaskResult to obtain the FengkongCloud solution.
https://api.capmonster.cloud/getTaskResult
Request example
{
"clientKey":"API_KEY",
"taskId": 407533072
}
Response example
{
"errorId": 0,
"cost": 0.0006,
"status": "ready",
"solution": {
"data": {
"token": "abc123def456.....78"
}
}
}
How to find the websiteKey
- Open the page with FengkongCloud captcha.
- Open Developer Tools (F12 or right-click → Inspect).
- Go to the Network tab and reload the page.
- Look for a request to a URL containing
/confwith parameters likeappidororganization. - The
appidparameter value is thewebsiteKey.
Alternatively, search the page source code for appid or look for scripts loading from fengkongcloud.com domains.
How to find the apiJsUrl
- In Developer Tools, go to the Network tab.
- Filter requests to find the script loading from
castatic.fengkongcloud.com. - Look for a file named
smcp.min.jsand copy its full URL.
Use the SDK library
- Python
- C#
- Rust
- Go
- PHP
Show code
# https://github.com/CapMonsterCloud/capmonster-python-captcha-solver
import asyncio
from capmonstercloudclient import CapMonsterClient, ClientOptions
from capmonstercloudclient.requests import FengkongCloudCustomTaskRequest
API_KEY = "YOUR_API_KEY" # Specify your CapMonster Cloud API key
async def solve_fengkongcloud():
client = CapMonsterClient(
options=ClientOptions(api_key=API_KEY)
)
fengkongcloud_request = FengkongCloudCustomTaskRequest(
websiteUrl="https://yourwebsite.com/page-with-fengkongcloud",
websiteKey="your-website-key",
userAgent="userAgentPlaceholder",
metadata={"apiJsUrl": "https://castatic.fengkongcloud.com/pr/vX.X.X/smcp.min.js"},
)
# You can check your balance if necessary
balance = await client.get_balance()
print("Balance:", balance)
result = await client.solve_captcha(fengkongcloud_request)
print("Solution:", result)
asyncio.run(solve_fengkongcloud())
Show code
// https://github.com/CapMonsterCloud/capmonster-dotnet-captcha-solver
using System;
using System.Threading.Tasks;
using Zennolab.CapMonsterCloud;
using Zennolab.CapMonsterCloud.Requests;
class Program
{
static async Task Main(string[] args)
{
// Specify your CapMonster Cloud API key
var clientOptions = new ClientOptions
{
ClientKey = "YOUR_API_KEY"
};
var cmCloudClient = CapMonsterCloudClientFactory.Create(clientOptions);
var fengkongcloudRequest = new FengkongCloudCustomTaskRequest(
apiJsUrl: "https://castatic.fengkongcloud.com/pr/vX.X.X/smcp.min.js")
{
WebsiteUrl = "https://yourwebsite.com/page-with-fengkongcloud",
WebsiteKey = "your-website-key",
UserAgent = "userAgentPlaceholder"
};
// You can check your balance if necessary
var balance = await cmCloudClient.GetBalanceAsync();
Console.WriteLine("Balance: " + balance);
var fengkongcloudResult = await cmCloudClient.SolveAsync(fengkongcloudRequest);
Console.WriteLine("Solution: " + string.Join(", ", fengkongcloudResult.Solution.Data));
}
}
Show code
For Rust, use the official SDK: crates.io and Github.
// https://github.com/CapMonsterCloud/capmonster-rust-captcha-solver
use capmonstercloud_client::requests::{FengkongCloudRequest};
use capmonstercloud_client::{CapMonsterClient, ClientOptions};
#[tokio::main]
async fn main() -> capmonstercloud_client::Result<()> {
// Set your CapMonster Cloud API key
let client = CapMonsterClient::new(ClientOptions::new("YOUR_API_KEY"))?;
let request = FengkongCloudRequest::new(
"https://yourwebsite.com/page-with-fengkongcloud",
"your-website-key",
)
.with_api_js_url("https://castatic.fengkongcloud.com/pr/vX.X.X/smcp.min.js")
.with_user_agent("userAgentPlaceholder");
let solution = client.solve_captcha(&request).await?;
println!("Solution: {solution}");
Ok(())
}
Show code
For Go, use the official SDK: Github.
// https://github.com/CapMonsterCloud/capmonster-go-captcha-solver
package main
import (
"context"
"fmt"
"log"
capmonster "github.com/CapMonsterCloud/capmonster-go-captcha-solver/v2"
)
func main() {
ctx := context.Background()
// Specify your CapMonster Cloud API key
client := capmonster.New("YOUR_API_KEY")
// You can check your balance if necessary
balance, err := client.GetBalance(ctx)
if err != nil {
log.Fatal(err)
}
fmt.Printf("Balance: %.4f USD\n", balance)
request := capmonster.FengkongCloudRequest{
WebsiteURL: "https://yourwebsite.com/page-with-fengkongcloud",
WebsiteKey: "your-website-key",
UserAgent: "userAgentPlaceholder",
Metadata: &capmonster.FengkongCloudMetadata{APIJsURL: "https://castatic.fengkongcloud.com/pr/vX.X.X/smcp.min.js"},
}
solution, err := client.Solve(ctx, request)
if err != nil {
log.Fatal(err)
}
fmt.Println("Solution:", string(solution))
}
Show code
For PHP, use the official SDK: Github. It requires PHP 8.1+ with the curl and json extensions. Install it with Composer: composer require capmonstercloud/capmonster-client.
<?php
// https://github.com/CapMonsterCloud/capmonster-php-captcha-solver
require 'vendor/autoload.php';
use CapMonsterCloud\CapMonsterClient;
use CapMonsterCloud\ClientOptions;
use CapMonsterCloud\Requests\FengkongCloudCustomTaskRequest;
// Specify your CapMonster Cloud API key
$client = new CapMonsterClient(new ClientOptions('YOUR_API_KEY'));
$request = new FengkongCloudCustomTaskRequest(
'https://yourwebsite.com/page-with-fengkongcloud',
'your-website-key',
apiJsUrl: 'https://castatic.fengkongcloud.com/pr/vX.X.X/smcp.min.js',
userAgent: 'userAgentPlaceholder',
);
$solution = $client->solve($request);
print_r($solution);
