Overview
Endpoints, request format, and parameters common to all HTTP API commands.
The HTTP API uses a single endpoint.
It is not RESTful.
You control the API using the cmd parameter.
On this page
API endpoint
https://svc.webspellchecker.net/api
Pass parameters in the query string (GET) or request body (POST).
serviceid is required.
http(s)://<host>:<port>/<virtual_dir>/api
Pass parameters in the query string (GET) or request body (POST).
serviceid is not used.
Request method
Use GET or POST.
There is no functional difference.
GET: parameters go in the URL query string.
POST: parameters go in the request body.
Raw
key=value&...parameters.Or a JSON payload.
cmd (command)
cmd (command)cmd selects the operation to run.
Examples: check, autocorrect, autocomplete.
See command docs for the full parameter list per command.
Common parameters
These parameters can be used with any cmd.
At a glance:
serviceid: Cloud API keyformat: response format (jsonorxml)callback: JSONP wrapper (JSON only)short_answer: shorten JSON keys (trueorfalse)
serviceid
serviceidCloud only. Required for Cloud requests.
API key required to make requests.
format
formatDefault: json.
Response format.
Supported values:
json(default)xml
callback
callbackUse it only with format=json.
Wraps the response as JSONP:
/**/<callback_value>(<actual_response>)
serviceid
serviceidCloud only. Required for Cloud requests.
API key required to make requests.
short_answer (boolean)
short_answer (boolean)JSON only. It does not affect XML output.
When true, shortens keys in the JSON response.
This reduces the response size.
Example (short_answer=false):
Example (short_answer=true):
Boolean parameter values
When a parameter is boolean, these values are accepted.
True values:
yesy1enableontruet
False values:
non0disableofffalsef
Errors
See HTTP response status codes.
Errors across commands use the same response structure.
error: alwaystruefor an error responsemessage: human-readable description
Example:
Last updated
Was this helpful?