Google Grammar Check API

The Google Grammar Check API uses AI to make grammar correction suggestions based on a query to Google.

SerpApi is able to make sense of this information and extract checkmark status, suggested_text, and suggested_replacements from the results page.

JSON structure overview

{
  "grammar_check": [
    {
      "checkmark": "Boolean - It returns 'true' if the grammar check badge is present.",
      "suggested_text": "String - The suggested text with proper grammar.",
      "suggested_replacements": "Array - Search terms that are highlighted in the suggested text.",
    },
    ...
  ]
}

Results for: I is here to gather they're supplies. grammar check

Results for: I is here to gather they're supplies. grammar check

JSON Example

{
  "grammar_check": {
    "suggested_text": "I am here to gather their supplies",
    "suggested_replacements": [
      "I am",
      "their"
    ]
  }
}