How do I authenticate with this API?
Create an API key in your Datpaq dashboard and send it with each request as a bearer token in the Authorization header.
Multi-language spell checking with correction suggestions and grammar hints. English, Spanish, French, German, and Italian — one REST call, structured results.
Type or paste text in any supported language and see spelling issues, suggestions, and grammar hints in real time. No API key needed.
Pick a language and type text with intentional typos to see results.
57 / 10,000 chars
Spelling issues, correction suggestions, and grammar hints.
Spelling issues
Grammar hints
5 supported languages
English, Spanish, French, German, and Italian — switch with a single language param.
Suggestions on every typo
Each misspelled word returns ranked correction candidates alongside its position in the text.
Grammar hints included
Pass includeGrammar=true to surface capitalization, spacing, and style issues beyond spelling.
Why Spell Check API
5 Languages
English, Spanish, French, German, and Italian — covering the most common languages in user-generated content and documents.
Correction Suggestions
Each misspelled word comes with ranked correction candidates. Toggle suggestions off for a lightweight detection-only response.
Grammar Hints
Optional grammar and style hints surface capitalization issues, spacing problems, and other common writing errors alongside spelling results.
Word-Level Detail
Results include the misspelled token, its character position in the original text, and a suggestions array — all in one structured response.
GET-Friendly
URL-encode your text and pass language, suggestions, and includeGrammar as query params. No request body needed for single-text calls.
Structured Output
Consistent response shape with correlationId, per-word stats, and a flat suggestions map — easy to parse and display in any UI.
/api/spell-check
GET or POST to the same route. Add suggestions=true and includeGrammar=true for the full response.
Spell check (POST)
Submit text with optional language, suggestions, and grammar flags in the JSON body. Returns issues, suggestions, and grammar hints.
Spell check (GET)
Same as POST — pass text, language, suggestions, and includeGrammar as URL query params. No request body required.
Supported languages
Returns the list of supported language codes and which dictionaries are loaded in the current runtime.
Health check
Returns service status, version, uptime, and dictionary metadata.
Prometheus metrics
Request counts, cache hit rates, processing durations, and error rates.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| text | string | yes | — | Text to spell-check (≤ 10,000 characters). |
| language | string | no | en | Language code: "en", "es", "fr", "de", or "it". |
| suggestions | boolean | no | true | Include correction suggestions for each misspelled word. |
| includeGrammar | boolean | no | true | Include grammar and style hints alongside spelling issues. |
| api_key | string | yes | — | API key via query param, or pass as x-api-key header. |
GET or POST to the same endpoint. All params work in query string or JSON body.
URL-encoded text with suggestions and grammar hints enabled.
GET https://datpaq.com/api/spell-check?api_key=YOUR_API_KEY&text=This%20is%20a%20sampel%20sentance.&language=en&suggestions=true&includeGrammar=true
JSON body with a different language — same response shape.
POST https://datpaq.com/api/spell-check
Content-Type: application/json
x-api-key: YOUR_API_KEY
{
"text": "El documeto tiene algunas palabras maal escritas.",
"language": "es",
"suggestions": true,
"includeGrammar": true
}https://datpaq.com/health
https://datpaq.com/metrics
Error reference
Every error response includes a correlationId for request tracing and a clear error field.
The text parameter is required. Pass ?text= for GET or "text" in the JSON body for POST.
Input exceeds the 10,000 character limit. Trim the text or split it into smaller chunks.
Language code not recognized. Supported values: "en", "es", "fr", "de", "it".
API key missing or invalid. Pass api_key as a query param or x-api-key as a header.
The requested path does not exist. Check /api/spell-check and /api/spell-check/languages.
100 requests per 15 minutes per IP exceeded. Retry after the window resets.
Internal error during spell-check. The correlationId in the response helps with debugging.
Example error response
{
"error": "Validation failed",
"details": "Text is required",
"correlationId": "1780011610881-z0qs7cw52"
}FAQ
Create an API key in your Datpaq dashboard and send it with each request as a bearer token in the Authorization header.
Yes. Datpaq APIs include a free tier for building, testing, and small production workloads before you move to a paid plan.
Datpaq APIs use REST over HTTPS and return JSON by default. Endpoint docs show the supported methods, query parameters, request bodies, and response fields.
Each API documents rate limits, validation rules, and error responses in the landing page and API docs so integrations can retry and fail cleanly.
One GET request returns misspelled words, correction suggestions, and grammar hints. URL-encode your text, add your API key — done.