How Web APIs work?