AwsWaf
Awswaf a Image Recognition Service
with this POST
request you can solve Awswaf image challenges.
Get ApiKey
PRICING
POST https://api.nocaptchaai.com/createTaskHost: api.nocaptchaai.comContent-Type: application/json
Request Format
aws:toycarcity:carcity // Place a dot at the end of the car's pathaws:grid:bed // grid image challengesaws:grid:bagaws:grid:hataws:grid:chairaws:grid:bucketaws:grid:curtainaws:grid:mopaws:grid:clock
Request Example
Payload
{ "clientKey": "YOUR_API_KEY", "task": { "type": "AwsWafClassification", "images": [ "/9j/4AAQSkZJRgABAgAAAQABAA", "/9j/4AAQSkZJRgABAgAAAQABAA", "/9j/4AAQSkZJRgABAgAAAQABAA", "/9j/4AAQSkZJRgABAgAAAQABAA", "/9j/4AAQSkZJRgABAgAAAQABAA" ], "question": "aws:grid:bag", "websiteURL": "https://example.com" }}
Response
{ "errorId": 0, "solution": { //carcity point "box": [116.7, 164.1], // grid type, objects means the image index that matches the question "objects": [0, 1, 3, 4, 6], //if question include `bifurcatedzoo` "distance": 500 }, "status": "ready", "taskId": "0cdfecc7-6a5b-4e20-a8fa-79a345c5230f-ai"}
API Testing Example Scripts
(Copy, Edit and Implement)
const axios = require('axios');
// URL to which the request will be sentconst url = 'https://api.nocaptchaai.com/createTask';
const payload = {"clientKey": "YOUR_API_KEY","task": {"type": "AwsWafClassification","images": [ "/9j/4AAQSkZJRgABAgAAAQABAA", "/9j/4AAQSkZJRgABAgAAAQABAA", "/9j/4AAQSkZJRgABAgAAAQABAA", "/9j/4AAQSkZJRgABAgAAAQABAA", "/9j/4AAQSkZJRgABAgAAAQABAA"],"question": "aws:grid:bag","websiteURL": "https://example.com"}};
axios.post(url, payload, {headers: {'Content-Type': 'application/json'}}).then(response => {console.log(response.solution);}).catch(error => {console.error('Error:', error);});
import requests
# URL to which the request will be senturl = "https://api.nocaptchaai.com/createTask"
payload = { "clientKey": "YOUR_API_KEY", "task": { "type": "AwsWafClassification", "images": [ "/9j/4AAQSkZJRgABAgAAAQABAA", "/9j/4AAQSkZJRgABAgAAAQABAA", "/9j/4AAQSkZJRgABAgAAAQABAA", "/9j/4AAQSkZJRgABAgAAAQABAA", "/9j/4AAQSkZJRgABAgAAAQABAA" ], "question": "aws:grid:bag", "websiteURL": "https://example.com" }}
headers = { "Content-Type": "application/json"}
try: response = requests.post(url, json=payload, headers=headers) response.raise_for_status() print(response.json().get("solution"))except requests.exceptions.RequestException as e: print("Error:", e)
package main
import ("bytes""encoding/json""fmt""net/http""log")
type Task struct {Type string `json:"type"`Images []string `json:"images"`Question string `json:"question"`WebsiteURL string `json:"websiteURL"`}
type Payload struct {ClientKey string `json:"clientKey"`Task Task `json:"task"`}
func main() {url := "https://api.nocaptchaai.com/createTask"
payload := Payload{ ClientKey: "YOUR_API_KEY", Task: Task{ Type: "AwsWafClassification", Images: []string{"/9j/4AAQSkZJRgABAgAAAQABAA", "/9j/4AAQSkZJRgABAgAAAQABAA", "/9j/4AAQSkZJRgABAgAAAQABAA", "/9j/4AAQSkZJRgABAgAAAQABAA", "/9j/4AAQSkZJRgABAgAAAQABAA"}, Question: "aws:grid:bag", WebsiteURL: "https://example.com", },}
jsonData, err := json.Marshal(payload)if err != nil { log.Fatalf("Error marshalling JSON: %v", err)}
req, err := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))if err != nil { log.Fatalf("Error creating request: %v", err)}req.Header.Set("Content-Type", "application/json")
client := &http.Client{}resp, err := client.Do(req)if err != nil { log.Fatalf("Error sending request: %v", err)}defer resp.Body.Close()
var result map[string]interface{}if err := json.NewDecoder(resp.Body).Decode(&result); err != nil { log.Fatalf("Error decoding response: %v", err)}
fmt.Println(result["solution"])}
using System;using System.Net.Http;using System.Text;using System.Text.Json;using System.Threading.Tasks;
class Program{private static readonly HttpClient client = new HttpClient();
static async Task Main(){ string url = "https://api.nocaptchaai.com/createTask";
var payload = new { clientKey = "YOUR_API_KEY", task = new { type = "AwsWafClassification", images = new[] { "/9j/4AAQSkZJRgABAgAAAQABAA", "/9j/4AAQSkZJRgABAgAAAQABAA", "/9j/4AAQSkZJRgABAgAAAQABAA", "/9j/4AAQSkZJRgABAgAAAQABAA", "/9j/4AAQSkZJRgABAgAAAQABAA" }, question = "aws:grid:bag", websiteURL = "https://example.com" } };
string jsonPayload = JsonSerializer.Serialize(payload); var content = new StringContent(jsonPayload, Encoding.UTF8, "application/json");
try { HttpResponseMessage response = await client.PostAsync(url, content); response.EnsureSuccessStatusCode();
string responseBody = await response.Content.ReadAsStringAsync(); var result = JsonSerializer.Deserialize<JsonElement>(responseBody);
if (result.TryGetProperty("solution", out JsonElement solution)) { Console.WriteLine(solution.ToString()); } } catch (Exception ex) { Console.WriteLine($"Error: {ex.Message}"); }}}
use reqwest::Client;use serde_json::json;use tokio;
#[tokio::main]async fn main() {let url = "https://api.nocaptchaai.com/createTask";
let payload = json!({ "clientKey": "YOUR_API_KEY", "task": { "type": "AwsWafClassification", "images": [ "/9j/4AAQSkZJRgABAgAAAQABAA", "/9j/4AAQSkZJRgABAgAAAQABAA", "/9j/4AAQSkZJRgABAgAAAQABAA", "/9j/4AAQSkZJRgABAgAAAQABAA", "/9j/4AAQSkZJRgABAgAAAQABAA" ], "question": "aws:grid:bag", "websiteURL": "https://example.com" }});
let client = Client::new();
match client.post(url) .json(&payload) .send() .await { Ok(response) => { if let Ok(json_response) = response.json::<serde_json::Value>().await { if let Some(solution) = json_response.get("solution") { println!("{}", solution); } } }, Err(e) => { eprintln!("Error: {}", e); }}}