How do APIs work?

Posted by JackDrawsStuff@reddit | learnprogramming | View on Reddit | 20 comments

I’m slowly but surely learning how to program (python mainly, but I’m dabbling with web stuff too). One project I want to try is a little search field that searches for a term on eBay and returns a number of listings and averages their price or something similarly basic. From what I understand you would use an API to talk to a site like eBay and get it to return that information. What does that look like? How do you access or control a sites API? Thanks!