What is an API, Exactly?


This is the first part of our series What Are APIs and How Do They Work?. If you missed the introduction to this series — APIs Are Like User Interfaces–Just With Different Users In Mind — we strongly suggest you start there first. In this second part of our series, we will define the million dollar question “What is an API?”

Another way of thinking about APIs is in the context of a wall socket. In North America and other parts of the world, the electrical sockets found in the walls of homes and businesses are essentially interfaces to a service: the electricity that’s consumed by everything from our computers and smartphones to appliances like vacuum cleaners and hair dryers. In other words, it’s important to think of the electricity as a service and of each device that uses electricity as a consumer of that service. In this scenario, instead of having its own source of power (the way a car does), the consumer is outsourcing its power requirements to the provider of a service.

While they may differ depending on where they are in the world, electrical sockets have predictable patterns of openings into which electrical plugs that match those patterns fit. The service itself also conforms to certain specifications. For example, in North America, most wall sockets deliver 120 volts of alternating current (AC) operating at 60Hz (the frequency at which the current alternates directions). This specification essentially sets an expectation on behalf of consuming devices. For example, your microwave oven has an expectation of the wall socket that it’s plugged-into and the wall-socket has an expectation of the microwave oven. Likewise, an API specifies how software components should interact with each other.

So, what, if anything do electric wall sockets have to do with APIs? Well, among the many metaphors that could be used to help visualize how APIs work, the wall socket comes pretty darn close and in the next part of the series, we’ll explain why.

This is a part of our series What Are APIs and How Do They Work? In the next part (part 2), we’ll use the metaphor of the electric wall socket to explain some of the key benefits of APIs.

Lovepreet Singh

Heartbleed bug, How it works and how was it fixed?

Previous article

How to Hack Your School’s Server to Download Final Exam Answers

Next article


  1. Medicament Cialis 5mg Cod Generic Levaquin Drugs Direct Mastercard Accepted Store [url=http://cialisab.com]cialis[/url] Levitra Soft Online

  2. Does your website have a contact page? I’m having trouble
    locating it but, I’d like to send you an email.
    I’ve got some ideas for your blog you might be interested in hearing.
    Either way, great site and I look forward to seeing it expand over time.

  3. We stumbled over here by a different web page and thought I may as well check things out.
    I like what I see so now i am following you. Look forward
    to finding out about your web page for a second time.

  4. Propecia Weekly Dosage Cialis Livraison 24h Cialis Tadalafil 50mg [url=http://cthosts.net]cialis 20mg price at walmart[/url] Zithromax Ear Drops Acquistare Viagra Yahoo El Priligy Funciona

  5. Canadian Pharmacy Clonidine Lamisil 250 Mg Online Side Effects Cephalexin [url=http://crdrugs.com]cheapest cialis 20mg[/url] Cialis 10 Mg 4 Comprimidos Precio Antibiotic Keflex And The Liver

  6. Thankfulness to my father who stated to me on the topic of this
    website, this webpage is in fact awesome.

  7. I do trust all the ideas you’ve presented on your post. They are very convincing and can definitely work.

    Nonetheless, the posts are very brief for beginners. May you please extend them a little from subsequent
    time? Thank you for the post.

  8. Undeniably consider that that you said. Your favorite
    justification seemed to be on the internet the simplest thing to keep in mind of.
    I say to you, I certainly get annoyed even as other people
    consider worries that they plainly don’t realize
    about. You managed to hit the nail upon the
    top and also defined out the entire thing with no need side-effects , other people could take a signal.
    Will likely be back to get more. Thanks

  9. Do you mind if I quote a few of your posts as long as I provide credit and sources back to your blog?

    My blog site is in the exact same area of interest as yours
    and my visitors would definitely benefit from some of the information you present here.
    Please let me know if this ok with you. Thanks a lot!

  10. I’ll immediately snatch your rss feed as I can’t find your e-mail subscription hyperlink or e-newsletter service.
    Do you have any? Kindly allow me recognize so that I may just subscribe.

  11. It’s amazing to go to see this web page and reading the views of all colleagues
    about this post, while I am also keen of getting experience.

  12. Awesome blog! Is your theme custom made or did you download it from somewhere?
    A theme like yours with a few simple tweeks would really make my
    blog shine. Please let me know where you got your theme.


  13. It is appropriate time to make some plans for the future and it is time to be happy.
    I’ve read this post and if I could I wish to suggest
    you some interesting things or suggestions.

    Maybe you can write next articles referring to this article.

    I want to read even more things about it!

  14. Fascinating blog! Is your theme custom made or did
    you download it from somewhere? A design like yours with a few simple adjustements would
    really make my blog stand out. Please let me know where you got your design. Bless you

  15. … [Trackback]

    […] There you will find 12132 additional Information on that Topic: techandsecurity.net/what-is-an-api-exactly.html […]

  16. For most up-to-date information you have to visit the web and on the web I found this
    site as a finest website for most recent updates.

  17. great post, very informative. I wonder why the other experts
    of this sector don’t realize this. You should proceed your writing.
    I’m sure, you’ve a huge readers’ base already!

  18. Hey! Someone in my Myspace group shared this site with us so I
    came to give it a look. I’m definitely enjoying the information. I’m
    book-marking and will be tweeting this to my followers! Wonderful blog and excellent

  19. Paragraph writing is also a excitement, if you be acquainted with after that
    you can write if not it is complex to write.

  20. Hi there everyone, it’s my first pay a visit at this website, and post is genuinely fruitful in favor
    of me, keep up posting these types of content.

  21. I think the admin of this web site is actually working hard in support of his web site, because
    here every material is quality based information.

  22. Hi! Quick question that’s totally off topic. Do you know how to make your site
    mobile friendly? My site looks weird when viewing from
    my apple iphone. I’m trying to find a theme or plugin that might be able to correct this problem.
    If you have any recommendations, please share.
    Thank you!

  23. Sinus Infection Cephalexin Le Cialis Efficace [url=http://cialcost.com]cialis no prescription[/url] Comment Acheter Cialis Internet

  24. Amoxicillin And Pill Size No Prescription Pharmacy Keflex Propecia Clasificacion [url=http://oc-35.com]propecia online australia[/url] Pimple Will Propecia Work For Me Testosterone Levels Generic Cialis In Usa

  25. Order Cialis Online Cheap Buy Viagra Without Prescription [url=http://leviprix.com]levitra 60 mg[/url] Acne Generic Propecia Who Can Prescribe Dostinex Pro Cialis 20 Mg

  26. Valor Cialis [url=http://drugsed.com][/url] Cialis Nouveau Achat De Cytotec Purchase Female Viagraachat De Viagra

Leave a reply

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

Login/Sign up