Coding With Python :: Learn API Basics to Grab Data with Python

Coding With Python :: Learn API Basics to Grab Data with Python

Coding With Python :: Learn API Basics to Grab Data with Python

This is a basic introduction to using APIs. APIs are the “glue” that keep a lot of web applications running and thriving. Without APIs much of the internet services you love might not even exist!

APIs are easy way to connect with other websites & web services to use their data to make your site or application even better. This simple tutorial gives you the basics of how you can access this data and use it. If you want to know if a website has an api, just search “Facebook API” or “Twitter API” or “Foursquare API” on google. Some APIs are easy to use (like Locu’s API which we use in this video) some are more complicated (Facebook’s API is more complicated than Locu’s). More about APIs:

Code from the video:

If you want to learn more about using APIs with Django, learn at for just $25/month. We apply what we learn here into a Django web application in the GeoLocator project.

The Try Django Tutorial Series is designed to help you get used to using Django in building a basic landing page (also known as splash page or MVP landing page) so you can collect data from potential users. Collecting this data will prove as verification (or validation) that your project is worth building. Furthermore, we also show you how to implement a Paypal Button so you can also accept payments.

Django is awesome and very simple to get started. Step-by-step tutorials are to help you understand the workflow, get you started doing something real, then it is our goal to have you asking questions… “Why did I do X?” or “How would I do Y?” These are questions you wouldn’t know to ask otherwise. Questions, after all, lead to answers.

View all my videos:

Get Free Stuff with our Newsletter:
The Coding For Entrepreneurs newsletter and get free deals on premium Django tutorial classes, coding for entrepreneurs courses, web hosting, marketing, and more. Oh yeah, it’s free:

A few ways to learn:

Coding For Entrepreneurs: (includes free projects and free setup guides. All premium content is just $25/mo). Includes implementing Twitter Bootstrap 3,, django south, pip, django registration, virtual environments, deployment, basic jquery, ajax, and much more.

On Udemy:

Bestselling Udemy Coding for Entrepreneurs Course: (reg $99, this link $49)

MatchMaker and Geolocator Course: (advanced course, reg $75, this link: $39)

Marketplace & Dail Deals Course: (advanced course, reg $75, this link: $39)

Free Udemy Course (40k+ students):

Fun Fact! This Course was Funded on Kickstarter:



38 thoughts on “Coding With Python :: Learn API Basics to Grab Data with Python

  1. cyberzyme

    Horrible One of the worst videos I have seen. You can't teach at all. You leave out key important need to know information, teach in circular logic,fail to define terms, define terms in terms of them self. This is your lesson in a nut shell. I got this mombo jamba and it does mobo jmmba and you can use it to mombo jamba and it will even do more mobo jamba. and see see this is a mobo jamba see see look at me go i can use a mabo jamba you can use a maba jamba. Dude here is some advise before do another video right it all down on paper and read it out loud to yourself. Think about what you are teaching and see if what you are trying to convey makes any sense and does it impart the important need to know information. Teach as if your students are all idiots that know nothing about what you are teaching and define terms without using that term. Also every aspect of what you teach needs to answer the following six questions. Who, What, When, Where, Why and how! If what you are trying to say does not then you have left most of your students behind. And yes I know you are no teacher but if you are going to post shit at least do it right.

  2. Harini Pedarapu

    Can anyone provide the script for Below Requirement
    =====> First connect to Jenkins Server Using Rest API
    =====> And then list all the jobs with their names which have not been triggered from past 3 Months
    Right script will be awarded…….

  3. Aditya Sharma


    If you are using urllib3 you will need these code

    import json

    import urllib3

    import requests

    # api key

    locu_api = '9fb8cd70cb34cab8e83690473133f51943b5c93f'

    def locu_search(query):

    # copying the key

    api_key = locu_api

    # adding to url

    url = '' + api_key

    # defining some space

    locality = query.replace(' ', '%20')

    # adding final data to url

    final_url = url + "&locality=" + locality + "&category=restaurant"

    response = requests.get(final_url)


    # displaying it to user

    for item in data['objects']:

    print(item['name'], item['phone'])

    x = input('Enter your location:')


    i modified it a little if you have any query check out this link

  4. Andreana Stl

    Thank you for your videos!
    I am currently looking for some way to download and save locally an api data-set, so that I can then put it in an sql database.
    I tried using python 3's urllib.request, but the data-set is too big (900 json pages) and has a "links" object on each page with 2 links inside (self and next). Is there a way that i can download the entire data set with python code? I hope that my question makes sense. Any help would be greatly appreciated!

  5. bhawani singh

    i need your help on a python kivy application development. i am creating an application using python and kivy where i want to authenticate user through instagram. when the user authenticate himself with instagram then instagram api redirect my user to a redirect_uri with access token in the browser but i want my application to grab this access token . how can i do this . please help me with this

  6. Hexiarmin

    Hi. Thank you. I am trying to create a type of information query system for my web research. Is the API method you show similar to what a web crawler would do? (Just That API uses a already set interface with websites?)

    Can I combine the web scraping and this API query method in some way?

  7. Glenn Martin

    I never watch these videos because of a short attention span but this was the only tutorial I could find after searching multiple forums/articles that came close to what I needed to understand how to deal with a problem I was having with a complicated return list I've been trying to parse. Thanks. Thumbs up to you.

Leave a Comment

Your email address will not be published. Required fields are marked *