DIFFERENCE BETWEEN api vs library


#1

I keep looking this up but am confused about the difference.


#6

I found the following explanation on stackoverflow

I hope this helps.


#7

I had already looked this up and read it but it seems confusing. Especially i feel that 2 posters are contradicting each other. Also, one says that API is documentation for Library, but isnt documentation a whole other thing? I’m still very confused


#8

Not sure I’m an expert on this but to me a library is in general a collection of pre-built functions that you can call to perform a certain task (get input in Java for example). An API is a set of protocols and functions that allow you interact with someone else’s system (add google maps to you web page for example).

Is someone thinks I’m wrong, feel free to correct me!