Example of Working Shortcut Accessing an API?

Apple has a great example of a Shortcut which accesses an API:

However the Dark Sky site is no longer issuing new API Secrets and will soon shut down the API altogether.

Can anyone suggest another working shortcut which can be downloaded and used for learning and which demonstrates retrieval of data from an API?

I’ve put together a basic example shortcut that works with the JSON Placeholder API

Shortcut: Shortcuts

API Info: https://jsonplaceholder.typicode.com/

I’ve included a GET and POST example and some example ways of working with the returned data.

Please note that API can vary a lot in terms of structures and operations. You will only get the basics from this - always read the API documentation to get the full picture.

Hope that helps.

1 Like

That is extremely helpful - much appreciated