Get call using ExpressJS

share link

by Abdul Rawoof A R dot icon Updated: Mar 21, 2023

technology logo
technology logo

Guide Kit Guide Kit  

A GET request, in simple terms, is a way for you to grab data from a data source with the help of the internet. It's done using the GET request method, which is a very common HTTP request method (like POST, PUT, or DELETE). Despite the capitalization, “GET” is not an acronym, so it doesn't stand for anything.


GET requests are the most common and widely used methods in APIs and websites. Simply put, the GET method is used to retreive data from a server at the specified resource. For example, say you have an API with a /users endpoint. Making a GET request to that endpoint should return a list of all available users. We have two common methods for the request and response between a server and client that are, GET-it requests the data from a specified resource and POST-it submits the processed data to a specified resource. When we are interacting with a web server POST requests place user parameters in the body of the HTTP request and on the other hand, GET requests place such parameters in the URL.


Here is an example of how to implement GET call using ExpressJS: