Logo of «GitHub»
  • We support API for «PHP» language
  • We support API for «Python» language
  • We support API for «Go» language
  • We support API for «Ruby» language
  • We support API for «C#» language
  • We support API for «Java» language
  • We support API for «JavaScript» language

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