Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,148,788 members, 7,802,460 topics. Date: Friday, 19 April 2024 at 02:48 PM

Pls Tech Gurus..i Dont Understand What Apis Mean In Javascript.. Help! - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Pls Tech Gurus..i Dont Understand What Apis Mean In Javascript.. Help! (386 Views)

Javascript Help!!! / My Laptop Is Displaying Something I Dont Understand. / IT Gurus I Need Your Help Concerning My SIWES (2) (3) (4)

(1) (Reply) (Go Down)

Pls Tech Gurus..i Dont Understand What Apis Mean In Javascript.. Help! by FlackoJodye: 5:23pm On Nov 22, 2020
Pls I'm at open ears if one can explain
Re: Pls Tech Gurus..i Dont Understand What Apis Mean In Javascript.. Help! by Codedreamer: 6:01pm On Nov 22, 2020
API means Application Programming Interface. It allows you to interact with another software from your own software. For example, if you integrate google map API in your website, you will be able to display google map in your site.

Another example - if you want to create a website that displays lists of all foods on earth, you do not need to type all the foods in your code. All you have to do is to integrate with an API software that has all lists of foods and loop through them in your code.

9 Likes

Re: Pls Tech Gurus..i Dont Understand What Apis Mean In Javascript.. Help! by FlackoJodye: 6:15pm On Nov 22, 2020
Codedreamer:
API means Application Programming Interface. It allows you to interact with another software from your own software. For example, if you integrate google map API in your website, you will be able to display google map in your site.

Another example - if you want to create a website that displays lists of all foods on earth, you do not need to type all the foods in your code. All you have to do is to integrate with an API software that has all lists of foods and loop through them in your code.
Thanks a million... I could use a little more Explanation on your second explanation... but thanks nonetheless.. God bless u for this

1 Like

Re: Pls Tech Gurus..i Dont Understand What Apis Mean In Javascript.. Help! by spartan117(m): 6:22pm On Nov 22, 2020
An API (Application Programming Interface) is a means of sharing data across different applications.

For example google has a YouTube data-API that allows 3rd party users to consume YouTube data on their sites. With this API you can make a request to YouTube database and do something like a channel search or video search, the YouTube server will give you a response of all videos or channels that match your search in JSON format. You then use this JSON data to render the YouTube videos on your site or if it was a channel search you can display the channel and info about the channel such as name, subscribers, views, etc. You can also display all the videos on that channel on your site.

There are many more things you can do with Google's YouTube data-API and other API's in general. But at their core they are simply a means to query 3rd party servers and get data from them or even perform other CRUD operations according to the rules set by the operator of that Server.

3 Likes

Re: Pls Tech Gurus..i Dont Understand What Apis Mean In Javascript.. Help! by Donpre(m): 8:58pm On Nov 22, 2020
Firstly APIs is a general programming, in fact computer science concept.

Imagine a tv and remote, you don't change channels by loosing the board and manipulating transitors, you press the remote and the TV does something.

The remote is the API, it gives you access to get, modify or delete channels in the TV, you don't know how it does this, you just know that the delete button on the remote(API) deletes whichever channel you call
So you interact with the API, and not the server directly.

IN JS(the web in general as web apis can be written in any backend language)
you get a series of links, which might take data.

Calling these links will do something
for example:
website/get-all-books.... would give you all the books in the database(usually in JSON for REST API)
website/delete-book/id=1.... would delete the book with id=1

the mechanism that deletes or fetches the book is hidden within the server serving the apis, you don't know how that works, you just know it does what you want it to do

This is a simplified explanation, do read up more advanced explanations

2 Likes

Re: Pls Tech Gurus..i Dont Understand What Apis Mean In Javascript.. Help! by Karleb(m): 7:02am On Nov 23, 2020
API, Microservices, Software Architecture, Object Oriented Programming/Analysis/Design, Encapsulation, Framework, Functional Programming, Abstraction and lots more are big words that tech people throw around to sound smart. grin grin

In reality, these big words mean very simple things. grin

I was even reading a book that differentiated between encapsulation and information hiding. I mean, the difference can be negligible.

1 Like

Re: Pls Tech Gurus..i Dont Understand What Apis Mean In Javascript.. Help! by trytillmake(m): 10:07am On Nov 23, 2020
FlackoJodye:
Pls I'm at open ears if one can explain

Person wen ask question nr dey miss road. wink wink wink

https://www.w3schools.com/js/js_api_intro.asp

(1) (Reply)

Urgent Vacancy For Php Developer In Lagos / Please Recommended A Good Laptop For Programming With A Budget Of 100k Or Less. / Please Help A Brother On This Question

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 16
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.