Working with Web APIs

An API, or Application Programming Interface, lets developers interface with data without having to access the data directly. Web APIs let you do this by making requests to servers. APIs can let you see current weather conditions, stock prices, sports scores, social media feeds, and pretty much any data you’re looking to consume.

If you’re writing software that interfaces with a third-party web API, or if you’re developing your own, you can use cURL to explore and test that API. You can set headers, define request types, and send data payloads.

To explore this, you’ll need an API you can work with. Instead of using a live API for testing, you’ll use json-server,[24] a Node.js package that provides an API for these types ...

Get Small, Sharp Software Tools now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.