Json data scrapping from url and assigning it? using .net core

Greetings,

Im not very familiar with this api and I would really appreciate if someone could teach me couple of things.
First and for most im trying to develop a discord bot and I need one thing for it.
From an url, I want to get the json text data and use it in my code. For example I want to get “last_hits” which has the value of 120 in that URL for example(https://api.steampowered.com/IDOTA2Match_570/GetMatchDetails/v001… and so on, cant pass it since it has web api key in the url) and assign it to an int. Can someone teach me how to do it in code? An example would be appreciated.

I’m not sure your question has anything to do with json:api. Maybe you could try asking at stackoverflow.