If you’re new to the world of front end development, you might have heard the term “API”. API stands for “Application Programming Interface” and is something that we use all the time without knowing about it. APIs allow for the communication between two different applications. For example, a project can author an API that allows for other projects to pull features or data from their interface. The original project doesn’t have to share any of their code for the features or data.
Here’s a definition from Wikipedia:
“An Application Programming Interface (API) is a particular set of rules and specifications that a software program can follow to access and make use of the services and resources provided by another particular software program that implements that API. It serves as an interface between different software programs and facilitates their interaction, similar to the way the user interface facilitates interaction between humans and computers.”
Mentioned
previously, APIs are everywhere.
Let’s take a news article for example. At the bottom of the page, articles usually have a social
media bar that has links to facebook, twitter, reddit, etc. so that you can
share the article on your own social media page. All of these features are powered by APIs. Even the comment system, which is
sometimes powered by facebook comments, uses the facebook API to pull your
profile name, picture, location, etc.
The LATimes uses the facebook commenting system for their news articles |
What
can you do with them?
If
you’re a blogger or journalist, having those sharable social media buttons
would be a nice touch for your content.
However, we’re not all journalists.
I
think most people have a Twitter account nowadays. Twitter has built a widget that uses their API to create a
timeline for one individual. You can then link this timeline on your webpages. I’ve
used this for several projects and it is a great way to show off tweets without
having to actually go to Twitter.
Again, Twitter is using an API to share their features with another
application without having to share their code for Twitter.
To
access this widget, just go to your settings menu, then go to Widgets, and Create A New Widget.
I decided to create a timeline for my master’s program:
Tweets by @EloniMedia
I decided to create a timeline for my master’s program:
This
is just one example of what can API can do. I’ve also recently worked with Vimeo’s Player Embedding API to show all of my
account’s videos on a web page without having to go to the actual Vimeo
website.
For your next project, explore how you might possibly display something with an API rather than the normal way.
very useful piec of information among all the coding languages I prefer PHP, as i find it easy to use and results are amazing, i suggest my students to use PHP as i give
ReplyDeletePHP training in chennai.