WordPress plugin
JSON Content Importer PRO
JSON Content Importer PRO connects WordPress to external REST APIs and prepares returned JSON, XML, CSV, or TXT data for show. You can format the response as HTML and add it to a page, post, or Custom Post Type using a shortcode, the JCI Block, or PHP.
JSON Content Importer PRO connects WordPress to external REST APIs and prepares returned JSON, XML, CSV, or TXT data for show. You can format the response as HTML and add it to a page, post, or Custom Post Type using a shortcode, the JCI Block, or PHP.
Load an API response and display it
Enter an API URL, load and inspect the response, then save the connection as an API-Access-Set. Use that saved set to make a shortcode or access the data in PHP. Alternatively, enter an API URL in the JCI Block to query the API and view its response. The block's template generator helps structure the output, and its included example delivers a place to start.
Add the shortcode or block to the content where the data should appear, then adjust the template to show the returned fields you need.
Build templates and search requests
PRO includes the Twig template engine for flexible data templates, which can be stored independently from pages. Additional shortcode parameters and the ability to execute shortcodes inside a template support more involved shows. You can also create and use Custom Post Types.
For search-driven applications, connect a search form to a JSON API and pass submitted GET variables into a dynamic JSON feed URL. This lets visitor input affect the API request.
Forms, caching, and output settings
Contact Form 7 integration can populate forms with JSON data and forward submitted form data to an API. The JCI cacher can help avoid repeated API requests. Basic settings include settings for SSL, caching, Gutenberg, and authentication.
HTML in shortcode and block output is filtered to prevent potentially dangerous code, such as JavaScript, from being output. If a display deliberately needs additional tags or attributes, you can specify them in the advanced allowed HTML setting.