Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Web APIs JavaScript Fetch getting JSON data Fun with APIs
Rating: 4.3 out of 5(148 ratings)
5,357 students

Web APIs JavaScript Fetch getting JSON data Fun with APIs

Explore how to connect to various web APIs using JavaScript fetch. Use the returned data JSON data within you Code.
Created byLaurence Svekis
Last updated 11/2024
English

What you'll learn

  • Explore how JavaScript Objects Work
  • Explore how to get data from JSON
  • JSON and JavaScript Objects
  • Connect to APIs get Data
  • Use data within coding

Course content

5 sections65 lectures6h 15m total length
  • Web API JSON Introduction3:22

    Explore how to access and parse JSON data, make Ajax requests with fetch, and display results in a web app. Connect to various web APIs.

  • Web developer Setup4:39

    Set up your web development environment with Visual Studio Code, a project folder, and a basic HTML template linked to JavaScript; run a local server, Ajax requests, and developer tools.

  • Resource Guide and Code Challenges PDF Guide0:14
  • Make an AJAX request to local JSON file10:48

    learn to perform an ajax fetch of a local json file and display data on a web page, using a local server to overcome file protocol limitations.

  • JavaScript Objects7:35

    Explore JavaScript objects as containers for related data and methods, compare with JSON, practice dot and bracket notations, navigate nested objects, and output a country to HTML using DOM.

  • Source Code0:05
  • JavaScript Arrays6:36

    Explore JavaScript arrays, a zero-based collection that stores multiple values, supports manipulation, looping, and nested objects. Learn to access, update, and output specific items like names from a friend list.

  • Source Code JavaScript0:06
  • Iterate Array Contents9:43

    Iterate arrays in JavaScript with for loops, for each, and for in; push items, output names with dot notation, and transform a list into array of objects with name field.

  • Source Code JavaScript0:13
  • Iterate Object Contents7:12

    Learn how to iterate over object contents using for...in and Object.entries, access keys and values, and update objects by adding a last name to each friend, comparing with array iteration.

  • Source Code JavaScript0:15
  • JSON Parse and Stringify5:37

    Learn how JSON.stringify converts objects to strings and JSON.parse converts strings back to objects, then render and update a friends array in the DOM by looping with for each.

  • Source Code JavaScript0:13
  • JSON Content Files8:08

    Distinguish json from javascript by noting json's strict syntax with double quotes and no functions, then structure arrays of books and validate with json lint.

  • Source Code JavaScript0:05
  • Web APIs GET data6:53

    Connect to a data source via a web API using fetch to retrieve JSON data, loop through results, and render first and last names with Ajax-style requests and status checks.

  • Source Code JavaScript0:14
  • JavaScript Fetch AP8:50

    Learn to use fetch and XMLHttpRequest to retrieve JSON data, compare methods, request external files, output titles to HTML, and explore response types and ready states for web APIs.

  • Source Code JavaScript0:10
  • Fetch Arrow Expression5:58

    Learn to convert fetch requests to arrow expressions to simplify code and return json data. Render results on page and iterate over arrays, such as books, using promises and forEach.

  • Source Code JavaScript0:06
  • Random User API Practice Exercise AJAX JSON Data11:20

    Practice connecting to the random user API using fetch, AJAX, and JSON, then display each user's thumbnail, first name, last name, and title on the page by clicking a button.

  • Source Code JavaScript0:10
  • Reddit Post API Practice Exercise AJAX JSON Data7:52

    Fetch five top posts from the Reddit post api in json, filter for the word test, and display each post's title with a link in html using javascript.

  • Source Code JavaScript0:09
  • GitHub Repo API Practice Exercise AJAX JSON Data7:46

    Fetch GitHub repo data for tetris from the GitHub API, parse the JSON, and display repo name, description, and URL on the page by loading and iterating over the results.

  • Source Code JavaScript0:11
  • GitHub Repo API Part 25:30

    Extend the GitHub repo API lesson by making items clickable to fetch json data from a url, then display the html url on the page and log results.

  • Source Code JavaScript0:16
  • StackOverflow API Practice Exercise AJAX JSON Data7:19

    Learn to use the Stack Overflow API to fetch JavaScript-tagged questions in JSON, practice fetch requests, parse items, and render clickable results with error handling.

  • Source Code JavaScript0:09
  • Post data with Fetch to Web API6:47

    Post data with fetch to a web api, sending name and message via form data and receiving a json response from the endpoint.

  • Source Code JavaScript0:11
  • Get posted data from Web API Pagination of Data Practice Exercise8:25

    Learn to fetch JSON data from a Web API and paginate results by constructing a page-aware URL, displaying content in HTML, and adding previous and next controls.

  • Source Code JavaScript0:17

Requirements

  • JavaScript Experience
  • HTML and CSS knowledge
  • Computer access

Description

Web APIs JavaScript Fetch getting JSON data Fun with APIs

Explore how to connect to various web APIs using JavaScript fetch.  Use the returned data JSON data within you Code.

Explore JavaScript Objects and how you can get JSON data with an API connection using JavaScript Code

Get data from a web server and use that data within you JavaScript application.

Previous JavaScript knowledge is a prerequisites to this course - YOU MUST HAVE JAVASCRIPT EXPERIENCE

Course is focused on applying JavaScript to connect to web APIs and get back JSON data

Course covers:

  • What JavaScript objects are and how to use them in code

  • How to iterate through arrays and objects to get data

  • Complex JavaScript Objects with many layers of data

  • JSON lint and how to read JSON data

  • How to use fetch to connect to web APIs

  • Various examples of connecting to APIs to create interactive web applications.

  • Using JavaScript code to connect to web APIs

  • Setup of localhost using node and express

  • Using node to make API requests

  • Setup of local web host

Source code is included so you can copy and paste the code to try for yourself.

Step by step learning

Fast friendly support is always available within the Q&A section

Experienced instructor with over 20 years of experience ready to help you learn

You have nothing to lose - Join now and start learning to create your own version of this helpful application today!!!


Who this course is for:

  • Web developers
  • Anyone who wants to learn about APIs
  • Learners who want to know more about JSON and Data
  • JavaScript Fetch and connecting to APIs
  • Web masters
  • Web designers
  • Application Developers