Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Wolfram API Query for don don
var request = require('request');
function wolframQuery(query) {
var options = {
url: '<! PUT YOUR API KEY HERE !>&i=' + encodeURI(query),
headers: {}
function callback(error, response, body) {
if (!error && response.statusCode == 200) {
request(options, callback);
wolframQuery("how far from new york to los angeles");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment