Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

What is an API?

16 views
Skip to first unread message

Ken. A Sandoval Ruiz

unread,
Jun 3, 2017, 5:19:18 PM6/3/17
to dev...@lists.mozilla.org
Hi,

I was wondering if someone can tell me what's an API?

Scott Michaud

unread,
Jun 3, 2017, 6:25:33 PM6/3/17
to Ken. A Sandoval Ruiz, dev-mdc [Docs]
API means "application programming interface". Basically, it's the
functions and data structures that some platform exposes to allow
software to be built on top of it. How these functions and data
structures are /actually/ handled can vary by implementation, just as
long as the data going in and out of the API behaves as expected
(depending on how rigid the API's specification is).

A good example is Web API. Every web browser is coded very differently,
but every website should behave in roughly the same way. Some things are
less rigid, like intricacies in how fonts are rendered, while others are
very strict, like the way a container size is calculated.

Programming is all about transforming data from one form to another.
APIs are like the language rules that an entity defines to communicate
with their software.

Hope this helps!


On 6/3/2017 5:18 PM, Ken. A Sandoval Ruiz wrote:
> Hi,
>
> I was wondering if someone can tell me what's an API?
> _________________________________________________________________________
> Discussing Developer documentation on MDN: dev-mdc mailing list
> List email: dev...@lists.mozilla.org
> Manage your membership: https://lists.mozilla.org/listinfo/dev-mdc
> Unsubscribe: https://lists.mozilla.org/options/dev-mdc/scott%40loosescrew.ca?unsub=1&unsubconfirm=1
> MDN contributor guide: http://bit.ly/ContributorGuide
>

Chris Mills

unread,
Jun 4, 2017, 6:50:27 AM6/4/17
to Scott Michaud, dev-mdc [Docs], Ken. A Sandoval Ruiz
Thanks for jumping in Scott!

In addition, there’s some useful material on what APIs are in the intro article of my client-side APIs module:

https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Client-side_web_APIs/Introduction

HTH,

Chris Mills
MDN content lead || Mozilla
developer.mozilla.org || MDN
cmi...@mozilla.com || @chrisdavidmills
> Unsubscribe: https://lists.mozilla.org/options/dev-mdc/cmills%40mozilla.com?unsub=1&unsubconfirm=1
0 new messages