how to get json data from API call – TypeScript [closed]

I am new to typescript and I want to create an API call and fetch the json data from it instead of using this hardcoded json data.

This is my code:
enter image description here

Source: Angular Questions