前言介紹
- 這款 WordPress 外掛「Get Use APIs – JSON Content Importer」是 2015-01-23 上架。
- 目前有 7000 個安裝啟用數。
- 上一次更新是 2025-04-16,距離現在已有 17 天。
- 外掛最低要求 WordPress 5.3 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.0 以上。
- 有 77 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
berkux |
外掛標籤
api | csv | xml | data | JSON |
內容簡介
在你的 WordPress 網站上展示 JSON-Feed/API 的即時資料!
從網址上抓取 JSON 資料並在 WordPress 頁面上轉換為 HTML。
JSON Content Importer-API-和 Web 服務連接器-功能強大且簡單的 JSON 匯入外掛:
使用樣板引擎顯示從 JSON-Feed 中的資料。
定義 JSON-Feed 的 URL、樣板以及其他選項,例如顯示的項目數量、快取時間等。
具有新選項的快取程序:如果 HTTP-API 請求失敗,可以使用已快取的 JSON。在外掛的設置中設置單選按鈕:如何處理 API 問題(非有效的 API HTTP 回應或非 JSON API 回應或兩者兼備)。為了向後兼容,默認情況下關閉此功能。建議:啟用外掛快取(例如幾分鐘),並在外掛選項中選擇「如果 API HTTP 回應碼不是 200 或發送無效的 JSON:嘗試使用已快取的 JSON」的單選按鈕。
模板引擎會在模板中插入 JSON 資料。
您可以將其作為 WordPress 短代碼放在頁面中 - 其中一些額外功能(如 URL 編碼)可以被調用。
或者使用 Gutenberg 模式:然後您將不必費心地組合、測試和更改短碼。使用 Gutenberg 塊,您可以實時測試它並創建短碼(如果您想使用短碼)。
如何開始和幫助
使用此插件的第 1 和 2 步驟,以及:示例和專業版。
使用插件的範例
短代碼的基本結構:
‘[jsoncontentimporter
url=”http://…json”
numberofdisplayeditems=”數字:顯示幾個第一層項目?顯示全部:保留空白或設置為-1″
urlgettimeout=”數字:載入網址的秒數?”
basenode=”資料集的起點,在 JSON-Feed 中的基礎節點”
oneofthesewordsmustbein=”預設為空,如果不空,請輸入以‘,’分隔的關鍵字。必須至少有這些關鍵字中的一個出現在創建的文字中(這裡:text=code without html-tags)”
oneofthesewordsmustbeindepth=”預設值:1、數字:在 JSON 樹中,須在 oneofthesewordsmustbein 中的位置為何?”
]
這是樣板:
任何 HTML 代碼加上「basenode」數據字段(用「{}」包裹)
{subloop:「basenode_subloop」:「要顯示的子循環資料集數量」}
任何 HTML 代碼加上「basenode_subloop」數據字段(用「{}」包裹)。如果 JSON 資料是 HTML,請添加「html」標誌,例如「{fieldname:html}」
{/subloop:「basenode_subloop」}
[/jsoncontentimporter]’
範本如「{subloop-array:AAAA:10}{text}{subloop:AAAA.image:10}{id}{/subloop:AAAA.image}{/subloop-array:AAAA}」是可能的:
一個是「subloop-array」和「subloop」的遞歸使用。
第二個是「{subloop:AAAA.image:10}」,其中「AAAA.image」是對像的路徑。這對某些 JSON 資料很好。
一些特殊的資料欄位附加功能
“{street:purejsondata}”:數據欄位的默認顯示方式不是 HTML,但 HTML 標記已轉換:使用此功能可真正使用 JSON-Feed 中的原始數據。
“{street:html}”
原文外掛簡介
The simplest method to link WordPress with external APIs
JCI simplifies the task of retrieving data from a third-party REST API. The returned JSON-, XML, CSV, TXT-data can be neatly arranged and showcased on your WordPress site via a shortcode, a JCI Block or PHP. The plugin can generate a template for the data display.
20 seconds: Load API and display data
7 minutes: Basic intro to JCI free
Examples, Preview
Check out the live demonstration to explore how we’re interfacing with various APIs
LIVE PREVIEW – WordPress and a external API
Video: How to use the Wikipedia API
Main Plugin Features
Low code usage: Save time and avoid coding using an API
Insert an API-URL into Step 1: Data is loaded, and and displayed. Save it as API-Access-Set.
Use the API-Access-Set in Step 2 to create a Shortcode
Optional for maximum flexibility: Use the API-Access-Set n PHP code
Insert an API-URL into the JCI Block: Data is loaded, and a template can be generated to display the data.
Easy to start: Check Installation – Is your WordPress ready for JCI? Most probably!
Basic Settings: Check SSL, Cacher, Gutenberg and Authentication
ContactForm7 Integration: Populate CF7 forms with JSON data and forward CF7-submitted data to an API.
Use the JCI cacher to avoid many API requests
JCI-Block : Use the simple JCI Block interface to get data! Query the API and check the response. Then utilize the simple template generator inside the JCI Block to use the data!
Contact Form 7 Integration: Fill form and submit to API
Documentation
There’s a wealth of resources and support at your fingertips. Explore the articles listed below to begin your journey:
JCI Manual
Step 1: Access the Data
Step 2: Using the Data
Shortcode – Basic structure
Contact Form 7 Integration
Free JCI Plugin: Overview Videos
Free JCI Plugin: Getting Started
You need more?
JSON Content Importer PRO
Both the free and PRO JCI Plugins serve the same purpose: retrieving data, transforming it, and publishing the results.
However, while the free Plugin can only handle basic challenges, the PRO JCI Plugin offers nearly full control over WordPress, the database, and applications.
Compare: Free vs. JCI PRO Plugin
PRO features:
* application building by creating a searchform and connect it to a JSON-API in the background: pass GET-Variables to use a dynamic JSON-Feed-URL (“talk to API / webservice”)
* much better and more flexible templateengine: twig
* create and use Custom Post Types
* store Templates independent of pages
* more Shortcode-Parameters
* executing Shortcodes inside a template
* more features…
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Get Use APIs – JSON Content Importer」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.4 | 1.0.2 | 1.0.3 | 1.0.4 | 1.0.5 | 1.1.0 | 1.1.1 | 1.1.2 | 1.2.0 | 1.2.1 | 1.2.2 | 1.2.3 | 1.2.4 | 1.2.5 | 1.2.6 | 1.2.7 | 1.2.8 | 1.2.9 | 1.3.0 | 1.3.1 | 1.3.2 | 1.3.3 | 1.3.4 | 1.3.5 | 1.3.6 | 1.3.7 | 1.3.8 | 1.3.9 | 1.5.0 | 1.5.1 | 1.5.2 | 1.5.3 | 1.5.4 | 1.5.5 | 1.5.6 | 1.6.0 | 1.6.1 | 2.0.0 | 2.0.1 | 2.0.2 | 2.0.3 | trunk | 1.2.10 | 1.2.11 | 1.2.12 | 1.2.13 | 1.2.14 | 1.2.15 | 1.2.16 | 1.2.17 | 1.2.18 | 1.2.19 | 1.2.20 | 1.3.10 | 1.3.11 | 1.3.12 | 1.3.13 | 1.3.14 | 1.3.15 | 1.3.16 | 1.3.17 | 1.4 .1 |
延伸相關外掛(你可能也想知道)
InfiniteWP Client 》InfiniteWP 可讓使用者從自己的伺服器管理無限數量的 WordPress 網站。, 主要功能:, , 自行託管系統:位於您自己的伺服器上,完全受您控制, 一鍵更新所有網站...。
WP Consent API 》WP Consent API 是一個外掛,可以標準化插件之間同意的同意類別溝通。它需要使用 Cookie 標語插件和至少一個支援 WP Consent API 的其他插件。, , 有了這個插...。
Disable REST API 》這是最全面的 WordPress REST API 存取控制外掛!, 輕鬆安裝,安裝後不需要額外設定即可使用。只需上傳並啟用,整個 REST API 將無法被一般訪客存取。, 但如...。
Mailgun for WordPress 》Mailgun 是超過10,000名網站和應用程式開發人員信任的電子郵件自動化引擎,用於發送、接收和追踪郵件。藉助Mailgun強大的郵件API,開發人員可以更多時間建立...。
Make Connector 》Make 是一個視覺化平台,讓你可以在幾分鐘內設計、建立和自動化任何事情 - 從簡單的任務到複雜的工作流程。使用 Make,你可以在 WordPress 和數千個應用程式...。
ACF to REST API 》此 WordPress 外掛在WordPress REST API中提供了Advanced Custom Fields的端點, 詳細資訊請參閱GitHub:https://github.com/airesvsg/acf-to-rest-api/。
WordPress REST API Authentication 》WordPress REST API 預設是鬆散的端點,駭客可以通過這些端點遠程控制您的網站。 您不希望駭客可以透過 WordPress 登錄和 WordPress 註冊或任何其他端點來獲...。
Disable WP REST API 》這個外掛只有一個功能:禁用沒有登入 WordPress 的訪客使用 WP REST API。不需要任何設定。, 這個外掛只有 22 行短小的程式碼(少於 2KB)。因此它非常輕量、...。
WPGet API – Connect to any external REST API 》簡單地連接WordPress至外部API的最簡單方式。, , WPGetAPI 可輕鬆地從無限量的第三方 REST API 發送和接收資料,然後使用「Shortcode」或「Template Tag」格...。
WP REST Cache 》如果您在使用 WordPress REST API 時遇到速度問題,這個外掛將允許 WordPress 快取 REST API 的回應,使其更快。, 此外掛提供以下功能:, , 快取所有預設的 W...。
WP REST API Controller 》WP REST API Controller 外掛提供使用者易用的圖形化介面,使管理員可以切換 WordPress 核心和自訂文章類型以及分類法的可見性和端點,同時也可以自訂 API 回...。
WordPress REST API (Version 2) 》WordPress 正轉變成一個完整的應用程式框架,因此需要新的 API。這個專案的目的是創建一個易於使用、易於理解且經過良好測試的框架,用於創建這些 API,以及...。
WP REST API – OAuth 1.0a Server 》使用這個外掛,您可以將應用程式連接至您的 WordPress 網站,而不必透露您的密碼。, 此外掛使用 OAuth 1.0a 協議,允許委派授權,即允許應用程式使用一組次要...。
Contact Form to Any API 》, 「Contact form 7 to Any API」是一款強大的外掛,能夠將聯絡表單 CF7 的數據傳送至任何第三方服務。使用者可以透過這款外掛將數據發送到客戶關係管理(CRM...。
Envato Toolkit 》這個外掛包含一個三個檔案的程式庫和視覺化介面,用於驗證客戶購買代碼、獲取特定 Envato 用戶的詳細信息(國家、城市、總追隨者數量、總銷量、頭像),獲取...。