What’s your preferred way to call & display external API data on a WordPress site?

A search on YouTube suggests that WPgetapi and the remote content feature of DCforE (dynamic.ooo) are the two most popular ways for doing this.

There have to be several other methods for calling and outputting data from APIs in WP though.

Any nifty plugin suggestions or tricks that have worked for you in the past?

I’ve personally used a python script on my server triggered by cron to call an API and save the results as an XML file which was then parsed and imported as posts using WP All Import running on an hourly schedule.

Automating site content with API calls seems like such a great way to extend WordPress, but it doesn’t feel like there’s much discussion around this topic in the WP ecosystem.

Looking forward to any advice or insights this sub can offer about this. 🙏

2 Comments
  1. As a full stack dev, I use custom coded plugins to query api’s, and cache the results, usually with a time to live of 1 hour. Some API functionality can’t have the query cached, for example I have one that query shipping status from the client’s custom api (think container shipping not UPS), which displays the results in a popup. Since these are often unique and the data being retrieved is dynamic, I just don’t cache it, but the custom plugin is rock solid, and by far the best way to achieve the desired results.

  2. I do the exact same thing for a real estate client. It’s a pretty standard way of handling/processing data for that use case.

 

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