api.lexicala.com

Lexicala API

Lexicala API

The Lexicala API provides access to lexicographic data from K Dictionaries' global series of lexicographic resources.
More information: https://helloreverb.com
Contact Info: api@kdictionaries.com
Version: 0.0.1
BasePath:/
All rights reserved
http://apache.org/licenses/LICENSE-2.0.html

Access

Methods

[ Jump to Models ]

Table of Contents

Data

Tests

Data

Up
get /entries/{entry_id}
(getEntry)
get entry by its ID

Path parameters

entry_id (required)
Path Parameter — The entry ID of the entry

Consumes

This API call consumes the following media types via the Content-Type request header:
  • application/json

Return type

Example data

Content-Type: application/json
{"empty": false}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
  • application/json

Responses

200

Success Entry

403

Forbidden ErrorResponse

404

Entry not found ErrorResponse

500

Internal Server Error ErrorResponse

Up
get /senses/{sense_id}
(getSense)
get sense by its ID

Path parameters

sense_id (required)
Path Parameter — The sense ID of the sense

Consumes

This API call consumes the following media types via the Content-Type request header:
  • application/json

Return type

Object

Example data

Content-Type: application/json
{
  "bytes": [
    123,
    125
  ],
  "empty": false
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
  • application/json

Responses

200

Success Object

403

Forbidden ErrorResponse

404

Sense not found ErrorResponse

500

Internal Server Error ErrorResponse

Up
get /languages
(listLanguages)
list all supported languages

Consumes

This API call consumes the following media types via the Content-Type request header:
  • application/json

Return type

Example data

Content-Type: application/json
{"empty": false}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
  • application/json

Responses

200

Success LanguagesResponse

500

Internal Server Error ErrorResponse

Up
get /search
(search)
search for abbreviated entries with filters in query

Consumes

This API call consumes the following media types via the Content-Type request header:
  • application/json

Query parameters

source (optional)
Query Parameter — The resource to search within default: global
language (optional)
Query Parameter — The language code of the entry's language
morph (optional)
Query Parameter — Whether to search in headword inflections if exist default: false
text (optional)
Query Parameter — The headword text to search for
regex (optional)
Query Parameter — Whether given text is a regular expression
gender (optional)
Query Parameter — The grammatical gender to search for
pos (optional)
Query Parameter — The part of speech (POS) to search for
number (optional)
Query Parameter — The grammatical number to search for
subcategorization (optional)
Query Parameter — The subcategorization (e.g. countable, transitive, ...) to search for
monosemous (optional)
Query Parameter — Whether to only return monosemous entries
polysemous (optional)
Query Parameter — Whether to only return polysemous entries
sample (optional)
Query Parameter — Number of randomly-sampled results to return
page (optional)
Query Parameter — Page number of results to return (1-indexed) default: 1
page-length (optional)
Query Parameter — Number of results to display per page default: 10
analyzed (optional)
Query Parameter — Whether to search using language analyzer or to get exact matches only default: false
synonyms (optional)
Query Parameter — Whether to search in synonyms if exist default: false

Return type

Object

Example data

Content-Type: application/json
{
  "bytes": [],
  "empty": true
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
  • application/json

Responses

200

Success Object

403

Forbidden ErrorResponse

500

Internal Server Error ErrorResponse

Up
get /search-entries
(search_1)
search for full entries with filters in query

Consumes

This API call consumes the following media types via the Content-Type request header:
  • application/json

Query parameters

source (optional)
Query Parameter — The resource to search within default: global
language (optional)
Query Parameter — The language code of the entry's language
morph (optional)
Query Parameter — Whether to search in headword inflections if exist default: false
text (optional)
Query Parameter — The headword text to search for
regex (optional)
Query Parameter — Whether given text is a regular expression
gender (optional)
Query Parameter — The grammatical gender to search for
pos (optional)
Query Parameter — The part of speech (POS) to search for
number (optional)
Query Parameter — The grammatical number to search for
subcategorization (optional)
Query Parameter — The subcategorization (e.g. countable, transitive, ...) to search for
monosemous (optional)
Query Parameter — Whether to only return monosemous entries
polysemous (optional)
Query Parameter — Whether to only return polysemous entries
sample (optional)
Query Parameter — Number of randomly-sampled results to return
page (optional)
Query Parameter — Page number of results to return (1-indexed) default: 1
page-length (optional)
Query Parameter — Number of results to display per page default: 10
analyzed (optional)
Query Parameter — Whether to search using language analyzer or to get exact matches only default: false
synonyms (optional)
Query Parameter — Whether to search in synonyms if exist default: false

Return type

Object

Example data

Content-Type: application/json
{
  "bytes": [],
  "empty": true
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
  • application/json

Responses

200

Success Object

403

Forbidden ErrorResponse

500

Internal Server Error ErrorResponse

Tests

Up
get /test
(test)
Test that API is running

Consumes

This API call consumes the following media types via the Content-Type request header:
  • application/json

Return type

Example data

Content-Type: application/json
{"empty": false}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
  • application/json

Responses

200

Success TestResponse

503

Service Unavailable ErrorResponse

Models

[ Jump to Methods ]

Table of Contents

  1. Entry -
  2. ErrorResponse -
  3. LanguagesResponse -
  4. LanguagesResponse_resources -
  5. TestResponse -

LanguagesResponse_resources - Up

global (optional)
password (optional)