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.
{"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, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key 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.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
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. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
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.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
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:
334ms
Service Level:
100%
Response Time:
176ms
Service Level:
100%
Response Time:
1,177ms
Service Level:
100%
Response Time:
2,170ms
Service Level:
100%
Response Time:
213ms
Service Level:
100%
Response Time:
2,809ms
Service Level:
100%
Response Time:
1,738ms