Linux serverlinux web serverNETWORK ADMINISTRATIONS

APIs for Beginners 2023 – How to use an API (Full Course / Tutorial)

What is an API? Learn all about APIs (Application Programming Interfaces) in this full tutorial for beginners. You will learn what APIs do, why APIs exist, and the many benefits of APIs. APIs are used all the time in programming and web development so it is important to understand how to use them.

You will also get hands-on experience with a few popular web APIs. As long as you know the absolute basics of coding and the web, you’ll have no problem following along.

This course has been updated from a previous version.

💻 Teacher’s Notes: https://twil.io/notes-api-course

🎥 Course created by Craig Dennis, Developer Educator at Twilio
🐦 Craig on Twitter: @craigsdennis

⭐️ Contents ⭐️
Unit 1 – What is an API
⌨️ Video 1 – Welcome (0:00:00)
⌨️ Video 2 – Defining Interface (0:04:50)
⌨️ Video 3 – Defining API (0:08:49)
⌨️ Video 4 – Remote APIs (0:13:59)
⌨️ Video 5 – How the web works (0:18:17)
⌨️ Video 6 – RESTful API Constraint Scavenger Hunt (0:23:21)

Unit 2 – Exploring APIs
⌨️ Video 1 – Exploring an API online (0:29:06)
⌨️ Video 2 – Using an API from the command line (0:45:01)
⌨️ Video 3 – You go Curl (0:56:20)
⌨️ Video 4 – Using tools to explore APIs (1:14:21)
⌨️ Video 5 – More tools for your API exploring toolbox (1:36:20)
⌨️ Video 6 – Using Helper Libraries (1:48:34)

Unit 3 – All Together Now
⌨️ Video 1 – Introducing the Project (2:15:30)
⌨️ Video 2 – Serverless (2:23:30)
⌨️ Video 3 – Writing a Server Side API (2:37:08)
⌨️ Video 4 – Fetching Results on the Client from our Server (2:56:54)
⌨️ Video 5 – Wrap Up (3:05:29)

🎉 Thanks to our Champion and Sponsor supporters:
👾 Nattira Maneerat
👾 Heather Wcislo
👾 Serhiy Kalinets
👾 Erdeniz Unvan
👾 Justin Hual
👾 Agustín Kussrow
👾 Otis Morgan

Learn to code for free and get a developer job: https://www.freecodecamp.org

Read hundreds of articles on programming: https://freecodecamp.org/news

source

by freeCodeCamp.org

linux web server

32 thoughts on “APIs for Beginners 2023 – How to use an API (Full Course / Tutorial)

  • You are Wonderful! Thank You for blessing Us all with Your wisdom and Expertise.

  • I don't know how to code yet. I am a bit lost in this video. Yes, he dresses it up nicely .. but .. not sure if he is really happy in all that mess. Maybe he is.

  • I'm so hyped, and that teacher hypes me even more! Explations superb!

  • Great teacher, but I wish so many of the examples weren't done with something so "connected." Tons of verification required for using Twilio, which really slows things down. Twilio verification changes in November 2023 made it impossible to actually execute those examples as a hobbyist/student. If you've got some experience in development, you can adapt these examples as needed; but for novices it may be a bit more difficult to follow along than was promised.

  • I am using Windows 11 and I can not see any of the Spotify stuff you are teaching, it only work on MAC OS?

  • Worked up to 4ku on codewars learning to functionally program around small isolated problems and then ran into an API project and have no idea where to start. Forums and searches led me here. It's weird feeling like you learned something only to realize you can't do anything useful with it. Hoping this video helps! (edit on the way).

  • This is great!! I am struggling in the Spotify part with the Oauth, like Dennis mentioned, the UI has changed in the dev section.
    Has anyone been successful with the Oauth part? I keep getting a 400 error.

  • Definitely a tutorial to watch for learning with immersive experience.

  • I do like the fact that freecodecamp gives us these informations for free BUT I just can't stop getting annoyed by the fact that Craig Dennis used twillio api which is the company that he works for. It's like promoting yourself. I would not care if it was a free api but it is not and it's not worth the hassle. Don't get me wrong in anyway I am grateful for this course but wish he would have used a free api which would give us a tool in our repository instead of an api we will only use for 10 – 15 messages give or take.

  • 00:00 Learn about APIs and their benefits
    05:10 Interfaces and APIs abstract away implementation details for users and developers.
    16:12 REST revolutionized remote APIs
    21:33 REST APIs use HTTP protocol and headers to communicate with resources.
    31:44 Spotify API uses REST principles and requires authorization for specific data.
    36:04 Creating a new Spotify account for developers
    46:00 Learn how to use curl to make API requests
    50:26 Learn how to navigate and query URLs using JQ
    59:44 Learn how to use Twilio APIs to send text messages
    1:04:08 Learn how to send SMS using Twilio API
    1:13:22 Explore APIs with visual tools like Postman and REST Fox
    1:18:06 Learn how to filter incoming messages using Twilio API
    1:28:06 Switching from GET to POST for sending messages with Twilio API
    1:33:16 Using environment variables in REST clients
    1:43:04 Postman is a powerful tool for exploring APIs and generating code.
    1:47:34 Helper libraries or SDKs can make code more concise and legible.
    1:57:22 Using asynchronous JavaScript to list messages
    2:02:19 Learn about asynchronous JavaScript and catching errors with promises.
    2:12:07 Helper libraries abstract away HTTP API calls
    2:17:02 Setting up a local web server to view index.html
    2:26:55 Serverless solution allows worry-free scaling
    2:32:06 Create a messaging response with Twilio
    2:41:41 Using Twilio Functions to Access Twilio REST Client
    2:46:38 Create a gallery of images from Twilio API
    2:56:08 Creating and consuming APIs using Fetch and JSON

  • This video was amazing, great, just great, thanks fcc and Craig for your dedication.

  • Hey someone please tell what are the preliminary requirements before starting to learn this. I am a beginner (non IT ) have some understanding in networking and python programming

  • 10mins into the course but I have to thank him for making learning so fun, he's a really good teacher!

  • for those wondering what was that on 10:22:

    it's in ruby language,
    chr(ord('y') ^ 0x20):

    1. ord('y') : The `ord` method in Ruby returns the ASCII code of the character passed to it. In this case, `ord('y')` returns the ASCII code for the character 'y', which is 121.

    2. 0x20 : This represents the hexadecimal value 20, which is equivalent to 32 in decimal.

    3. `^` (XOR operator): The XOR (exclusive OR) operator performs a bitwise XOR operation on the binary representations of two numbers.

    4. ord('y') ^ 0x20 This bitwise XOR operation is performed between the ASCII code of 'y' (121 in decimal) and 32. The result is 89.

    5. chr(89): The `chr` method in Ruby converts an ASCII code to its corresponding character. In this case, `chr(89)` returns the character with the ASCII code 89, which is 'Y'.

    So, the overall expression `chr(ord('y') ^ 0x20)` takes the character 'y', performs a bitwise XOR with 32, resulting in the ASCII code 89, and then converts that ASCII code back to the character 'Y'.

  • i don't want to take a single break….!!!!
    un till i understand what is api

  • Curl for Spotify doesn't work for me. I have 'invalid access token' error. Why?

  • DI (Developer Interface-as opposed to UI) is better than API.

  • I wish your video will also be available in multiple languages like Hindi. I find difficult in understanding in English.

Comments are closed.