API – What is it and Why you need it?

Using API
API

What is API?

When a user connects an application to the internet, it sends data to a server and then the server retrieves the data, interprets it to perform the necessary action, and sends some data back to the application which the user gets. This is how all the applications on your phone all the interactive websites work. API is the medium one application talks to the other application.

What is API
Image Source: Freelancinggig

Why API & What can I do with it?

As a developer, you must use APIs in your programs to connect your user to the required server. Suppose you want to build an application that lets the users know the currency conversion rate, say EUR to USD. Static data from a dictionary will not help here because the conversion rate changes all the time and of course you don’t want to give your user absolute information from yesterday or last month.

So in this case you find a server that knows what is the currency conversion rate right now. And you let your user send the right request to the server. And the server sends back the required information to your user. In this way, your users do not have to go to the server and find the data they are looking for and the server doesn’t have to send or show gigabytes of data which is costly and time-consuming for the server, for your application, and the user.

How to use API, what do I need?

To use the API to talk to a server you need to send the request to the server in a predefined format so that the server knows exactly what your want and what the server is supposed to return. And most of the APIs want credential key so that the server knows you are the developer of the application the request is coming from and in case the server can charge you.
But be encouraged, there are tons of free APIs and APIs which give you limited access free of cost.

API request
An API request with Requests without API credentials
API request
An API request with HTTP clients with API credentials

The next day we will learn using first API in your program and what can we do with it. Later we will learn how can we get all the APIs for our projects.

47 thoughts on “API – What is it and Why you need it?”

  1. This design is incredible! You certainly know how to keep a reader entertained.

    Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!)
    Wonderful job. I really enjoyed what you had to say, and more than that, how you presented it.

    Too cool!

  2. I would like to thank you for the efforts you’ve put in penning
    this site. I’m hoping to view the same high-grade content from you later on as well.
    In fact, your creative writing abilities has inspired me to get my very own blog
    now 😉

  3. Hello I am so delighted I found your blog, I really found you by mistake, while I was searching on Askjeeve for
    something else, Anyhow I am here now and would just like to say many thanks for a incredible post and
    a all round enjoyable blog (I also love the theme/design), I don’t have time to look over it all
    at the moment but I have saved it and also added your RSS feeds, so when I
    have time I will be back to read more, Please do keep up the fantastic jo.

  4. I must thank you for the efforts you’ve put in penning this site.
    I am hoping to view the same high-grade content by you later on as well.
    In truth, your creative writing abilities has motivated me to get my
    own, personal site now 😉

  5. Hi there are using WordPress for your blog platform?
    I’m new to the blog world but I’m trying to get started and set up my own. Do you require any coding expertise to make your own blog?
    Any help would be really appreciated!

  6. However, today select longer simply a luxury for the extremely wealthy.
    If there is the required time, lodge at the sauna, hot spa or steam bath facility during the
    day spa. However, if you use tall clients or clients of varying height and size,
    you could possibly appreciate a massage table that is
    longer than that is a standard.

  7. Howdy very nice blog!! Guy .. Excellent .. Superb ..
    I will bookmark your website and take the feeds additionally?

    I’m happy to seek out a lot of helpful info here in the post, we need
    develop more techniques in this regard, thanks for sharing.
    . . . . .

  8. Very nice post. I simply stumbled upon your weblog and wanted to say that
    I have truly enjoyed surfing around your blog posts.
    In any case I will be subscribing for your rss feed and I’m hoping
    you write once more very soon!

  9. You can certainly see your skills in the article you write.
    The sector hopes for more passionate writers such as you
    who are not afraid to say how they believe.
    All the time go after your heart.

  10. I have been surfing online more than 4 hours today,
    yet I never found any interesting article like yours.

    It’s pretty worth enough for me. In my view, if all website owners and
    bloggers made good content as you did, the net will be a lot more useful than ever before.

  11. Woah! I’m really digging the template/theme of this website.

    It’s simple, yet effective. A lot of times it’s difficult to get that “perfect balance” between usability and visual appearance.

    I must say you’ve done a excellent job with this.

    Additionally, the blog loads super quick for me on Safari.
    Excellent Blog! ps4 games 185413490784 ps4 games

  12. Hello, I think your site might be having browser compatibility issues.
    When I look at your blog site in Opera, it looks fine but when opening
    in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up!
    Other then that, wonderful blog! ps4 games 185413490784 ps4 games

  13. Hey! This post couldn’t be written any better! Reading this post
    reminds me of my previous room mate! He always kept talking about this.
    I will forward this article to him. Fairly certain he will have a good read.
    Thank you for sharing!

  14. Incredible! This blog looks just like my old one!
    It’s on a completely different subject but it has pretty
    much the same page layout and design. Outstanding choice of colors!

  15. Hello, Neat post. There’s an issue with your web site in web explorer, could check this?
    IE nonetheless is the market chief and a good portion of people will miss your great writing because of this problem.
    asmr 0mniartist

  16. Amazing! This blog looks exactly like my old one! It’s on a entirely
    different subject but it has pretty much the same page layout and design. Excellent choice of
    colors!

  17. Hello there, I found your site by the use of Google even as searching for a similar subject, your site came up, it appears to be like
    great. I have bookmarked it in my google bookmarks.

    Hi there, simply turned into alert to your weblog through Google,
    and found that it’s truly informative. I am going to be careful for
    brussels. I’ll be grateful when you continue this in future.
    Lots of other folks will probably be benefited from your
    writing. Cheers!

  18. scoliosis
    I really like your blog.. very nice colors & theme. Did you create this
    website yourself or did you hire someone to do it for you?
    Plz reply as I’m looking to construct my own blog and would like to know where u got this from.
    thanks scoliosis

  19. free dating sites
    Write more, thats all I have to say. Literally, it seems as though you relied
    on the video to make your point. You clearly know what youre talking about,
    why waste your intelligence on just posting videos to your site when you could
    be giving us something enlightening to read?

    free dating sites

  20. Thank you a lot for providing individuals with an extraordinarily remarkable chance to read from this site. It’s always so ideal plus jam-packed with amusement for me personally and my office friends to visit your web site at the least 3 times a week to see the fresh guidance you have got. Of course, I’m also always fascinated with the mind-blowing advice you give. Certain 3 points in this article are undeniably the most beneficial we’ve had.

  21. Fantastic beat ! I wish to apprentice whilst you amend your web site, how can i subscribe for
    a weblog web site? The account helped me a applicable deal.
    I were a little bit acquainted of this your broadcast offered bright transparent idea

  22. Nice post. I was checking continuously this blog
    and I’m impressed! Very useful info particularly the
    last part 🙂 I care for such info a lot. I was looking
    for this particular info for a long time. Thank you
    and good luck.

  23. Woah! I’m really digging the template/theme of this website.
    It’s simple, yet effective. A lot of times it’s difficult to get that “perfect balance” between usability and visual appeal.
    I must say that you’ve done a very good job with this. In addition, the blog loads
    extremely quick for me on Opera. Outstanding Blog!

  24. Hi! I could have sworn I’ve visited this blog before but after looking at a
    few of the articles I realized it’s new to me. Regardless, I’m certainly pleased I discovered it and I’ll be bookmarking it and checking
    back frequently!

Leave a Comment

Your email address will not be published.