การยืนยันตัวตน

ส่ง API key ในรูปแบบ bearer token คีย์ดังกล่าวต้องมีสิทธิ์ sites.view หากไม่มีสิทธิ์ ระบบจะปฏิเสธด้วยรหัส 403 แทนที่จะเป็น 404

ปลายทางนี้ไม่ต้องใช้รหัสองค์กร คีย์ของคุณระบุองค์กรที่เป็นเจ้าของอยู่แล้ว และการตอบกลับจะถูกจำกัดขอบเขตไว้เฉพาะองค์กรนั้น

ทดลองใช้เลย

แทนที่สิ่งใดๆ ที่อยู่ภายในวงเล็บแหลมด้วยค่าของคุณเอง และตัวยึดตำแหน่งคีย์ด้วยคีย์จากแดชบอร์ดของคุณ

curl -X GET https://api.zinndigital.com/v1/wordpress/plugin-directory/{slug} \
  -H "Authorization: Bearer zdk_live_…"

เข้าสู่ระบบแล้วใช่ไหม คอนโซล API ในแดชบอร์ดของคุณจะเติมรหัสองค์กรจริงและคีย์ของคุณเองโดยอัตโนมัติ และทำการส่งคำขอไปยัง API จริง เพื่อให้คุณเห็นผลลัพธ์ที่เป็นข้อมูลจริง เปิดจุดสิ้นสุดนี้ในคอนโซล API

รายละเอียด

A single plugin, with its long-form sections (description, installation notes, changelog, FAQ) which the search deliberately omits — they are tens of kilobytes per plugin and no list view renders them. ⛔ A slug the directory does not know is a 404. The upstream answers 200 with an error field for an unknown slug, which a naive client would render as a real plugin whose every field is empty — one the customer could click Install on. Requires sites.view.

พารามิเตอร์

ชื่อประเภทจำเป็นต้องมีลักษณะของสิ่งนี้
slug (path)stringใช่The directory slug, as the search returns it.

การตอบกลับ

ชื่อประเภทจำเป็นต้องมีลักษณะของสิ่งนี้
slugstringใช่The directory slug — what installSiteWordPressPlugin takes. ⛔ The only field from this resource that is ever sent to a box; the download URL is resolved by the site itself,…
namestringใช่
versionstringใช่
authorstringใช่Plain text. The upstream's surrounding anchor markup is stripped.
short_descriptionstringใช่
ratingnumberใช่0–5, normalised here. The upstream reports 0–100; a client rendering that as stars without dividing shows every plugin as full marks.
num_ratingsintegerใช่
active_installsintegerใช่The directory's own estimate, and it means "at least this many" — it is bucketed upstream, so 4,000,000 and 4,900,000 both arrive as 4000000.
last_updatedstringใช่
requires_wpstringใช่Minimum WordPress version. "" when the plugin does not say.
requires_phpstringใช่Minimum PHP version. "" when the plugin does not say.
tested_up_tostringใช่The newest WordPress the author has tested against.
homepagestringใช่
icon_urlstringใช่The plugin's icon, best available size. "" when it has none — ⛔ NOT the directory's grey placeholder, which would give every icon-less plugin the same picture: present, wrong,…
sectionsobjectไม่ใช่Long-form copy (description, installation, changelog, FAQ), plain text. Present only on getWordPressDirectoryPlugin; the search omits it because it is tens of kilobytes per…

ข้อผิดพลาดที่เอนด์พอยต์นี้สามารถส่งกลับได้

401 · 403 · 404 · 429 · 503