Moneyterms offers a simple API which allows you to fetch either:
- definitions of a small number of specified financial terms, or,
- an entire glossary or concise definitions.
The terms and definitions are those of the alphabetic index pages of moneyterms.co.uk.
You may fetch up to 50 specified definitions using a simple GET request. This requires one parameter "s", which is a urlencoded, newline seperated list of identifiers. The identifiers are the page slugs of the full articles. So, to get the concise definitions of the terms for which the full articles are at:
You use this:
By default the callback function is "moneyterms.add". If you want to use a different callback, pass the name in the GET request as the value of a parameter called c.
The full glossary
To use the full glossary API please contact us for an API key. You simply send a request to http://moneyterms.co.uk/api/all/ with the key as the value of the parameter "k". You may use either a GET or POST request.
This will return an alphabetically ordered list of the entire glossary. Each list item will contain [identifier, title, content]. Please note some identifiers will be repeated, as synonymous terms will have a single full article, but multiple entries in this glossary.
The intended use of this is to allow you to use the glossary without linking to Moneyterms on each use, but instead to your own glossary, which then links to Moneyterms.