JSON content importer – API- and web service-connector – powerful and simple JSON-import plugin:
Use a template engine to display the data from a JSON-Feed.
Define the URL of the JSON-Feed, a template for it and other options like a number of displayed items, cache time etc.
Cacher with new Option: If a http-API request fails, you can use the maybe cached JSON.
Set the radio button in the plugin settings: what API problem should be handled how (either a non-valid API-http-response or a non-JSON-API-response – or both).
By default for backwards compatibility, this is switched off.
Recommendation: Switch on the plugins-cacher and select the radio button for “If the API-http-answer code is not 200 OR sends invalid JSON: try to use cached JSON” in the plugins options.
JSON Content Importer – API- and Webservice-Connector – Powerful and Simple JSON-Import Plugin:
Use a template engine to display the data from a JSON-Feed.
Define the url of the JSON-Feed, a template for it and other options like number of displayed items, cache time etc.
Cacher with new Option: If a http-API request fails, you can use the maybe cached JSON. Set the radio-button in the plugin’s settings: what API problem should be handled how (either a non-valid API-http-response or a non-JSON-API-response – or both). By default for backwards compatibility, this is switched off. Recommendation: Switch on the plugins-cacher (e. g. some minutes) and select the radio button for “If the API-http-answercode is not 200 OR sends invalid JSON: try to use cached JSON” in the plugins options.
The template engine inserts the JSON data in the template.
You can either use this as wordpress-shortcode inside a page – whereby some extras like URL-encoding can be invoked.
Or use the Gutenberg Mode: Then you don’t have the hassle to put an shortcode together, test it and change it. With a Gutenberg Block, you can test it in real-time and create a shortcode (if you want to stay with shortcodes).
Basic structure of the Shortcode:
‘[jsoncontentimporter]’
url=”http://…json”
numberofdisplayeditems=”number: how many items of level 1 should be displayed? display all: leave empty or set -1″
urlgettimeout=”number: who many seconds for loading URL till timeout?”
basenode=”starting point of datasets, the base-node in the JSON-Feed where the data is”
oneofthesewordsmustbein=”default empty, if not empty keywords separated by ‘,’. At least one of these keywords must be in the created text (here: text=code without html-tags)”
oneofthesewordsmustbeindepth=”default: 1, number: where in the JSON-tree oneofthesewordsmustbein must be?”
admin (verified owner) –
This is the best plugin for data import in wordpress.