HomeЛюди и блогиRelated VideosMore From: WebConcepts

REST API concepts and examples

27475 ratings | 2302101 views
This video introduces the viewer to some API concepts by making example calls to Facebook's Graph API, Google Maps' API, Instagram's Media Search API, and Twitter's Status Update API. /********** VIDEO LINKS **********/ Youtube's Facebook Page via the Facebook Graph API http://graph.facebook.com/youtube Same thing, this time with filters https://graph.facebook.com/youtube?fields=id,name,likes Google Maps Geocode API call for the city of Chicago http://maps.googleapis.com/maps/api/geocode/json?address=Chicago Apigee Instagram API console https://apigee.com/console/instagram HTTP Request Methods http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods Postman Chrome Extension https://chrome.google.com/webstore/detail/postman-rest-client/fdmmgilgnpjigdojojpjoooidkmcomcm?hl=en Twitter's Status Update documentation. https://dev.twitter.com/docs/api/1.1/post/statuses/update
Html code for embedding videos on your blog
Text Comments (278)
sunny day hero ph (1 year ago)
the https://graph.facebook.com/youtube wont work... all that come to the page is an error TT
HackMan (1 year ago)
hi my graph.facebook.com/username is not working. Did they change something or what?? Im getting error message it says check developer.fb page
Jon Fortner (1 year ago)
I was expecting to see JS code to form the GET and POST. It's one thing to put graph.facebook.com into your browser window, but how to get the JSON response and use it inside your JS code?
informative
Sam Sun (2 years ago)
Very very clear and useful! thank you so much!
Koushik Shom Choudhury (2 years ago)
unfortunately, neither of these APIs do not return json responses :(
skyblue primesoft (2 years ago)
A very good video to learn.. thank you..
Agustin Rubini (2 years ago)
Genius explanation!
shoham landau (2 years ago)
Great explanation
speed07 (2 years ago)
still dont get it
Rajesh B (2 years ago)
Go to : https://developers.facebook.com/tools/explorer/ and click GetUserAccessToken, copy the token(ACCESS_TOKEN) and then open above url passing the token you received above as :https://graph.facebook.com/youtube?access_token=ACCESS_TOKEN
Shiheb Eddine BENSALAH (2 years ago)
excellent thank you (Y)
DEVENDRA PANDEY (2 years ago)
very nice video..thanks for it
Terence Brady (2 years ago)
Hey just wanted to say thanks and keep up the great work! I've learned alot from this video; i especially love how you take your subject and put it into real-world use for us beginners. Keep the videos coming! i aspire to become as knowledge as you on this. Cheers!
Abdulla Ali (2 years ago)
Wow brother, YOUR CONTENT IS AMAZING!!! Concept + Real Examples = WIN !!! I have seen some Harvard University videos and thats exactly how they teach it, Thank you, thank you, thank you!!!
That music in the ending was like "Turn down for what" for cool explication video. Thanks a lot!.
DarthChrisDK (2 years ago)
Very good video! This was very clear and understandable. The use of examples is also great, and helps making it easier to grasp.
Amit Singh (2 years ago)
Thank You for making this video.My concepts of REST APIs got so much better now.
Chandrashekhar Patil (2 years ago)
Very nicely explained in simple way.. awazing...
Ahmed Khashaba (2 years ago)
Perfect
_3ch0 (2 years ago)
you MUST have an access token for graph..
Piotrek Chmielowski (2 years ago)
Great video! Thanks!
DjRichiAC (2 years ago)
could you please help me with the spotify api? i don't quite get how to get the tokens to make a request of audio feature for several tracks. It's the last part that i need for my university project. Please help!!!
SavindraSingh Shahoo (2 years ago)
Isn't it like Web Services in .Net?
SavindraSingh Shahoo (2 years ago)
Wow!! This is an excellent video. You earned a subscriber for this :-)
Joe Azzato (2 years ago)
I get: error: message: "An access token is required to request this resource. Do you have to be a FB developer to access this?
Farooque shaikh (2 years ago)
Thanks , very helpful video.
HARPREET KAUR (2 years ago)
The best introduction ever for REST API! It is just to the point and clear. I am a beginner and this gives such a good start to explore more. :-)
VaNkWiShA (2 years ago)
Thank you :)
David Paez (2 years ago)
Best.Explanation.Ever
pranish shrestha (2 years ago)
Can you please show me what URL you used for Oauth to use twitter api
karthik golagani (2 years ago)
i'm trying to flume(1.6v) twitter data in to my HDFS, but things are happening my way. Is the twitter API still open to import tweets ?
Kareem Sharawi (2 years ago)
Very useful, thanks a lot.
Pradyumna Kulkarni (2 years ago)
Precise and to the point explanation. Well-done
Jasmeet Singh (2 years ago)
you talked about Examples! Great! But no where mentioned what actually mean by REST api
Hashim Aziz (2 years ago)
If anyone's interested, Marvel comics have an API, and a while back I came across a series of tutorial outlining how to work with it... so yeah, there probably isn't a cooler way to learn how to use APIs. Thank me later.
Jeff Lever (2 years ago)
Short...simple...informative...this video should be a template for anyone who wants to create a tutorial!
Daniela Barrientos (2 years ago)
The graph.facebook no longer works for me :(
Chris Taylor (2 years ago)
As someone who is used to only doing frontend this is the single best explanation of REST that cut through internal government memo levels of jargon. Thanks a million!
ourtechnicians deals with home appliance repair and services are electrical services,plumbing services, two wheeler repair, ATS system repair ervices, house renovation,paintings, washer repair services, bathroom and kitchen remodelling and maintenance services.If you need our service inspect on <a href="http://ourtechnicians.com/Service/Appliances">home appliance</a> https://www.facebook.com/apm.ourtechnicians/?fref=ts&ref=br_tf https://www.youtube.com/watch?v=2lFLF4SUTnM https://www.instagram.com/ourtechnicians/
Endal Kassa (2 years ago)
nice video thank you, would you please explain how we can integrate GUI and API and also how we can drive the data from excel spread shit.
Nisha Jaisingh (2 years ago)
Great video. very helpful.Is there any way to access database without using api, as not all provide us with api options?Thank you
meriem karoun (2 years ago)
Great Cool videos ^^
Ochi Fortune (2 years ago)
I wish I can can contact you by email. Please is this possible?
Upendra Allu (2 years ago)
+WebConcepts, nice tutorial and please check it, http://graph.facebook.com/youtube,it showing: { "error": { "message": "An access token is required to request this resource.", "type": "OAuthException", "code": 104, "fbtrace_id": "FlXyWG8rCBQ" } } hope u'll solve it
databaseexpert (2 years ago)
I have watched a BUNCH of videos on this subject and this was the best one by far. THANK YOU!
Mohammed Abulsoud (2 years ago)
Thanks man you r the best
Mohammed Zee (2 years ago)
thnk u buddy... hlpful
Harsh Hirani (2 years ago)
How should I proceed to build an Android application which connects a microcontroller with WiFi using REST API?
Mahesh Pathak (2 years ago)
Hi Thanks for this video.I have source code which contains JSP,servlet,js.Can you please let me know how should I run my application without any web server.
Dallin Hitchcock (2 years ago)
This is awesome. Thanks so much for making these videos. You've helped to demystify REST APIs for me as I was getting more and more confused by other sources.
madhav mohtta (2 years ago)
awesome man....really cool stuffs to look into...
Victor Callegari (2 years ago)
API is something that allows one software to talk with another one. With that said, If I want to create a project that connect to a single database that is in the same network, should I use API to make data call or write data to the database? what would be the benefit of using APIs in this context?
WebConcepts (2 years ago)
+Victor Callegari Having an API based backend allows you to easily conduct all of your create, read, update, and delete (CRUD) operations over AJAX, which it typically good from a usability standpoint. Plus if you were to create an Android/IOS app it could consume the same API as your front end website, which is nice for consistency. Furthermore it decouples your presentation layer from your database which can be advantageous. However, it can also add a great deal of complexity so be sure you need it.
carmel Ka (2 years ago)
+WebConcepts{    "error": {       "message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",       "type": "GraphMethodException",       "code": 100,       "fbtrace_id": "Czqci6CUvmZ"    } } How to make it right please? I am getting this exception for https://graph.facebook.com/youtube
carmel Ka (2 years ago)
+WebConcepts Many Thanks! It worked out.
WebConcepts (2 years ago)
+carmel Ka Facebook updated their API since I posted this video. You now need to add an access token to the url as a query parameter. For example https://graph.facebook.com/youtube?access_token=YOUR-ACCESS-TOKEN You can easily create an access token for your facebook account by heading over to https://developers.facebook.com/tools/explorer Just remember to treat that token like your password and not share it with anyone.
Marwan Nabil (2 years ago)
finally someone explaining how to use REST many thanks you don't know how long I've been searching for a video like this.
Pretty Printed (2 years ago)
Nice overview. Thanks for the video!
Fidel Barcaya (2 years ago)
Very good, thanks.
Zed P (2 years ago)
And there's no longer API console on Instragram. :-/
Hani Yahya (2 years ago)
Can I do other actions via API's like for example, follow people using twitter API or like an image using instagram API? Thanks for great videos! :)
WebConcepts (2 years ago)
+Hani Yahya Yes absolutely. To see what's available check out the documentation for each of those sites. https://dev.twitter.com/rest/public & https://instagram.com/developer/endpoints/likes/
Rahul Doshi (2 years ago)
Thank you.
Ritvars Luksis (2 years ago)
Thank you!
budkin (2 years ago)
Quite possibly the most helpful explanation of a REST API I've ever seen. Bravo!
sujatha sundaram (2 years ago)
Awesome, I am trying to learn REST, best REST API I have seen!
Gazi Salah Uddin (2 years ago)
keep it up!
Akshay Aradhya (2 years ago)
No Comments ?
Rahul Bali (2 years ago)
informational but some stuff was left behind, but no matter such is the topic, needs a lengthy video.  Awesome Video though.
misterbobat (2 years ago)
Great explanation of what's REST and how it works. Can you do another video on how REST authenticate.
kali doss (2 years ago)
DUDE THIS IS AWESOME! THANK YOU!
Nidhin P (2 years ago)
good work
joe watson (2 years ago)
Impressive. Subscribed and looking for more videos please.
Anil Rai (2 years ago)
The presentation is really clean and to the point. Subscribed
Vaisakh K Sundaram (2 years ago)
Awesome!! Very nice and neat explanation!Kudos to you!!
dbpization (2 years ago)
thank you! Indeed very useful information in approx 9 minutes..
Nathan (2 years ago)
Still trying to get my head around. I am bit confused as to why when getting an access token Facebook requires access to my own public information as well?
Joseph E. Flack IV (2 years ago)
Your content is absolutely excellent. I very much appreciate your videos and am learning a lot from them. I just wanted to give you some tips, as a web developer myself, but someone who spent 5 years as a teacher. Your videos are very well structured, however I feel that you, at some points, are speaking too fast. I'm not sure what audience you are going for, but if you would like to include absolute or near total beginners, you'll want to have a lot more pauses, more titles and subtitles, slower speech, and more explanation of basic, albeit technical, terminology. By the time someone watches this video, you might assume someone wanting to learn about RESTful API's might know what a simple GET request is, but that is not necessarily so. In any case, thank you so much for your wonderful videos jam packed with excellent content!
Mohammed Zee (2 years ago)
yeah... its like try the smaller wheel.... excnt wrk brother, it will help
Paul Dudley (2 years ago)
+Joseph E. Flack IV i think in a classroom situation the pauses and speaking slower is a valid point. But as this is youtube and a person can just go back a few secconds and listen again as long as the speaker is clear. +Webconcepts thanks very much for this video, i wish i had found it a month ago when i was doing my first api work
Joseph E. Flack IV (2 years ago)
+WebConcepts Regardless of what I said, the videos are great. I love the energy. It is very rare to find good videos like this on REST or building a web app utilizing web services. I'll be watching and re-watching your videos ^_^
WebConcepts (2 years ago)
+Joseph E. Flack IV Thank you for the feedback and for checking out the videos. When I was first learning web development everything was such an inaccessible black box it was difficult to know where to begin. My goal with these videos was to give just enough context so beginners know what to google if they are interested in learning more without diving so deep that their eyes glaze over. It's a tough balance to strike and I know I move to fast sometimes.
xdeadstepx (2 years ago)
so let me get this straight if someone hacks into the api of any app they can steal your info?
Gary Richter (2 years ago)
+xdeadstepx Yes and no. First, if you're using a public API, you don't need to hack into it... it's available for you to connect to by default. Second, the public APIs are providing you information you already have access to. For example, in this video he's connecting to instagram information. You hitting the API and grabbing data from it is the same information you'll get if you go to the instagram site and use the website directly. So there isn't any sensitive information being provided. So yes, you can hit a public API without any sort of security and get back information. But it's information you can get/view via the websites anyways, so it's not like you're getting anything that's not already available to you. If you were to truly "hack" into a secure system, then yes, you could "steal" people's info. But at that point you are actually illegally bypassing security systems to get information not publicly available (think Ashley Madison, Target credit card info, etc). Except in those cases it wasn't an "API" that was hacked, it was their actual network. Public/free API's don't expose sensitive information and the information is already publicly available view their websites anyways, so it wouldn't be considered "hacking" them and there isn't anything secure or sensative/private that they are exposing to the world.
Deepak Joshi (2 years ago)
Nice Video Thank you :)
nice video. It help me understand what REST api is.. Thanks !!
Maulik Patel (2 years ago)
thank you
DawnAndTheDude (2 years ago)
Great and to the point- thanks!
Android DevVictorOps (2 years ago)
Overall, a great intro to APIs -- though when I tried to repeat the experiments with a colleague, we ran into a "minor hell" :) when trying to get the "authentication" part figured out, say, for the Twitter API request. We tried following the instructions in their docs, here: https://dev.twitter.com/oauth/overview/application-owner-access-tokens -- and then the docs for "Single User OAuth" -- created a new "app" under her account, generated an "access token", etc -- but then we were completely perplexed as how to actually use these values in Postman. (??) In your video, you sorta "gloss over" this step -- and don't show how it is configured. Can you comment here on how to do this? Are they supposed to be added as "headers" or... used as some part of OAuth "authentication URL"? Thanks!
DarkAwsm13 (2 years ago)
+Android DevVictorOps Thanks mate, this link was very useful
WebConcepts (2 years ago)
+Android DevVictorOps Thanks for checking out the video. I know I glossed over that step, but I was just trying to convey the difference between GET and POST. I'll try to do a followup video on Oauth1.0 and Oauth2.0 at some point. Here's what I did: click on the Authorization button in postman and select Oauth1.0 from the dropdown. Then fill in the fields with the data from the app you created at dev.twitter.com. You can read more about using Oauth1.0 with postman at this link https://www.getpostman.com/docs/helpers. One thing to be mindful of is the timestamp component of Oauth1.0. Therefore signature that postman generates for you will only be accepted by twitter for a brief time.
P. Vivek (2 years ago)
very nice easily understood
Subhobroto Roy (2 years ago)
Excellent...please upload more videos of REST API.
yasin yaqoobi (2 years ago)
Please do a video about Swagger.
3thoug (2 years ago)
Thank you for this! It made me get a clear grasp of what an API is.
abhay suchak (2 years ago)
post some other basic videos from that we can learn it in batter manner and good job guys keep it up
Jinesh Sam (2 years ago)
{ "error": { "message": "An access token is required to request this resource.", "type": "OAuthException", "code": 104 } } i am geting this exception for facebook
James Collett (2 years ago)
Impressive stuff but it seems that a lot is hidden under the hood here. For instance, to actually post a tweet from Postman, isn't there a bunch of set-up steps required? I certainly was not able to replicate this trick given the information in this video. Tantalising but ultimately disappointing. Or maybe I'm just dumb.
WebConcepts (2 years ago)
+James Collett Thanks for checking out the video. I was just trying to convey the difference between a GET request and a POST request and did not spend any time showing how I configured postman. Oauth1.0 can be pretty complicated.
James Collett (2 years ago)
I entered https://graph.facebook.com/youtube but I received something rather different:- { "error": { "message": "An access token is required to request this resource.", "type": "OAuthException", "code": 104 } }
WebConcepts (2 years ago)
+James Collett Sorry about that. Facebook updated their API since I posted this video. You now need to add an access token to the url as a query parameter. For example https://graph.facebook.com/youtube?access_token=YOUR-ACCESS-TOKEN You can easily create an access token for your facebook account by heading over to https://developers.facebook.com/tools/explorer Just remember to treat that token like you're password and not share it with anyone.
Rodrigo Diaz (2 years ago)
Great videos. Although you talk fast, it is actually good for those of us who are technical and don't need someone to over simplify things.
Jonathon Schultz (2 years ago)
Niiiice video! Very straightforward. You "thumbed up"<!--This is meant to sound like "summed up"--> the of fundamentals of an API.
Purushothaman Elango (2 years ago)
Very useful, thank you!
whalebattle (2 years ago)
Thank you so much, helped out a ton!
Srinivasan Rajappa (2 years ago)
awesome... clear and crisp explanation.
Gainsbruh (2 years ago)
I'm kinda confused. So I understand that If we want to grab data from an APiI, we can just call that API url in whatever language we are using ( example in python, we can do urllib.open( url of api) and then load the json). My question is, if we can just open the url in any language, what's the point of the API libraries that developers make ( library wrapper for python, java, c#, ruby, etc). Do we need to use a specific library to call an API? Can we not just open up the URL in any language?
Gainsbruh (2 years ago)
curl request is the same as urllib.open()? so opening a url? Also, what would be a simple example of when a language-specific api library would make life easier compared to just using a url to grab json data?
WebConcepts (2 years ago)
+Natty You could use a basic curl request in any programming language to access a web API, the libraries just make things easier. Much easier. Especially when you're making more complex request or handling errors.
Shubham Waghe (2 years ago)
Authentication required as of now in 2015, when I am seeing this video, for facebook
Subhendu Ranjan Mishra (3 years ago)
Nice and crisp .. that's all I wanted to know..
Gabriel Leung (3 years ago)
thank you
Mossy Back Outdoors (3 years ago)
Great video. Thanks
Renate Ehlers (3 years ago)
Thank you very much.

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.