Making Website, Want to Query Search API


I want to display search results from the Twitter Search API on my website.

I have been able to get JSON data from the Search API on my own computer using Node and a node library called Twit. Now I want to make my code run on the server, so that when someone connects to the website, a query is sent to the API.

Can I simply upload my JavaScript code to my website and link to it in my HTML? Or do I need to use something like Express to make it work?


This is quite a broad programming query, rather than just being about the Twitter API - yes, I think you’d want to use something like Express for that, but I’m not sure we are going to be able to offer you lots of guidance on our forums here. If you’ve got the code working locally to query the API, that’s a great start :slight_smile: