Stock ticker symbol lookup API [closed]

You can use yahoo’s symbol lookup like so: http://d.yimg.com/autoc.finance.yahoo.com/autoc?query=yahoo&callback=YAHOO.Finance.SymbolSuggest.ssCallback Where query is the company name. You’ll get something like this in return: YAHOO.Finance.SymbolSuggest.ssCallback( { “ResultSet”: { “Query”: “ya”, “Result”: [ { “symbol”: “YHOO”, “name”: “Yahoo! Inc.”, “exch”: “NMS”, “type”: “S”, “exchDisp”: “NASDAQ” }, { “symbol”: “AUY”, “name”: “Yamana Gold, Inc.”, “exch”: “NYQ”, “type”: “S”, “exchDisp”: … Read more

Call another rest api from my server in Spring-Boot

This website has some nice examples for using spring’s RestTemplate. Here is a code example of how it can work to get a simple object: private static void getEmployees() { final String uri = “http://localhost:8080/springrestexample/employees.xml”; RestTemplate restTemplate = new RestTemplate(); String result = restTemplate.getForObject(uri, String.class); System.out.println(result); }

How can I retrieve Wiktionary word content?

The Wiktionary API can be used to query whether or not a word exists. Examples for existing and non-existing pages: http://en.wiktionary.org/w/api.php?action=query&titles=test http://en.wiktionary.org/w/api.php?action=query&titles=testx The first link provides examples on other types of formats that might be easier to parse. To retrieve the word’s data in a small XHTML format (should more than existence be required), request … Read more