{
  "openapi": "3.1.0",
  "info": {
    "title": "Spell Check API",
    "version": "1.0.0",
    "description": "English spell check with ranked did-you-mean suggestions from a 132,729-word dictionary.\n\nCheck English spelling and get ranked \"did you mean\" suggestions. Validity comes from a curated 132,000-word dictionary (SCOWL: US and UK spellings, contractions, common proper names and abbreviations), so real misspellings like \"teh\" or \"alot\" are caught while rare legitimate words pass; suggestions are ranked by real-world word frequency using edit-distance matching. Check a single word, or scan a whole text (up to 5,000 characters) for misspellings — acronyms are skipped and possessives are understood.",
    "contact": {
      "name": "Data and APIs",
      "url": "https://dataandapis.com/contact"
    },
    "termsOfService": "https://dataandapis.com/terms-of-service",
    "license": {
      "name": "Data and APIs Terms of Service",
      "url": "https://dataandapis.com/terms-of-service"
    },
    "x-logo": {
      "url": "https://dataandapis.com/images/spell-check.webp"
    }
  },
  "externalDocs": {
    "description": "Documentation, live tester and pricing",
    "url": "https://dataandapis.com/apis/spell-check"
  },
  "servers": [
    {
      "url": "https://api-spell-check.dataandapis.com"
    }
  ],
  "tags": [
    {
      "name": "Tools",
      "description": "Spell Check API belongs to the Tools category of the Data and APIs catalog."
    }
  ],
  "paths": {
    "/v1/check": {
      "post": {
        "operationId": "checkTextPost",
        "summary": "Check Text (POST)",
        "description": "Check Text (POST) endpoint of the Spell Check API. Costs 1 token per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/spell-check/check-text-post"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "text": "I beleive this sentance has two erors."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "ok": true,
                  "words_checked": 6,
                  "misspelled_count": 3,
                  "misspelled": [
                    {
                      "word": "beleive",
                      "suggestions": [
                        "believe"
                      ]
                    },
                    {
                      "word": "sentance",
                      "suggestions": [
                        "sentence"
                      ]
                    },
                    {
                      "word": "erors",
                      "suggestions": [
                        "errors",
                        "eros",
                        "errs"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      },
      "get": {
        "operationId": "checkWord",
        "summary": "Check Word",
        "description": "Check Word endpoint of the Spell Check API. Costs 1 token per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/spell-check/check-word"
        },
        "parameters": [
          {
            "name": "word",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "speling"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "ok": true,
                  "word": "speling",
                  "correct": false,
                  "suggestions": [
                    "spelling",
                    "spewing",
                    "spieling"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Key",
        "description": "Create a free key at https://dataandapis.com/sign-up. 500 tokens a month on the Free plan; this API costs 1 token per call."
      }
    }
  },
  "security": [
    {
      "ApiKey": []
    }
  ]
}