hosting

GET /v1/wordpress/plugin-directory

Search the WordPress plugin directory.

Wszystkie punkty końcowe hosting

Wszystkie dokumentacje dla programistów

Uwierzytelnianie

Wyślij klucz API jako token bearer. Klucz musi posiadać uprawnienie sites.view; klucz bez niego jest odrzucany z kodem 403, a nie 404.

Ten punkt końcowy nie wymaga identyfikatora organizacji. Twój klucz już identyfikuje organizację, do której należy, a odpowiedź jest do niej ograniczona.

Wypróbuj

Zastąp wszystko w nawiasach ostrych własnymi wartościami, a zastępczy znacznik klucza kluczem ze swojego pulpitu nawigacyjnego.

curl -X GET https://api.zinndigital.com/v1/wordpress/plugin-directory?q=<q> \
  -H "Authorization: Bearer zdk_live_…"

Zalogowany? Konsola API w Twoim panelu uzupełnia rzeczywiste identyfikator organizacji oraz Twój własny klucz i wykonuje żądanie względem aktywnego API, dzięki czemu możesz zobaczyć rzeczywistą odpowiedź. Otwórz ten punkt końcowy w konsoli API

Szczegóły

Plugins a customer can install, from the wordpress.org directory. Collection-level and not under a site, because choosing a plugin comes before choosing where to put it — the fleet-wide manager picks the plugin first and the sites second, and hanging this off /v1/sites/{siteId}/… would force it to name an irrelevant site to search. An empty or whitespace-only q returns an empty page rather than the directory's popularity ranking: sixty thousand plugins nobody asked for, one upstream call per keystroke of nothing. rating is normalised to 0–5. The upstream reports 0–100, and a client rendering that as stars without dividing shows every plugin as full marks. author is plain text — upstream sends it as an HTML anchor, which is stripped here so a vendor's markup never reaches our page. Requires sites.view. The upstream is unauthenticated and read-only; our egress routing for it is registered as wordpress_org.

Parametry

NazwaTypWymaganeCo to jest
q (query)stringTakWhat to search for.
page (query)integerNie
per_page (query)integerNie

Odpowiedź

NazwaTypWymaganeCo to jest
dataWordPressDirectoryPlugin[]Tak
pageintegerTak
pagesintegerTakTotal pages available. 0 when nothing matched.
totalintegerTakTotal matching plugins across all pages.

Błędy, które ten punkt końcowy może zwrócić

401 · 403 · 429 · 503