Get started with Copyleaks’ Grammar Checker API to detect and correct over 30 types of writing issues across grammar, mechanics, sentence structure, and word choice. The API is available in two ways:
  1. Sync: Submit text via an HTTP request and receive the analysis in the response.
  2. Async: Use the Authenticity API to submit larger documents and receive results via webhook.

Get started

1

Before you begin

Before you start, ensure you have the following:
2

Installation

Choose your preferred method for making API calls.
3

Login

To perform a scan, we first need to generate an access token. For that, we will use the login endpoint. The API key can be found on the Copyleaks API Dashboard.Upon successful authentication, you will receive a token that must be attached to subsequent API calls via the Authorization: Bearer <TOKEN> header. This token remains valid for 48 hours.
Response
4

Send request

Use the Grammar Checker endpoint. Provide a unique scanId for each request.
5

Interpreting the response

The Grammar Checker Response contains detailed feedback under the corrections and score properties. The score provides an overall quality metric and a breakdown by category, while corrections pinpoints the exact location and suggested changes for each issue.
Example Response Snippet

Next steps

Full API Reference

Explore the complete documentation for the Grammar Checker response object.

Correction Types

See a detailed list of all supported correction types and languages.

Try it

Test the Copyleaks grammar checker with your own text and see suggestions in seconds.