written by: Menem Elkatan
--------- in: April 27, 2022
I didn’t hand-code any of that price information , remember – it’s all coming from an API.
Let’s start with the API. To make a GET request, you have to request it from an API.
API stands for Application Programming Interface.
An API is an endpoint - a URL - you visit to get something in return.
In this case, we’re making a GET request, which the API answers with text.
Here’s we’re using an API called DomainsDB.info, to fetch information in response to a request.
As an example, look at the GET request below, which retrieves all webpages that have medium in their name.
You can see the API returns just by visiting it in your browser. Click the link; you’ll see text, as in this screenshot (pretty printed using an extension in my browser).
Made with ❤ by Menem Elkatan