Skip to content

sprise/api-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

API Demo: How to Pull Data From Other Websites

Here is a one-page demo of accessing an API and displaying its contents on a page. This all happens on one single page, and is pretty easy to understand.

Getting Started

There are no dependencies for this project, it all happens on one HTML file. Paste the contents of index.html into your favorite text/code editor, and follow along with this video & slides.

Deployment / Viewing The Demo

You'll end up with something that looks like completed.html, which you can run in your browser from Localhost or upload to your webhosting account to see.

You will not be able to run this from the file protocol. So these paths will not work:

c:/documents/completed.html
/home/user/completed.html

Run it successfully from a path like:

http://localhost/completed.html 
http://your-website-name.com/completed.html