Title: Dynamically load data from external source
Last modified: December 25, 2020

---

# Dynamically load data from external source

 *  Resolved [markc](https://wordpress.org/support/users/markc/)
 * (@markc)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/dynamically-load-data-from-external-source/)
 * Curious to know if it’s easy, or even possible at all, to dynamically load data
   into a table from a external PHP program that can return JSON data? I don’t mean
   to manually upload a static JSON file but call out to an external source on page
   load and perhaps even page through up to 10,000 rows 20 or 50 at a time?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/dynamically-load-data-from-external-source/#post-13832631)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * No, sorry, that’s not directly possible. You would use the TablePress Extension
   from [https://tablepress.org/extensions/table-auto-import/](https://tablepress.org/extensions/table-auto-import/)
   but that would only work if the returned JSON data is a two-dimensional array.
   Also, it would not be live updates of the API data.
 * A better approach might therefore be to use a custom solution that retrieves (
   and caches!) the API data, and renders an HTML table from it (a few PHP `for`
   loops). Then, you can add the JavaScript functions of the external DataTables
   JS library from [https://datatables.net/](https://datatables.net/) to get the
   pagination and other features.
 * Regards,
    Tobias
 *  [Jonathan Camp](https://wordpress.org/support/users/nampara17/)
 * (@nampara17)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/dynamically-load-data-from-external-source/#post-13848753)
 * Hi There
 * I’d love to see this feature added – e.g. the ability to dynamically load data
   from an external source; any simple source like CSV or jSON, etc.
 * This would truly make this a product that could easily be updated 🙂
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/dynamically-load-data-from-external-source/#post-13849718)
 * Hi,
 * I don’t have plans for that beyond the options from above. Sorry.
 * Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Dynamically load data from external source’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/dynamically-load-data-from-external-source/#post-13849718)
 * Status: resolved