{
  "openapi": "3.0.1",
  "info": {
    "title": "CaptchaNo Captcha Solver — reCAPTCHA, Turnstile, DataDome",
    "description": "Solve reCAPTCHA v2, v3 and Enterprise, Cloudflare Turnstile, DataDome and image captchas from any Actor or the Apify API. Batch solving with bounded concurrency, retries and a spend cap. Bring your own CaptchaNo API key.",
    "version": "1.0",
    "x-build-id": "lyoCN4tPWxovhif2l"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dishistech~captchano-captcha-solver/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dishistech-captchano-captcha-solver",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/dishistech~captchano-captcha-solver/runs": {
      "post": {
        "operationId": "runs-sync-dishistech-captchano-captcha-solver",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/dishistech~captchano-captcha-solver/run-sync": {
      "post": {
        "operationId": "run-sync-dishistech-captchano-captcha-solver",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "apiKey": {
            "title": "CaptchaNo API key",
            "type": "string",
            "description": "Your CaptchaNo API key (starts with <code>cn-</code>). Stored encrypted by Apify and never written to logs or the dataset. Required to solve anything: without a key the run finishes immediately with one 'skipped' item explaining how to get one."
          },
          "tasks": {
            "title": "Tasks (batch)",
            "type": "array",
            "description": "Array of task objects, solved in parallel. Each task takes the same fields as <code>POST /v1/solve</code>: <code>type</code> (recaptcha_v2 | recaptcha_v3 | recaptcha_enterprise | turnstile | datadome | image), <code>url</code>, <code>sitekey</code>, <code>action</code>, <code>minScore</code>, <code>invisible</code>, <code>cData</code>, <code>pageData</code>, <code>challengeUrl</code>, <code>body</code> (base64 image), <code>userAgent</code>, <code>proxy</code>. Leave empty to use the single-task fields below."
          },
          "type": {
            "title": "Captcha type",
            "enum": [
              "recaptcha_v2",
              "recaptcha_v3",
              "recaptcha_enterprise",
              "turnstile",
              "datadome",
              "image"
            ],
            "type": "string",
            "description": "The kind of captcha to solve."
          },
          "url": {
            "title": "Page URL",
            "type": "string",
            "description": "URL of the page that shows the captcha. Required for every type except image."
          },
          "sitekey": {
            "title": "Site key",
            "type": "string",
            "description": "The captcha site key found in the page source (reCAPTCHA / Turnstile)."
          },
          "action": {
            "title": "Action",
            "type": "string",
            "description": "reCAPTCHA v3 / Enterprise or Turnstile action name, if the page uses one."
          },
          "minScore": {
            "title": "Minimum score",
            "minimum": 0.1,
            "maximum": 0.9,
            "type": "number",
            "description": "reCAPTCHA v3 / Enterprise minimum score (0.1–0.9)."
          },
          "invisible": {
            "title": "Invisible reCAPTCHA",
            "type": "boolean",
            "description": "Set when the reCAPTCHA v2 widget is invisible."
          },
          "challengeUrl": {
            "title": "DataDome challenge URL",
            "type": "string",
            "description": "The DataDome challenge (captcha-delivery) URL. Required for DataDome."
          },
          "proxy": {
            "title": "Proxy",
            "type": "string",
            "description": "Proxy as <code>http://user:pass@host:port</code> (http, socks4 or socks5). Required for DataDome. Credentials are masked in logs and output."
          },
          "userAgent": {
            "title": "User agent",
            "type": "string",
            "description": "Browser user agent to bind the solution to (optional)."
          },
          "waitSeconds": {
            "title": "Wait per request (seconds)",
            "minimum": 0,
            "maximum": 120,
            "type": "integer",
            "description": "How long each solve request may block waiting for the answer (<code>?wait=</code>, max 120). Tasks still solving afterwards are polled every 5 s for up to 180 s.",
            "default": 60
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many tasks to solve in parallel.",
            "default": 5
          },
          "maxSpendUsd": {
            "title": "Budget cap (USD)",
            "minimum": 0.0001,
            "type": "number",
            "description": "Optional. Stop submitting new tasks once the CaptchaNo cost of this run reaches this amount. Tasks already in progress still finish. Failed solves are never billed."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}