Home Browse Index Explore Tags Add Term FAQ Top Users

API Docs

The Factolex API follows a simple REST approach. Parameters for methods are set through URL parameters.

Documentation for the Factolex API is only available in English.

Output Formats

The output of each method is available in 3 formats:

htmlActually outputs XML, prepared for being viewed in a browser.
xmleXtensible Markup Language
jsonBest for processing the response using Javascript.

When this format is used, an additional parameter is available:

  • callback Will wrap the result in a function call

The format can be changed by appending a URL parameter &format=format

The parameter is optional, in which case the default (shown in bold in the list above) is used.

Language

You can select a language in which to query or access Factolex. Currently only these languages are available:

enEnglish
deGerman (Deutsch)

The language can be changed by appending a URL parameter &lang=language (using the 2-letter name, as listed above).

The parameter is optional, in which case the browser accept language will be used, or English as a fallback.

Methods

These methods are currently available in the Factolex API:

getRetrieve a term from Factolex.
searchSearch for a term or a fact within the database of Factolex.
Change language to: