The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Hot answers tagged

5

I've developed and host an online city database called GeoDB Cities which should fit the bill. Here's how I would implement a Random-City-Name feature: 1) Do an initial query to get the total count of all available cities. The results are chunked by pages, but each result also contains metadata about the total count of cities. You need to extract metadata....


5

You will need a way of measuring fame, but wikidata will probably be a good resource for you. Here are women who could have been alive in the last one hundred years, who have the most Wikimedia articles about them (across all the different language Wikipedias, Wikiquotes, etc), and who have pages about them on English WikiQuote. http://tinyurl.com/...


3

These converters almost meet my requirements (see question text; per 4-4-2016): European Central Bank Euro foreign exchange reference rates page, which is updated once per working day, and available in several formats, e.g as an XML file. Currencylayer API Source: several foreign exchanges. Limited to 1000 requests/month, source currency is US$ Free ...


3

Currencies at the end of the day are published as settlements, which are often averages of the day's trading and are used as references. For real-time currency data, you actually are looking at Bid/Ask data (for example). This means that there isn't really a single correct or published "current exchange rate". Even for Bid/Ask prices, each marketplace will ...


2

Do not use the REST API, it's old and deprecated. Use the Action API. You can get the results you need using the package_search action, eg for datasets modified since 1st August 2026: http://demo.ckan.org/api/action/package_search?fq=metadata_modified:[2016-08-01T00:00:00.000Z TO NOW] For datasets created since then: http://demo.ckan.org/api/action/...


2

You can use Wikidata with a SPARQL query, which may be useful if you also want some facts about the city SELECT DISTINCT ?city ?label WHERE { ?city rdfs:label ?label. ?city wdt:P31 wd:Q515. FILTER((LANG(?label)) = "en") } ORDER BY UUID() LIMIT 10 Link to Query Note1 : UUID() is to give random results. RAND() doesn't work with Wikidata (source). ...


2

The Quandl API for Currency Data seems to meet all requirements: Quandl offers spot exchange rates from the Bank of England (BOE) for over 40 currencies into USD, GBP and EUR. We also offer rates from the European Central Bank (ECB) for 30+ currencies into EUR and from the Federal Reserve Bank of St. Louis (FRED) for 20+ currencies into USD. You need to ...


1

I do not think that Wikidata is a reliable source in this case. A basic query is here below. The first revision of this answer contains more advanced attempt. SELECT DISTINCT ?code ?capitalLabel ?countyLabel WHERE { ?county wdt:P31/wdt:P279* wd:Q47168 . ?county wdt:P36 ?capital . ?county wdt:P131 ?state . ?state wdt:P31 wd:...


1

1Forge (http://1forge.com) provides what you're looking for. To get rates for specific currency pairs try this: https://forex.1forge.com/1.0.1/quotes?pairs=EURUSD,GBPJPY,AUDUSD If you just want to convert currencies like in your example, try this: https://forex.1forge.com/1.0.1/convert?from=USD&to=EUR&quantity=100


1

One effective currency conversion API for me is money.js Features: 165+ Currencies, updated often, infinite free requests. You simply give it the currencies you wish to convert, and off you go! It's really simple & easy to use. For example: fx.convert(1, {from: 'GBP', to: 'EUR'}) Will return 1 pound (GBP) in euros, with immense precision. Right now, ...


Only top voted, non community-wiki answers of a minimum length are eligible