Using the API, users can input a block of text and receive suggestions for spelling and grammar corrections. The API checks for a wide range of issues, such as misspelled words.
It will receive a parameter and provide you with a JSON.
Besides API call limitations per month, there are no other limitations.
It will check your spelling and provide you with better grammar options.
writing - Endpoint Features
| Object | Description |
|---|---|
Request Body |
[Required] Json |
{"elements":[{"id":0,"errors":[{"word":"heLLo","position":17,"suggestions":["hello","hell","hellos","hells","helloed","hallo","hullo","hellhole","he'll","heels"]},{"word":"i","position":23,"suggestions":["I"]},{"word":"wanna","position":37,"suggestions":["want","Hanna","wan","Wanda","Wang","wand","wane","wannabe","wean","Weinan"]}]}],"spellingErrorCount":3}
curl --location --request POST 'https://zylalabs.com/api/920/grammar+api/737/writing' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"language": "enUS",
"fieldvalues": "wht happend",
"config": {
"forceUpperCase": false,
"ignoreIrregularCaps": false,
"ignoreFirstCaps": true,
"ignoreNumbers": true,
"ignoreUpper": false,
"ignoreDouble": false,
"ignoreWordsWithNumbers": true
}
}'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
The Grammar API returns a JSON object containing spelling and grammar suggestions based on the input text. It includes details about identified errors and possible corrections.
The key fields in the response include "elements," which lists errors found, "errors," detailing each error with the "word," "position," and "suggestions" for corrections, and "spellingErrorCount," indicating the total number of spelling errors.
The response data is structured as a JSON object. It contains an array of "elements," each with error details, and a count of spelling errors, allowing users to easily parse and utilize the information.
The primary parameter for the POST writing endpoint is the text block to be checked. Users can customize their requests by providing different text inputs for analysis.
The endpoint provides information on spelling mistakes and grammar suggestions, including the specific words that are incorrect and a list of possible corrections for each identified error.
Data accuracy is maintained through continuous updates and improvements to the underlying algorithms that identify spelling and grammar errors, ensuring reliable suggestions for users.
Typical use cases include enhancing chatbot responses, providing feedback in language learning apps, and improving content quality in content management systems by correcting spelling and grammar before publication.
Users can utilize the returned data by extracting the "suggestions" for each error and implementing them in their applications, allowing for real-time corrections and improved text quality.
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
2,071ms
Service Level:
100%
Response Time:
11,322ms
Service Level:
100%
Response Time:
174ms
Service Level:
100%
Response Time:
176ms
Service Level:
100%
Response Time:
1,177ms
Service Level:
100%
Response Time:
213ms
Service Level:
100%
Response Time:
2,809ms
Service Level:
100%
Response Time:
334ms
Service Level:
100%
Response Time:
2,171ms
Service Level:
100%
Response Time:
1,738ms