Web API of Poio

Text Prediction

The text prediction functionality of Poio is accessible via an API on mashape. We use any revenue from mashape to support the development of the Poio project. To use any of the functionality of our API you have to create an account on mashape. Find the documentation of the API and more information about pricing here:

https://www.mashape.com/pbouda/poio

Or you can deploy Poio on your own server, see Deploy and develop Poio for more information.

Supported Languages

This function checks for all the supported languages and returns them as ISO 639-3 codes.

URL:

<ROOT>/api/languages

Parameters

This API method takes no parameters.

Return

  • languages_list (json)

The data is returned as JSON in the HTTP response. The returned data is a list (array) of all the supported languages as ISO 639-3 codes.

For example:

http://www.poio.eu/api/languages

Corpus Files

This function looks for all the avaible corpus files for a given language and returns a list URLs to those files.

URL:

<ROOT>/api/corpus

Parameters

  • iso (string)

Pass the ISO 639-3 code of the language for that you want to get a list of corpus files as a GET paramter iso in the HTTP request:

<ROOT>/api/corpus?iso=<iso>

Return

  • files (json)

The data is returned as JSON in the HTTP response. The returned data is a list (array) of all the paths for all the avaible corpus files for the given language.

For example:

http://www.poio.eu/api/corpus?iso=bar

For more information on how to use the corpus files, see How to use the corpus files.