API documentation

WPBase Search API

Query WordPress themes, plugins, and vulnerability records through the same search backend used by the web interface.

Endpoint

Search

GET https://wpbase.codelatte.id/api/v1/search

Returns paginated search results with metadata and item data.

Example request

Plugin search

https://wpbase.codelatte.id/api/v1/search?term=seo&type=plugin&rating=80-90&from=1000&perPage=25&page=1

Query parameters

Parameter Type Description
term string Required keyword matched against name, slug, and description.
type string Optional. Use any, theme, plugin, or vulnerability.
rating string Optional. Use 50, 50-60, 60-70, 70-80, 80-90, or 90-100.
from number Optional minimum active installs. Applies to plugin searches.
to number Optional maximum active installs. Applies to plugin searches.
page number Optional pagination page number.
perPage number Optional page size. Defaults to 10 and is capped at 100.

Request examples

curl "https://wpbase.codelatte.id/api/v1/search?term=seo&type=plugin&rating=80-90&from=1000&perPage=25&page=1"

Response shape

{
  "meta": {
    "total": 42,
    "perPage": 25,
    "currentPage": 1,
    "lastPage": 5,
    "path": "https://wpbase.codelatte.id/api/v1/search",
    "nextPageUrl": "...",
    "previousPageUrl": null
  },
  "data": [
    {
      "name": "Example Plugin",
      "slug": "example-plugin",
      "rating": 88,
      "num_ratings": 120,
      "active_installs": 10000,
      "type": "plugin"
    }
  ]
}