Skip navigation
REST › content.search

content.search

GET/content/search

Searches every published piece in one locale, ignoring diacritics. One result per piece, best match first, with the matching section. No key needed. Pieces you may read match on titles, summaries, tags, section titles and full text and carry a passage of up to 400 characters; the rest match only on what the catalog already shows (title, summary, tags, section titles and opening), are locked, and the response adds an upgrade hint.

Parameters

ParameterInDescription
localequeryRequired. vi or en.
qqueryRequired. Search terms, 1 to 200 characters.
limitqueryOptional. Number of results, 1 to 20, default 8.

Request

curl
curl "https://api.modernengineer.dev/content/search?locale=vi&q=fallback"

Response

200 OK · application/json
{
  "items": [
    {
      "access": "subscriber",
      "kind": "guide",
      "locale": "vi",
      "locked": true,
      "route": "/vi/library/omp-model-routing-guide",
      "section": "Vai trò chỉ là bí danh, fallback là một lớp khác",
      "slug": "omp-model-routing-guide",
      "title": "Định tuyến model trong Oh-my-pi (OMP): vai trò, fallback và cách biết model nào đang chạy"
    }
  ],
  "upgrade": {
    "message": "Kết quả bị khoá dành cho người đăng ký. Đăng ký để đọc đoạn trích và toàn văn bằng content_get.",
    "url": "/vi/pricing"
  }
}

Errors

StatusErrorWhen
403forbiddenNo key, or the key does not belong to a registered account.
400invalid_inputA parameter is missing or invalid, for example a locale other than vi or en.
429too_many_requestsThe results carry passages and the account is over 1,000 reads in 24 hours, shared with content.get.

In MCP