hosting

GET /v1/wordpress/plugin-directory/{slug}

One plugin from the WordPress directory.

ټول hosting پای ټکي

ټول د پراختیا کونکي اسناد

تصدیق‌هویت

یو API کی د بیئرر ټوکن (bearer token) په توګه ولیکئ. کی باید د sites.view اجازه ولري؛ له دې اجازې پرته کی د 404 پرځای د 403 په واسطه رد کیږي.

دا پای نقطه د سازمان هېڅ آی ډي نه اخلي. ستاسو کیلي مخکې تر مخکې هغه سازمان په ګوته کوي چې پورې اړه لري، او ځواب ورته محدود دی.

هڅه وکړئ

د انګلیسي په زاوي پنسونو کې هرڅه د خپلو ارزښتونو سره بدل کړئ، او د کلي ځای لرونکی ستاسو د ډشبورډ د کلي سره.

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

ننوتي یاست؟ ستاسو په ډشبورډ کې د API کنسول ستاسو د اصلي سازمان ID او ستاسو خپله کیلي ډکوي، او غوښتنه د ژوندی API په وړاندې پرمخ وړي ترڅو تاسو وکولی شئ اصلي ځواب وګورئ. دا پای ټکی (endpoint) د 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