Now let's create an express server which queries out for this search term and just returns the json. You'll need to do a few things:express
request(searchURL)
to the response.var url = require('url'); var request = require('request'); var express = require('express'); options = { protocol: "http:", host: "search.twitter.com", pathname: '/search.json', query: { q: "codeschool"} }; var searchURL = url.format(options); var app = express.createServer(); app.get('/', function(req, response){ request(searchURL).pipe(response); }); app.listen(8080);