Sounds good at least, but the videos included are no longer available. If you want to develop something like this, take a look at the manual: https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/creating-dynamic-blocks/
Thread Starter
roelof
(@roelof)
Thanks, will read that page but after a quick read I do not see how I can use it to read for example the weather api for example this one ( https://www.weatherapi.com/docs/ )
The basic concept of dynamic block content is to have your render callback dynamically determine the content and to return the desired HTML. How to get data from an API depends more on the API than anything specific about WP. You can use WP_Http class methods to make external API requests. Then your callback should process the returned data, formatting it in a manner that’s suitable for block content.