In this video I am going to show you how to call an API in Wordpress using PHP.
We will use a GET-Request to get a response of the API. The API is a public and free to use API.
Our blogpost (German language only) to this topic:
https://content-baer.de/2021/09/17/wi...
The Code Snippet of the video will be found here:
https://github.com/grumpyp/Wordpress-...
Steps and Requirements
-Download the "Insert PHP Code Snippet"-Plugin and install and activate it
-Copy and paste the code of the PHP-file of the github-link
-Use the shortcode on any post or page and enjoy your API-requests