Logo of «GitHub»
  • 我们支持 «PHP» 语言的API
  • 我们支持 «Python» 语言的API
  • 我们支持 «Go» 语言的API
  • 我们支持 «Ruby» 语言的API
  • 我们支持 «C#» 语言的API
  • 我们支持 «Java» 语言的API
  • 我们支持 «JavaScript» 语言的API

Quick Start

To use the API you need to obtain you API key from the Dashboard.
The key is used to authenticate all your requests to the API endpoints.

For quick integration you can use one of the libraries:

Or you can make HTTP requests directly to the API endpoints according to the specification.

API Endpoints and Data Formats

Endpoints

The main API endpoint is: https://api.2captcha.com

Request method: POST
Data format: JSON
Content-Type: application/json

Basic Workflow

The process of interaction with the API:

  1. Submit your task using createTask method and get the task id
  2. Get the result for the task using getTaskResult method
  3. Use the result according to your use-cases
  4. Send feedback with reportCorrect and reportIncorrect methods