closeHello! Click here if you would like to know what Factolex is about.

Get Term

Retrieve a term from Factolex.

This query also retrieves all facts of the term.

URL

http://api.factolex.com/v1/get?term=term

Authentication

Currently no authentication is needed to execute this function.

Parameters

termGet the facts for this term
tagsoptAllows to specify a term more specifically.
idoptAllows to specify a term uniquely. Usually this id can be retrieved when multiple terms are found for a term title.
langoptas usual
formatoptas usual

Example

Query:

http://api.factolex.com/v1/get?term=roof

Response:

<response>
  <term>
    <title>Roof</title>
    <id>c2e0yzO9</id>
    <link>http://en.factolex.com/Roof</link>
    <facts>
      <fact>
        <title>the covering on the uppermost part of a building</title>
        <source>http://en.wikipedia.org/wiki/Roof</source>
      </fact>
      <fact>
        <title>protects the building and its contents from the effects of weather</title>
        <source>http://en.wikipedia.org/wiki/Roof</source>
      </fact>
    </facts>
  </term>
</response>

Errors

101Parameter 'term' missing.
201The term could not be found.
202Multiple terms were found. Please be more specific.

Error-Query:

http://api.factolex.com/v1/get

Error-Response:

<error>
  <code>101</code>
  <message>Parameter 'term' missing.</message>
</error>

Back to the overview page

API Methods
getRetrieve a term from Factolex.
lexiconRetrieve a user's lexicon.
searchSearch for a term or a fact within the database of Factolex.
Home  |  About  |  FAQ  |  Feedback  |  Tools  |  Stats  |  Contact Us  |  API  |  Blog
Change language to: