Endpoint
Search
GET https://wpbase.codelatte.id/api/v1/search
Returns paginated search results with metadata and item data.
API documentation
Query WordPress themes, plugins, and vulnerability records through the same search backend used by the web interface.
Endpoint
GET https://wpbase.codelatte.id/api/v1/search
Returns paginated search results with metadata and item data.
Example request
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"
$query = http_build_query([
'term' => 'seo',
'type' => 'plugin',
'rating' => '80-90',
'from' => 1000,
'perPage' => 25,
'page' => 1,
]);
$response = file_get_contents('https://wpbase.codelatte.id/api/v1/search?' . $query);
$data = json_decode($response, true);
from urllib.parse import urlencode
from urllib.request import urlopen
import json
params = urlencode({
"term": "seo",
"type": "plugin",
"rating": "80-90",
"from": 1000,
"perPage": 25,
"page": 1,
})
with urlopen("https://wpbase.codelatte.id/api/v1/search?" + params) as response:
data = json.load(response)
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"
}
]
}