How to Consume WEB API in C# | C# Tutorial for Beginners

Опубликовано: 19 Май 2026
на канале: Tech With Pat
67,270
955

This video is about calling an existing WEB API from a C# application.
You will learn to use the HttpClient class to retrieve new releases from Spotify using their Web API.

Source code : https://github.com/techwithpat/Consum...
Buy me a coffee: https://www.buymeacoffee.com/itsmepat...
Subscribe: https://www.youtube.com/c/TechWithPat...

🕑 Timestamp:
00:00 Introduction
00:49 Register the application with Spotify
01:21 Create an ASP.NET Core MVC app
02:12 Request access token from Spotify Account Service
08:24 Test requesting an access token
08:43 Request new release from Spotify Web API
12:54 Test requesting new releases
13:01 Display new releases in the Home View
14:10 Test the displaying of new releases in Home view
14:16 Outro

Make HTTP requests using IHttpClientFactory in ASP.NET Core :
https://docs.microsoft.com/en-us/aspn...

Use IHttpClientFactory to implement resilient HTTP requests:
https://docs.microsoft.com/en-us/dotn...

This video might interest you :
How to create a Web API with ASP.NET Core:    • How to create a Web API with ASP.NET Core ...  

🌎 Where to find me:
° Github: https://github.com/techwithpat
° LinkedIn:   / patrick-tshibanda-431017135  

#webapi #tutorial