reading external api. Good tutorial ?

[ad_1]

Hello,

I want to learn how to read a external api in wordpress so I can later make a custom plugin to make a site.

To learn how to do that is this a good tutorial : [https://css-tricks.com/rendering-external-api-data-in-wordpress-blocks-on-the-back-end/](https://css-tricks.com/rendering-external-api-data-in-wordpress-blocks-on-the-back-end/) ?

[ad_2]
2 Comments
  1. I think the simplest thing would be to use Genesis Custom Blocks plugin. Basically lets you create custom block.php file where you could connect to the external API you want.

    The plugin lets you add fields as well so you can edit that block per page, like requesting a different query or action.

    Then the API itself will have its own documentation on how to connect and maybe some examples.

    Then you can also consider using the WP REST API if needed:

    [https://learn.wordpress.org/tutorial/using-the-wordpress-rest-api/](https://learn.wordpress.org/tutorial/using-the-wordpress-rest-api/)

  2. Yes.

    If you want to build many sites, or experiment with APIs – also worth considering something like bitintegrations, pably or similar, which can really ease the process

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer