Skip to content

List Search Terms

Lists every search term recorded by the storefront — the data behind the admin Marketing → Search & SEO → Search Terms datagrid.

TIP

New here? Read the Search Terms overview for what a search term is and how its fields behave.

Endpoint

EndpointMethod
/api/admin/marketing/search-termsGET

Response envelope

Admin collections return a { data, meta } body envelope:

  • data — the search-term rows for this page.
  • metacurrentPage, perPage, lastPage, total, from, to.

Query parameters

ParameterDescription
page, per_pagePagination (per_page default 10, max 50)
termSearch term — partial match
channel_idChannel id — exact match
localeLocale code — exact match
sort, orderSort field (id, term, uses, results) + asc / desc (default id desc). Use sort=uses&order=desc for the most-searched terms

Filters compose with logical AND — more filters narrow the result.

The channel object is detail-only — it appears on the detail and update responses and is null on list rows.

Every /api/admin/* request requires an admin Bearer token.

Released under the MIT License.